[STM32G4] Ceedling 与 STM32CubeIDE 报错cannot find entry symbol Reset_Handler;

[复制链接]
208|0
WHALEE 发表于 2025-11-8 09:37 | 显示全部楼层 |阅读模式
我正为 STM32CubeIDE 项目创建基于 Ceedling/Unity/CMock 的单元测试。
项目已开始构建,但出现如下错误:
Linking test_functions_STM32G474RB.out... /Applications/STMicroelectronics/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.macos64_1.0.0.202111181127/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol Reset_Handler; defaulting to 0000000008000000 Running test_functions_STM32G474RB.out...
ERROR: Test executable "test_functions_STM32G474RB.out" failed.
这通常是源文件或测试代码中存在非法内存访问的现象。
[color=rgba(0, 0, 0, 0.85)]我在编译器 / 链接器标志中添加了那个 .S 文件,是操作方法不对,还是这种方式根本行不通。

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

本版积分规则

67

主题

67

帖子

0

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