This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

M0 SDK Load Program From SPI Flash

Hi,

I am using the M0 SDK. My intent is to load the Program from an external SPI Flash. In the bootloader I am able to read from the SPI Flash but looking at the memory map it doesn't look like I can write to the Program Memory when remap=1. My system doesn't have a Flash - so I have connected an SRAM to that memory space.

I can use one APB peripheral to indirectly write to the SRAM but I was wondering what is the standard way of doing this (so that I can write to the Program Memory space using direct addressing). Or, do I need to update the addr_decode module so that transactions to some other 64KB region get mapped to the Program Memory when remap=1. 

Regards.