Skip to main content
Associate II
December 7, 2023
Solved

Help! When I deploy a neural network model to a development board the model fails to initialize!

  • December 7, 2023
  • 1 reply
  • 2638 views

I have version 6.7.0 of STM32CUBEMX, version 8.1.0 of X-CUBE-AI, and my stm32 development board model stm32h743iit6. using the Analyze button on STM32CUBEMX works. But when I generate c code for my onnx model and deploy it to the development board, my model fails to initialize. When I traced how the problem happened, I saw the ai_platform_network_create function. It's a black box function and I can't get inside it (it seems to be an officially provided function). I can compile and burn normally using the Keil software, but I can't proceed further when I run into this function. When I use debugging and click on the Stop button while stuck, my Call stack+Locals window prompts an HardFault_handler error. How do I get my model to run properly?

mc_daydayup_1-1701944871635.png

mc_daydayup_2-1701944960749.png

 

O7{76[7RY6I]4WH`UUP%(U2.png

_`67]P]UJOE57MCSV4EKOV1.png

61f5ffe2-b066-4e85-9f07-355ac1631982.png

mc_daydayup_0-1701944803115.png

 

 

This topic has been closed for replies.
Best answer by fauvarque.daniel

The STM32Cube.AI library requires to have the CRC IP enabled. 

Normally when the code is generated using STM32CubeMX and X-CUBE-AI the initialization of the CRC is done automatically. You can copy paste that part of the code in your project.

Regards

1 reply

fauvarque.daniel
fauvarque.danielBest answer
ST Employee
December 7, 2023

The STM32Cube.AI library requires to have the CRC IP enabled. 

Normally when the code is generated using STM32CubeMX and X-CUBE-AI the initialization of the CRC is done automatically. You can copy paste that part of the code in your project.

Regards

Associate II
December 7, 2023

Thank you for your answer, the problem has been solved!
Thanks again!