Skip to content

nuclei/gd32vf103_rvstar BSP编译不通过 #5841

Description

@blta
  1. 在最新的RT-Thread master上测试
  2. 使用NUclei 官方工具链riscv-nuclei-elf-gcc-10.2.0
> scons
scons: Reading SConscript files ...
Supported downloaded modes for board gd32vf103v_rvstar are flashxip, chosen downloaded mode is flashxip
Newlib version:4.1.0
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build\applications\main.o
riscv-nuclei-elf-gcc: error:  -march=rv32imac -mabi=ilp32 -mcmodel=medany : No such file or directory
scons: *** [build\applications\main.o] Error 1
scons: building terminated because of errors.

感觉像是rtconfig.py配置问题

另外使用rtthread-stdudio生成的rvstart工程,同样的编译器是可以编译通过的,

CC build\packages\nuclei_sdk-latest\SoC\gd32vf103\Common\Source\system_gd32vf103.o
CC libraries\gd32vf103\HAL_Drivers\drv_gpio.o
CC libraries\gd32vf103\HAL_Drivers\drv_usart.o
LINK rtthread.elf
d:/softwares/nuclei/gcc/bin/../lib/gcc/riscv-nuclei-elf/10.2.0/../../../../riscv-nuclei-elf/bin/ld.exe:E:\WorkSpaces\RT_Thread_Studio\RVSTART\packages\nuclei_sdk-latest\SoC\gd32vf103\Board\gd32vf103v_rvstar\Source\GCC\gcc_gd32vf103_flashxip.ld:69: warning: redeclaration of memory region `flash'
d:/softwares/nuclei/gcc/bin/../lib/gcc/riscv-nuclei-elf/10.2.0/../../../../riscv-nuclei-elf/bin/ld.exe:E:\WorkSpaces\RT_Thread_Studio\RVSTART\packages\nuclei_sdk-latest\SoC\gd32vf103\Board\gd32vf103v_rvstar\Source\GCC\gcc_gd32vf103_flashxip.ld:70: warning: redeclaration of memory region `ram'
riscv-nuclei-elf-objcopy -O binary rtthread.elf rtthread.bin
riscv-nuclei-elf-size rtthread.elf
   text    data     bss     dec     hex filename
 125788     796    7444  134028   20b8c rtthread.elf
scons: done building targets.

复制该rtconfig.py修改部分错误后编译还是同样的错误!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions