cancel
Showing results for 
Search instead for 
Did you mean: 

CUBE AI with STM32WB15

Kahroba2000
Associate

Hello everyone,

I have been trying to integrate a very light-weighted AI network with a sample BLE code (heartbeat one) for my STM32WB15 Nucleo board.

If I only run 'MX_X_CUBE_AI_Process' function in the main while loop, it keeps running, and If I only run 'MX_APPE_Process' it starts advertising the BLE service and publish the values properly. However, if I run both of them one after each other, the code would stuck inside the 'MX_X_CUBE_AI_Process' (apparently in the 'ai-run()').
It is also the same when I run the AI function inside the 'HRSAPP_Measurement' function which is responsible for measuring the heartbeat in the BLE app.

Anyone else has faced similar issue? Any solution is highly appreciated.
Thanks

 

2 REPLIES 2
fauvarque.daniel
ST Employee

Make sure the CRC IP is enabled (clocked) before to run the ai_run

Regards


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Kahroba2000
Associate

Thanks for the reply. 
The CRC IP clock has also been enabled. But no luck again.
I also did check the ram size and it only used %67 of the ram and ~35% of the flash.