Question
STM32Cube AI Studio: ROM overflow when generating YOLOv8n project for STM32N6570-DK
- August 27, 2026
- 1 reply
- 42 views
Subject: YOLOv8n ONNX conversion fails with "region 'ROM' overflowed by 5601536 bytes" on STM32N6570-DK
I am trying to convert and generate a YOLOv8n ONNX model for the STM32N6570-DK using STM32Cube AI Studio / ST Edge AI Core.
My target configuration is:
- Board: STM32N6570-DK
- Accelerator: ST Neural-ART
- RAM: 4200 KB
- Internal Flash: 0 KB
- External RAM: 32 MB
- External Flash: 128 MB
- Mode: On target
However, the generation fails with the following error:
region 'ROM' overflowed by 5601536 bytes
Since the STM32N6570-DK has 128 MB of external Flash, I would like to understand why the ROM region overflows and whether the model/data can be placed in external Flash.
What memory configuration or settings should I use to deploy YOLOv8n on the STM32N6570-DK?
I have attached the complete log and the ONNX model.
YOLOv8n Data↓
https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt
