Experiencing troubles with flashing LPCXpresso

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Experiencing troubles with flashing LPCXpresso

2,031 次查看
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?
标签 (1)
0 项奖励
回复
2 回复数

1,953 次查看
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 项奖励
回复

1,953 次查看
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 项奖励
回复