AnsweredAssumed Answered

Howto Program lowest 32k of Flash when SRAM is mapped there ?

Question asked by davies.mike on Jul 31, 2012
Latest reply on Jul 31, 2012 by Clive One
Hi,

It's possible to program the Cortex M3 devices so that SRAM is aliased to the addresses starting at 0 and this is useful if it is required to run from RAM whilst supporting a reset vector in SRAM.  However, I do not understand how to program the Flash memory whilst the CPU is in this configuration ? 

The PM0062 manual says that half page Flash memory writes are performed by :

<snip setup> "...Directly write half a page with 32 different words to the program memory address space. The words must be written sequentially starting from word 0 and ending with
word 31".

But surely if I have mapped SRAM to the lowest 32k in Memory I will be accessing SRAM during this instead of the lowest 32k of Flash, so can anyone tell me how to program the lowest 32k of Flash whilst running from remapped SRAM ?

Thanks,

Mike

Outcomes