LPC546xx MASS ERASE ulink2?

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC546xx MASS ERASE ulink2?

889 Views
dark0711
Contributor III

Hi, I installed eCRP on the controller (LPC54606) and it blocked SWD, but the documentation says it is necessary to run the Mass Erase command.
How do I use the Ulink2 Pro to execute the Mass Erase command.
For example, seeger programmer can do it, but now I don’t have it

Labels (1)
Tags (2)
0 Kudos
6 Replies

739 Views
dark0711
Contributor III

Thanks for the answer.

How I solved the problem.

I have a lpc-link2 debugger, I installed the latest segger firmware in it.

Dismantled Ulink, took out the cable and connected to lpc link 2 and sent the unlock lpc5460x command via SWD

It is a pity that ARM did not solve this problem. A segger well done
Sorry for bad english

739 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Ahtoh,

I think you can use blhost tools to mass erasing the flash during boot-up stage after power-up.

If you use uart0 to boot application code:

USART mode
FC0_TXD      PIO0_30

FC0_RXD      PIO0_29

You can use the following blhost command to erase the flash:

1)download blhost tools

Bootloader Host Application (blhost) 

2)execute blhost command

You can use the command on PC side:

blhost -p comxx get-property 2

blhost -p comxx flash-erase-all

Pls  have a try

BR

Xiangjun Rong

ISP pins configuration during  Reset state so taht you can enter bootloader mode:

pastedImage_269.png

697 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, all,

I appologize for the wrong information, the blhost tools does NOT support LPC56xxx family. Customer can use Flash Magic tools to erase on-chip flash and download code to flash.

 Currently, the blhost tools only support LPC55xx/LPC55Sxx sub-family for all LPC family, because the flash-loader tools is integrated in the on-chip flash of LPC55xx family.

BR

XiangJun Rong

 

0 Kudos

739 Views
dark0711
Contributor III

Thanks for the answer.

ISP is also blocked through eCRP. The controller is visible only through SWD

eCRP value set at 0x00019800 in vector table.

0 Kudos

739 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Ahtoh,

If your ECRP data blocks both the SWD and ISP, I do not think there is any way to run the mass erasing command, in the case, you have to remove the old LPC54606 on board and populate a new one.

BR

XiangJun Rong

0 Kudos

562 Views
emblink182
Contributor III

I have tested ERCP on LPC54605 and disabled enter ISP from pins, ISP from IAP call, disabled SWD, and set protected sector count to the whole flash sector count. And was surprised that this state is still recoverable by J-Link commander command - unlock LPC5460x. Got lucky to found this topic.

0 Kudos