LPC2294: To erase the flash memory completely using boot loader code.

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

LPC2294: To erase the flash memory completely using boot loader code.

894 Views
sudhakar_saptas
Contributor I

LPC2294: To erase the flash memory completely using boot loader code.

When checked in user manual, 

First the code read protection need to be disabled and then using ISP Erase sector command, flash memory could be erased. Please confirm the approach is valid and also request to provide sample code for it.

3 Replies

818 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Sudhakar, I hope you're doing well!

 

The "Erase Sector" ISP command can be used to erase specific sectors of the Flash memory of LPC2294:

pastedImage_2.png 

Keep in mind that the boot block sector cannot be erased using this command.

With code read protection disabled, the user needs to send an ISP Unlock command to enable the use of the Write, Erase and Go commands. Then, they should be able to use the Erase sector command.

 

For more information, could you please take a look at chapters 21.8 and 21.9 of UM10114?

 

Please let me know if you need any more information.

 

Best regards,

Sebastian

818 Views
sudhakar_saptas
Contributor I

Hi Sebastian,

Thank you for providing the details.

Any sample code which performs the above operation would be helpful for me.

Thanks,

Sudhakar

0 Kudos

818 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Sudhakar,

 

I'm really sorry for the inconvenience this may cause, but unfortunately, that's currently all of the information we have available to share for this MCU regarding the use of ISP mode to erase all of the contents of the flash.

 

Unfortunately, there's no example code for this specific functionality available at the moment for the LPC2xxx series.

 

Please let me know if you need any more information.

 

Best regards,

Sebastian

0 Kudos