vscode编译demo工程报错
-
在使用YCT之前,我已经将cmake、gcc、ninja这套工具下载并配置到环境变量了,vscode的相关插件也已经装好,顺带展示工具链版本。
cmake version 4.1.1
ninja version 1.13.1
gcc version (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders, r3) 14.2.0。

[build] D:/tool_chain/arm-gnu-toolchain-14.3.rel1-mingw-w64-i686-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: libGENERATED_CONFIG_TARGET.a(RamInit0.S.o)(RamInit0): Unknown destination type (ARM/Thumb) in libGENERATED_CONFIG_TARGET.a(startup.S.o)
[build] libGENERATED_CONFIG_TARGET.a(startup.S.o): in function `_start':
[build] D:/TY_workspace/Gpio_Interrupt_Demo/board/startup.S:41:(.text+0x1a): dangerous relocation: unsupported relocation
[build] collect2.exe: error: ld returned 1 exit status从报错的提示来看在编译汇编文件时ARM指令和Thumb指令搞混了,但是在GCC.cmake文件的compilerSpecificCompileOptions函数内部有条件判断:
if (CORTEXM OR CORTEXR)
target_compile_options(${PROJECTNAME} PUBLIC "-mthumb")
endif()暂时找不到问题出在哪里。
-

-
jiankang_wang 更改设置后可以了
快速上手云途开发生态
发帖前请查看
帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...


