[STM32G4] “make -j4 all”以退出代码2终止。

[复制链接]
85|0
Treasure101 发表于 2025-10-6 09:09 | 显示全部楼层 |阅读模式
我在构建空项目时遇到了这个错误“make -j4 all”以退出代码2终止。似乎是inc文件中缺少关键内容?
make -j4 all
arm-none-eabi-gcc -o "test.elf" @"objects.list"  -mcpu=cortex-m4 -T"\\MAC\Home\Desktop\Embedded-C\My_workspace\host\test\STM32F446RETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="test.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: cannot open linker script file \MAC\Home\Desktop\Embedded-C\My_workspace\host\test\STM32F446RETX_FLASH.ld: No such file or directory
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:63: test.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.

6894468e27cc637ca0.png

您需要登录后才可以回帖 登录 | 注册

本版积分规则

59

主题

59

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部