STM32Cube AI Studio: Flash overflow error, Not enough memory on target
Hello,
I am attempting to deploy a custom OCR model (.onnx format) onto the STM32H750B-DK Discovery board using STM32Cube AI Studio, but I am running into a severe memory overflow error during the run (Flash not enough memory on target)
message from log:
cube-ai.run WARNING Validation stopped due to memory overflow: Target has not enough memory. Flash split: internal=size=131072 bytes, used=175600 bytes, free=0 bytes, overflowed=True, external=size=134217728 bytes, used=1193428 bytes, free=133024300 bytes, overflowed=False
in memory pool setting i have disabled the internal flash and kept only the external flash and in the weight mapping i have enabled export weights as .bin in set the flash base address to 0x90000000.
in the advanced settings i have enabled split weights per tensor
maybe the entire code is too big for the memory, but in the STM cube MX i,m going to use the external flash memory for the entire application firmware.
is there any special configuration i need to set in the STM32Cube AI Studio or can is there a work around for this, maybe by using different MCU same family but more memory just to be able to generate the c code.
