Where is "mass erase"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where is "mass erase"

2,042 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by micrio on Sun Feb 05 06:52:31 MST 2012
I have seen threads refering "mass erase" and  'Erase only required pages' that are used when programming the flash.   I have LPCXpresso 4.1.0_190 and don't see them anywhere.   I am working with a LPC1114/301 chip.

I want to erase all flash when I load the chip.   I am using the top page in flash to save some configuration parameters.   I want to erase them every time that I load my code.   What is the best way to do this?

Thanks,
Pete.
0 Kudos
4 Replies

1,398 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by micrio on Mon Feb 13 05:50:31 MST 2012
There seems to be a bug with the Program Flash tool.  

If I use the "Program flash memory" tab, select the file to flash, and select the "Mass erase" option.   The file appears to be written to flash OK but the flash is not erased entirely.   Stuff that my app has written at the top of the flash address range using IAP is not erased.

If I use the "Erase flash memory" tab then all of flash is erased as expected.

Do the settings in the Program Flash tool affect the debug tool when it programms flash?

Thanks,
Pete.
0 Kudos

1,398 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Feb 07 08:00:23 MST 2012

Quote: Zero
Use 'Program Flash'  = little Chip Icon on the toolbar :)


There is a brief overview of this in the following FAQ....

http://support.code-red-tech.com/CodeRedWiki/GuiFlashProgramming

Regards,
CodeRedSupport
0 Kudos

1,398 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by stalisman on Mon Feb 06 08:36:52 MST 2012
What a coincidence, I was looking for exactly the same thing a few hours ago.

I was trying to flash a prototype board with a LPC1113/301 with FlashMagic only it kept failing because the old code inside it grabbed the UART.

I tried the ISP&Ground then Asserting the Reset to no avail repeatedly.

so here's the point of my post ...

.. I found I had better luck if after the the 'IDE mass erase' I just kept the ISP pin grounded (following the Reset) until after the 'FlashMagic flash' had completed.
0 Kudos

1,398 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sun Feb 05 07:13:07 MST 2012
Use 'Program Flash'  = little Chip Icon on the toolbar :)
0 Kudos