LPC4337 has crashed in debug mode and flash programming isn't working since then

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

LPC4337 has crashed in debug mode and flash programming isn't working since then

812 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jgorsk on Tue Oct 02 09:53:12 MST 2012
LPC4337 has crashed in debug mode. It's not possible to use the chip since then.
JTAG interface seems to be working but flash programming or erasing over JTAG isn't.
I get this message in Keil when I try to erase the flash memory

'Cannot Load Flash Programming Algorithm'.


When I start the debugger there is an additional message in the output window

Cannot Write to RAM for Flash Algorithms !
Erase Failed!


Is there a solution to this problem or should I replace that chip?
标签 (1)
0 项奖励
回复
4 回复数

763 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by PhilYoung on Sat Oct 20 15:57:11 MST 2012
this is a common error message when the flash programming algorithms are not configured correctly.
I noticed that the latest config for the LPC43xx seems to specify a ram size of 0x800 which is too small, increasing this to 0x8000 seems to work. This was for external flash programming but may be the same problem.
0 项奖励
回复

763 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jgorsk on Fri Oct 05 07:02:15 MST 2012
I changed the state of the boot config pins and then I was able
to program the chip via JTAG. It works fine now.

0 项奖励
回复

763 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bavarian on Thu Oct 04 04:23:56 MST 2012
If there is still access via JTAG/SWD, then it should be possible to recover, As I can see different reasons for this problem, here are different hints how to overcome it:

1) Play with the settings for the reset:
   Project Settings --> Debug --> Settings
   - Autodetect
   - VECTRESET

2) Power-on your board in a different bootmode configuration, (e.g. the UART or USB bootmode) before you try programming. This ensures that the chip does not run into a software in the flash which maybe causes this lockout.

3) Use the DFU utility (USB bootmode) to program the flash.

4) Use the latest version of FlashMagic to get flash programming access over UART. (overall a little bit more complicated than the other proposals).


Regards,
NXP Technical Support Team
0 项奖励
回复

763 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by fcarlo on Tue Oct 02 23:42:15 MST 2012
You should be able to recover the uC putting it in ISP programming mode (you can use DFU, for example).

http://www.lpcware.com/content/project/dfu-download-programming-utility-and-security-lpcdfusec-tool
0 项奖励
回复