2025-09-18 9:13 AM - edited 2025-09-19 3:03 AM
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.
2025-09-22 2:17 AM
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