6 years, 6 months ago.

nRF52 cmsis_os2.h

Hi, since yesterday I am getting strange error when compiling nrf52 code. Even clean example program (mbed-os-example-ble-BatteryLevel) loaded in web IDE is showing an error when starting "Compile all":

Error: Cannot open source input file "cmsis_os2.h": No such file or directory in "extras/mbed-os.lib/rtos/Mutex.h", Line: 26, Col: 24

mbed-os module is updated to the latest.

Any idea what could be wrong? Thank you. Peter

Reported an issue here.

posted by Jan Jongboom 05 Oct 2017

2 Answers

6 years, 6 months ago.

I also have this for FRDM-K22F. Seems to be a bug in mbed-os. I downgraded to 5.5.7 and it works now.

To do this in the web interface, right-click the `mbed-os` node in the navigator tree. Select 'Revisions'. Click on the ca661f9 revision, and then click Switch.

6 years, 6 months ago.

Same issue here with 401RE and 429ZI boards tried exporting to uVsion5 but with same error cmsis_os2.h

Also when exporting sure enough that file and whole directory mbed-os\rtos\rtx5 is missing

Also mbed_rtos_storage.h, mbed_rtos1_types.h in mbed-os\rtos missing

Applies to OS5.6.x previous 5.5 all compile and export as expected

Wanted to use the 5.6 'tickerless' feature......

I believe this is already resolved, should be able to compile.

posted by Martin Kojtal 13 Oct 2017