cancel
Showing results for 
Search instead for 
Did you mean: 

stm32wb0x error on build of stm32cube example projects

LVanr.1
Associate II

I'm trying to import the sample project BLE_Skeleton. On build I get the following error:

fatal error: osal.h: No such file or directory

The same error occurs for other BLE sample projects.
The error also happened for BLE_p2pServer but was fixed.

When can the problem be fixed for the other sample projects ?

8 REPLIES 8

how are you obtaining the sample project BLE_Skeleton?

If downloading from GitHub, see:

https://community.st.com/t5/stm32-mcus/downloading-stm32cube-packages-from-github-correctly/ta-p/725288 

LVanr.1
Associate II

In stm32Cube I do: File > Import > Import STM32Cube Example

Hello @LVanr.1 ,

Maybe you have wrong paths! Try adding correct paths to the include directories (Go to Project options ->C/C++ tab->Include paths)

Otherwise, please provide more details on your CubeWB0 firmware package version and CubeIDE version used, the exact project path and steps?

 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
LVanr.1
Associate II

Let me mention that I am learning about BLE development on ST (but I am very familiar with BLE development in Eclipse on other hardware platforms).

I had installed STM32Cube version 1.16.0. I installed BLE_Sketeton as well as other example projects BLE_p2pServer  and BLE_Beacon. All of these compiled properly and worked on my development board SRM32wb09KE.
A while ago some example projects did not compile and required an upgrade of MX. When warned that a new version of Cube was available I accepted doing the upgrade -- STM32Cube was automatically upgraded to version 1.17.0. MX was also upgraded. To make sure that the example projects were in sync I deleted them and installed them. That is where the compile error occurred. At first, project BLE_p2pServer also had the compile error. Little later I re-installed BLE_p2pServer and the compile error had gone but not for the other BLE sample projects.

I now desperately need BLE_Skeleton to start product development, hence my error posting.

I may assume that example projects are correct and working. It is not up to me to set paths or whatever.

About installing BLE_Skeleton. In stm32Cube I do: File > Import > Import STM32Cube Example. In MCU/MPU select STM32WB09KEV6TR. From the list of sample projects, select BLE_Skeleton, then Next --> project gets installed. Compile ==> error.

LVanr.1
Associate II

This issue is resolved.

For the benefit of future readers who may come here looking for solutions to the same problem, please describe how you resolved it.

Then mark your description as The Solution.

See: https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256

LVanr.1
Associate II

(I got the solution via direct contact with an ST employee)

CubeMX > Project Manager > Code Generation > select 'Add necessary library files as reference.....'
Save and compile.

Thanks.  Now please mark that as the solution.