硬汉嵌入式论坛

 找回密码
 立即注册
查看: 207|回复: 1
收起左侧

[开发工具] 关于CUBEMX生成报错的问题

[复制链接]

2

主题

2

回帖

8

积分

新手上路

积分
8
发表于 2025-9-29 18:24:34 | 显示全部楼层 |阅读模式
同志们大家好,我是嵌入式新手,现在在用STM32H723ZGT6的官方开发板,就是那个NUCLEO-H723的板子,然后我用CUBEMX生成配置代码,我发现在CMSIS文件夹里面总会有ARM关于神经网络的库,DSP的库以及RTOS的库,他们还会报错,不知道问题所在,还请各位老手指教!


报错信息:
In file included from ../Drivers/CMSIS/RTOS2/Template/cmsis_os1.c:28:
../Drivers/CMSIS/RTOS2/Template/cmsis_os.h:157:10: fatal error: cmsis_os2.h: No such file or directory
  157 | #include "cmsis_os2.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
../Drivers/CMSIS/RTOS2/Source/os_systick.c:25:10: fatal error: os_tick.h: No such file or directory
   25 | #include "os_tick.h"
      |          ^~~~~~~~~~~
../Drivers/CMSIS/RTOS2/Source/os_tick_ptim.c:25:10: fatal error: RTE_Components.h: No such file or directory
   25 | #include "RTE_Components.h"
      |          ^~~~~~~~~~~~~~~~~~
../Drivers/CMSIS/RTOS2/Source/os_tick_gtim.c:25:10: fatal error: os_tick.h: No such file or directory
   25 | #include "os_tick.h"
      |          ^~~~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
make: *** [Drivers/CMSIS/RTOS2/Template/subdir.mk:19: Drivers/CMSIS/RTOS2/Template/cmsis_os1.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Drivers/CMSIS/RTOS2/Source/subdir.mk:25: Drivers/CMSIS/RTOS2/Source/os_tick_gtim.o] Error 1
make: *** [Drivers/CMSIS/RTOS2/Source/subdir.mk:25: Drivers/CMSIS/RTOS2/Source/os_tick_ptim.o] Error 1
make: *** [Drivers/CMSIS/RTOS2/Source/subdir.mk:25: Drivers/CMSIS/RTOS2/Source/os_systick.o] Error 1
../Drivers/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_q15.c:31:10: fatal error: arm_math.h: No such file or directory
   31 | #include "arm_math.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [Drivers/CMSIS/NN/Source/SoftmaxFunctions/subdir.mk:22: Drivers/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_q15.o] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.

18:14:21 Build Failed. 11 errors, 0 warnings. (took 4s.13ms)


CUBEMX的配置:

下载 (1).png


下载 (2).png



下载 (3).png

下载 (4).png



回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
119430
QQ
发表于 2025-9-30 10:04:44 | 显示全部楼层
这个是MDK RTE + CubeMX的开发方式。

楼主是不是用MDK RTEK开发的
回复

使用道具 举报

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

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-11-22 04:45 , Processed in 0.038886 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表