cancel
Showing results for 
Search instead for 
Did you mean: 

Using STM32cubeIDE and FreeRTOS - build Debug can't find cmsis_os.h. Release build completes with no issues.

GBrow.3
Associate II

I'm fairly new to STM32CubeIDE having used Keil uV for projects so I'm just not seeing the obvious here.

No issues with build prior to enabling the FreeRTOS for NUCLEO-G474RE development target.

Enable the FreeRTOS and build Release - no issues, completes with no errors.

If I build for Debug (intend to load on Nucleo target using STLink - I get:

../Core/Src/main.c:22:10: fatal error: cmsis_os.h: No such file or directory

  22 | #include "cmsis_os.h"

   |      ^~~~~~~~~~~~

compilation terminated.

I've tried to add project paths to Run/Debug settings but did not change the outcome.

Appreciate the community's help!

STM32CubeIDE

Version: 1.8.0

Build: 11526_20211125_0815 (UTC)

(C) 2021 STMicroelectronics ALL RIGHTS RESERVED

11 REPLIES 11

PLUGH! (nothing happens)

or was that XYZZY?

and the passages were supposed to be "all alike"......

(maybe).

Both actually depending on which one you stumbled in to!