Skip to main content
Associate II
Nov 10, 2026 9:07 AM UTC
Question

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.

1 reply

Julian E.
ST Technical Moderator
Nov 20, 2026 8:37 AM UTC

Hi ​@H_Drx,

 

Could you share your model?

You need to zip it to attach it.

 

It seems that the issue is that the runtime is too big.

Could you share a screenshot of the run in CubeAI Studio also, mainly the part about RAM, FLASH etc

 

Have a good day,

Julian

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.