2025-09-18 9:13 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.