LPC8N04 EEPROM write over 4kB result chip locked

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

LPC8N04 EEPROM write over 4kB result chip locked

2,092 Views
kenchong
Contributor I

Dear sir, 

   I have written some wrong code on written around 8kB data to the EEPROM from zero offset. Now Jlink show error below:

VTarget = 3.345V
- Found SW-DP with ID 0x0BC11477
- Unknown DP version. Assuming DPv0
- Scanning AP map to find all available APs
- AP[1]: Stopped AP scan as end of AP map has been reached
- AP[0]: AHB-AP (IDR: 0x04770031)
- Iterating through AP map to find AHB-AP to use
- AP[0]: Skipped. Could not read CPUID register
- ERROR: Could not find core in Coresight setup
- ERROR: Failed to connect.

anyway i can recovery the chip? Thanks

Best Regards,
Ken

0 Kudos
Reply
6 Replies

2,068 Views
kenchong
Contributor I

um... i have check the datasheet in detail but didn't find and topic related to this issue...

0 Kudos
Reply

2,065 Views
frank_m
Senior Contributor III

Have you tried a mass erase with the GUI Flash tool that comes with MCUxpresso ?

You probably need the "Reset on connection" option.

frank_meyer_0-1618811083885.png

 

0 Kudos
Reply

2,057 Views
kenchong
Contributor I

I try the GUI tool you show me , however both Jlink and MCUxpresso CMSIS-DAP are not working now, by the way, i try a hundred time connect with jflash and it's success connected and download once, but it's just not recognise again after reset the power and just keep show error while determining coresight soc version.

F4FD140B-B082-43E1-819D-73EC9BCA81B9_1_105_c.jpeg

FFF71B63-D059-451C-9494-3F0A8779A6F9_1_105_c.jpeg

DF13773D-2E02-49FC-8FEB-15C157C485B8_1_105_c.jpeg

0 Kudos
Reply

2,046 Views
frank_m
Senior Contributor III

Did you try to enable the "Rest on connection" checkbutton ?

Or try the MCU reset button on your develeompent board during the process ?

I do not have such a board, and cannot try myself.

0 Kudos
Reply

2,020 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Ken,

One alternative may be using a tool like Flash Magic Tool (link below) which does support the LPC8N04 to connect to the board using ISP mode and erase the EEPROM.

https://www.flashmagictool.com/

I hope that this helps!

Regards,
Gustavo

0 Kudos
Reply

2,082 Views
frank_m
Senior Contributor III

As you might have realized, this MCU has only 4kByte of EEPROM.

A chip lockup usually happens because of a fault exception happens inside a fault exception handler. Thus, the core locks up to prevent random actions and possible damage. This is usually resolved by a power cycle.

If a debugger-connect under reset does not work, you might need to get the MCU into system mode, i.e. start into the ROM bootloader, and do a mass erase.

I don't work with the LPC8, but the exact requirements for this procedure should be documented in the user manuals and/or application notes.

0 Kudos
Reply