Help! When I deploy a neural network model to a development board the model fails to initialize!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-07 2:30 AM - edited ‎2023-12-07 2:43 AM
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?
 
Solved! Go to Solution.
- Labels:
-
STM32 ML & AI
-
STM32CubeAI
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-07 3:44 AM
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-07 3:44 AM
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-07 6:10 AM - edited ‎2023-12-07 6:10 AM
Thank you for your answer, the problem has been solved!
Thanks again!
