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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,067件の閲覧回数
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 返答(返信)

991件の閲覧回数
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

991件の閲覧回数
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 件の賞賛
返信

991件の閲覧回数
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 件の賞賛
返信