Issue running larger models on STM32H747I-DISCO
Hi everyone,
I’m having trouble generating a project for the STM32H747I-DISCO board because my AI model exceeds the 1024 KB flash limit allocated for the M7 core (it takes up around 1.09 MB). To solve this, I’m trying to use more memory by following this guide: How to run larger models on STM32H747I-DISCO
Here are the steps I followed:
- Create an empty project for the board, selecting not to initialize the default peripherals.
- Enable X-CUBE-AI and set the application mode to "Validation".
- Modify the memory pool from the Tools tab.
- Reducing the flash allocated for the M4to 64 KB and chaning the boot address
- Increase the flash available for the M7
- In the X-CUBE-AI configuration screen, I load the model (and at this step I select to optimize the clock and the peripherals), then when I try to generate the code, I get a warning stating that the model exceeds the 1024 KB flash limit. If I ignore the warning and proceed, the generated project appears incomplete and I can't move on building the project.
(Of course, if everything had worked correctly, I would have changed the M4 boot address using CubeProgrammer to eventually perform the validation on target).
Has anyone any suggestions on how to fix it?
Thanks in advance!
