CMSIS-RTOS v2 build error
已完成
I am trying to configure and build CMSIS-RTOS v2 with the following environment:
- Board: STMicro H743ZI2
I enabled FreeRTOS in CubeMX, configured the necessary settings, and attempted to build the project using CLion. However, I encountered the following error:
FAILED: CMakeFiles/uart_rtos_dma.elf.dir/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c.obj
The CMakeLists.txt
includes the following directories:
include_directories(Core/Inc Drivers/STM32H7xx_HAL_Driver/Inc Drivers/STM32H7xx_HAL_Driver/Inc/Legacy Middlewares/Third_Party/FreeRTOS/Source/include Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F) ....
The ARM_CM4F
folder exists at the following path:
Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F
The project builds successfully in CubeIDE without any issues.
Do you have any suggestions on how to resolve this problem in CLion?
请先登录再写评论。
I have solved this issue by myself.
Uncoment the following lines