Skip to main content
Associate
June 18, 2023
Question

CUBE AI with STM32WB15

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

 

    This topic has been closed for replies.

    2 replies

    fauvarque.daniel
    ST Employee
    June 20, 2023

    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.
    Associate
    June 21, 2023

    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.