2024-05-12 12:23 AM
Building simple project (just enabling UART and XTAL OSC) SMT32F401CCU6 project generates this error.
Have been using STMcubeMX/IDE for years, but never encountered this with the UDE.
MX and IDE have been updated the the latest version
none-eabi-gcc "../Drivers/CMSIS/RTOS2/Source/os_systick.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F401xC -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 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/CMSIS/RTOS2/Source/os_systick.d" -MT"Drivers/CMSIS/RTOS2/Source/os_systick.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/CMSIS/RTOS2/Source/os_systick.o"
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"
| ^~~~~~~~~~~
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_systick.o] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
Solved! Go to Solution.
2024-05-12 05:47 AM
After installing 1.15 thing went back to normal. The errors disappeared (no code or any changes).... Not sure why...
2024-05-12 12:35 AM
Hmm CubeIDe seems on version 1.15 now. Always used the update it using the IDE update function but that did not update, so did not notice the latest version
2024-05-12 05:47 AM
After installing 1.15 thing went back to normal. The errors disappeared (no code or any changes).... Not sure why...