2025-06-17 11:59 PM
Hello,
I'm trying to run a ML model (miniresnet from modelzoo) to a NUCLEO-N627X0-Q starting from STM32CubeMX (initialization of device, model & code generation). Everything is OK when i select STM32Cube.AI MCU runtime, the model is created and runs smoothly, however, when i select STM32Cube.AI Neural-ART runtime (with n6-noextmem profile since i have various problems with external flash and the model is small enough to fit in SRAM) the code is generated fine, but an extra .raw file ([modelname]_atonbuf.AXISRAM5.raw) is created.
I noticed the the compiled .bin file (In STM32CubeIDE) is rather small (~62Kb) so i am pretty confident that it does not contain the full model (~122kb). I suspect that somehow i have to load this raw file to memory for the NPU to read.
When i run the model through NPU the output is constantly zero (uninitialized or zeroed weights maybe?).
I am using the nucleo in n DEV_BOOT Mode, do i need to load the raw file to memory manually? is there any guides or instruction on how to do it?
I am attaching the memory-pools setup and the NN analyze results for the model i use
Thanks