Skip to main content
pinit
Associate
November 25, 2003
Question

Programming Main flash while running from sec.

  • November 25, 2003
  • 3 replies
  • 907 views
Posted on November 25, 2003 at 05:50

Programming Main flash while running from sec.

This topic has been closed for replies.

3 replies

pinit
pinitAuthor
Associate
May 17, 2011
Posted on May 17, 2011 at 11:56

Hi all,

I'm trying to program the main flash (FS0 on 0x0000 to 0x7FFF), as a part of IAP Proccess.

My CSIOP resids on 0x0200 and the RAM on 0x2000 to 0x3FFF.

As I understand I have to map the Main Flash to data space for programming (while running from sec. flash) but overlap of main flash on RAM or I/O will give the priority to the RAM/IO so that , I succeed to program all addresses but not at the range 0x0200 to 0x02FF & the range 0x2000 to 0x3FFF.

1. Can I program the Main Flash when I map it to code space?

2. Can I disable the access of SRAM / IO from data space for the time

of programming the main flash?

Thank's for any answer

Pini

pinit
pinitAuthor
Associate
May 17, 2011
Posted on May 17, 2011 at 11:56

Thank you very much for your reply!

1. Your idea to use the paging to map out the RAM was successful.

2. I did it also to map out the CSIOP but it requiers a reset to chip after programming the flash. Using this way I can program all of the flash space but I expect it to be easier.

[ This message was edited by: pini on 25-11-2003 17:21 ]
danielh1
Associate III
May 17, 2011
Posted on May 17, 2011 at 11:56

1 - Mapping the main flash to code space will make no difference

2 - You can disable the SRAM by paging it (PSDSOFT), and controlling the page register in your IAP. You may even move the SRAM from one location to another one.

3 - There is no way to disable or move the CSIOP. Can't you just locate it above the main flash?