cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble running my own ai model on STM32n6570-dk and cube mx regeneration issues

ivan6
Associate II

Hello - I'm quite new to the world of ML and machine learning on embedded and I'm having trouble implementing a model I've trained on the board. It is a hand gesture recognition model and the point was for me to understand the whole ML development process by training and deploying a model from scratch. I have been referencing this article: How to build an AI application from scratch on the... - STMicroelectronics Community and have followed all the steps. I tried once using a model from the model zoo and it worked fine but when trying with my own model it hits a hardfault and halts execution - so I'm guessing it is an issue with my model. I've attached a zip file of my project and a zip of the notebook file and exported model (i actually ended up uploading the keras model to ai developer cloud and quantising/optimising the model in there, so ignore this part in the notebook).

Another issue I've been having lately is regeneration of code with cube mx - I generate code for the first time and works perfectly, I regenerate and a whole host of errors pop up - for example: "mcu_cache.h no such file or directory" even though it is included in the build? This means I must continuously revert back to earlier versions if I want to try or change something without errors.

Again I'm quite new to all this but I'm keen to get something working that I've built from scratch on this board.

 

Edit: With regards to the CUBE mx  coderegeneration issue it seems to be playing with include path settings upon regeneration. Is this a known bug or was I doing something else wrong? In any case, recorrecting this or replacing the .cproject file with an older version seems to fix the issue.

1 REPLY 1
Julian E.
ST Employee

Hello @ivan6,

 

Thank you for reporting this issue. I have seen a few threads lately with a similar issue.

I transmitted it to the dev team. 

 

Any fix will in any case come with the next version of X Cube AI.

 

Have a good day,

Julian


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.