cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-BLE1 BlueNRG-MS - does not generate BLE app app_x-cube-ble1.c

gerhard
Associate II

STM32CubeMX 5.6.1 does not generate the Application app_x-cube-ble1.c so the initialization is also missing in main.c

Is there a fix for this?

7 REPLIES 7
gerhard
Associate II

Fixed - with STM32CubeMX 5.40

I tried older versions of CubeMX, and STM32CubeMX 5.40 does generate the Application app_x-cube-ble1.c file and the initialisation in main.c: MX_BlueNRG_MS_Iinit() 

I hope ST fixes this in the latest STM32CubeMX

Khouloud ZEMMELI
ST Employee

​Hi @gerhard​ 

could you please share your ioc file?

Thanks

Khouloud

Khouloud,

I included the pdf Report as well..

0_GettingStarted_561.zip

0_GettingStarted_540.zip

Any help appreciated

 
Khouloud ZEMMELI
ST Employee

Thanks @gerhard​ , well it's not a bug , ​In the new version , the "app_x-cube-ble1.c" has been replaced with "app_bluenrg_ms.c" , and you will find the #include "app_bluenrg_ms.h" in main.c

Best Regards,

Khouloud

Khouloud,

Unfortunately this is not the case.

app_x-cube-ble1.c does not get generated

#include "app_bluenrg_ms.h" is also NOT in main.c

I generate the CubeMX project in the same way with 5.6.1 and 5.4.0.

I tried this many times.

PS.

I noticed that sys.c and sys.h is also not generated, even thous it was set up in CubeMX

Regards

​Hi @gerhard​ 

You need to  select an application under Device in the pack to optain "app_bluenrg_ms.c".

For the sys.c/h it was a bug in 5.4.0 and now fixed (they should not be generated).

Best Rgerads,

Khouloud