ROM overflowed with over 3000 kB tflite models on ISPU
- October 15, 2024
- 1 reply
- 966 views
I am testing a tflite model on the ISPU, using the following hardware:
NUCLEO-F401RE + X-NUCLEO-IKS4A1
I downloaded the x-cube-ispu repo and imported the template_stedgeai example to STM32CubeIDE. Finally i generate the network library with:
stedgeai generate --target ispu --no-workspace --no-report -m /path/to/model.tflite --output .
Everything works perfectly fine with networks under 3000 kB. If the network has over 3000 parameters (quantized to int8) I get:
ispu_stedgeai.elf section `.rodata' will not fit in region `ROM'
region `ROM' overflowed by X bytes
The 3000 sounds way too small as the ISPU has 32kB of ROM. Is there something I need to do in order to enable bigger models sizes or am I doing something wrong?
I attached the output of the "stedgeai generate" and my main.c for context. The output from the file, gave: "region `ROM' overflowed by 2596 bytes" when building in STM32CubeIDE.
