Experiencing troubles with flashing LPCXpresso

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

Experiencing troubles with flashing LPCXpresso

2,024 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CatMurr on Thu Dec 15 22:51:11 MST 2011
I have LPCXpresso board with LPC11U14.
I accidentally executed
"LPC_SYSCON->SYSAHBCLKCTRL = (1<<13);" code instead of
"LPC_SYSCON->SYSAHBCLKCTRL |= (1<<13);" this.
After that all my attempts to erase or rewrite flash end with
"Failed to erase flash" (see attached images).

How can I solve this problem?
Labels (1)
0 Kudos
Reply
2 Replies

1,946 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CatMurr on Fri Dec 16 03:49:21 MST 2011
Thanks a lot, it helped!
0 Kudos
Reply

1,946 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ktownsend on Fri Dec 16 01:26:34 MST 2011
You can use a UART to USB adapter (FTDI Cables, or many sites like Adafruit and Sparkfun have FT232 adapters for this), put the devices into ISP mode and then use the free tool FlashMagic to recover the device since enabling ISP mode will cause it to enter a special mode that will not execute the code on the flash.

You may even be able to connect with the debugger while in ISP mode and reprogram your flash, but I haven't tried this in LPCXpresso.

Just search for ISP in the UM and datasheet and you should find a description of how to enable it.
0 Kudos
Reply