cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Region Flash of context Boot and region Flash of context Appli are overlapped.

md5
Visitor

cubeMX version 6.13, generating for CMake.

Hi there,

I'm configuring an STM32H7S3 nucleo board. I can build, flash, run, and debug code.

I am adding a UART for logging and now am getting the titled error when generating:

Edit: This problem appears the moment I go to the Memory Management tab! If I reset to previous .ioc state, the code generates happily. If I open the project and simply open the memory management tab, this error appears.

md5_0-1738636812235.png

In tools>Memory Management it looks like my bootloader and app both live in the 64kB onboard flash

md5_0-1738699131654.png

 

I want the bootloader to use the onboard flash, and do execute-in-place for code on the provided NOR flash.

I have followed these guides, which seem relatively up-to-date:

Getting started with MMT(Memory Management Tool) - stm32mcu

stm32h7s_workshop/1_external_memory/external_memory.md at main · ST-TOMAS-Workshop/stm32h7s_workshop

In particular, section 6.2.5.1 of the first link shows how application flash will be moved to XSPI. In spite of my following the steps very carefully, mine still looks like the photo above.

1. I assume the MMT map should change if I follow the steps in both tutorials, ie. a 32MB section should appear on XSPI2. Is this true?

2. How can I move appli into external flash so that the boot and appli flash regions don't overlap? 

3. While it seems like the suggested workflow is to use cubeMX, I see that in the generated files "stm32h7rsxx_ROMxspi1.ld" exists, which uses the memory mapping I am interested in. If it is not possible to use cubeMX to do the memory mapping, how do I choose to use this linker script instead of the default?

 

Here are my configurations. They are a combination of both guides. I've previously followed each guide individually very carefully, without success.

Note the MMT tab in XSPI2 config. Neither tutorial mentioned this, but that tab has a "device type" setting with the only option being "not defined". Could this be relevant?

Thanks.

md5_2-1738692700949.png

------------------------------------------------------------------------------

md5_3-1738692736185.png

------------------------------------------------------------------------------

md5_4-1738692774414.png

md5_5-1738692790852.png

------------------------------------------------------------------------------

md5_1-1738699551941.png

------------------------------------------------------------------------------

md5_7-1738698427485.png

 

 

 

0 REPLIES 0