Some questions about the STM32H7S78-DK XIP Template
Sorry for my 3rd XIP post on this board, but the more I learn about this process, the more questions I have.
Going through the XIP template code, I think I have a decent understanding of what it does.
1. Set up the XSPI Peripherals, one NOR Flash and one SDRAM
2. Prepare both peripherals to be in memory mapped mode
3. Set both peripherals to be memory mapped.
4. Put the Program Counter at the start of NOR Flash, and start the application code from there.
What I thought I would see in this template, is the bootloader writing instructions to the SDRAM from the NOR flash, and setting the program counter at the start of SDRAM, instead of NOR Flash.
Is the SDRAM even getting used?
It seems quite important to the process, but even in the disassembly, all the addresses we're executing instructions from are in the 0x7000 0000 range, which is all NOR Flash.
I'd really like to be able to do random writes to the external SDRAM. But I also really don't want to go overwriting my program where it's getting executed from.
Thanks,
-Hal
