新手入门
- 积分
- 5
- 金钱
- 5
- 注册时间
- 2022-2-16
- 在线时间
- 0 小时
|
1金钱
用cube ide 1.8版本生成freeRTOS出现了这个错误,我把对应文件的路径加入到INCLUDES中去,又出现了重复定义错误,哪位遇到过同样的问题,求帮助。
18:49:14 **** Incremental Build of configuration Debug for project F407 ****
make -j8 all
arm-none-eabi-gcc "../Core/Src/freertos.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F407xx -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -I"../Middlewares/Third_Party/FreeRTOS/Source" -I"../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2" -I"../Middlewares/Third_Party/FreeRTOS/Source/include" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Core/Src/freertos.d" -MT"Core/Src/freertos.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/freertos.o"
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F407xx -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -I"../Middlewares/Third_Party/FreeRTOS/Source" -I"../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2" -I"../Middlewares/Third_Party/FreeRTOS/Source/include" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/main.o"
In file included from ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h:62,
from ../Core/Src/freertos.c:21:
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h:52:11: fatal error: portmacro.h: No such file or directory
52 | #include "portmacro.h"
| ^~~~~~~~~~~~~
compilation terminated.

make: *** [Core/Src/subdir.mk:40: Core/Src/freertos.o] Error 1
make: *** Waiting for unfinished jobs....
../Core/Src/main.c:21:10: fatal error: cmsis_os.h: No such file or directory
21 | #include "cmsis_os.h"
| ^~~~~~~~~~~~
compilation terminated.
make: *** [Core/Src/subdir.mk:40: Core/Src/main.o] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
|
|