2026-01-21 11:25 PM
There's a bug in latest STM32CubeMX v6.16.1. When enabling RAMCFG for Appli on STM32N6 MCU, the IOC file becomes unloadable.
I attached the demonstration IOC file. I created new project for STM32N6570-DK board, enabled RAMCFG peripheral for Appli, checked the AXISRAM3-6 areas, defined single continuous area for those SRAMs in MMT and saved the project. After this CubeMX fails to load this IOC file. I get popup:
In textual form the error is: Cannot invoke "com.st.microxplorer.mcu.memorymap.MemoryMapService.getInRangeAppRegions(long, long, com.st.microexplorer.mcu.Context)" because "this.mMemoryService" is null.
The workaround is to not enable RAMCFG in CubeMX, rather control the peripheral manually.
2026-01-22 12:26 AM - edited 2026-01-22 12:36 AM
Hello @Mikk Leini
Thanks for posting in STCommunity!
Was your project created with version 6.16.1 or was it migrated from an ancient version of CubeMX?
KR, Souhaib
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.
2026-01-22 1:09 AM - edited 2026-01-22 1:26 AM
Attached is a brand now project created today morning to rule out any other cause for the issue.