I've been working with LPC54606 and MCXpresso (version MCUXpresso IDE v11.1.0 [Build 3209] [2019-12-12]) for several months with no issues, downloading code via the LPC-LINK2 USB connection.
Now suddenly I can't download and I get the error "03: Failed on chip setup: (Ep.04) Cannot halt processor".
I also tried to do the Flash operation of Program (mass erase first) and the only operation of Mass Erase.
Unfortunately the result does not change.
Do you have a suggestion how to restore it?
Here's the console output in MCUXpresso:
Executing flash operation 'Program' (Program file into flash: DTANode_LPC.axf) - Mon Jan 18 17:44:36 CET 2021
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v11.1 (Dec 4 2019 18:54:35 - crt_emu_cm_redlink.exe build 5)
( 0) Reading remote configuration
Wc(03). No cache support.
Found part description in XML file LPC54606_internal.xml
( 5) Remote configuration complete
Reconnected to existing LinkServer process.
Using memory from core 0 after searching for a good core
( 30) Emulator Connected
Cannot halt processor
Request debug reset of DAP
Cannot halt processor
Request debug reset of DAP
( 40) No Halt
( 50) CPU ID
debug interface type = Cortex-M3/4 (DAP DP ID 2BA01477) over SWD TAP 0
processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0
number of h/w breakpoints = 6
number of flash patches = 2
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Content of CoreSight Debug ROM(s):
RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1)
ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0)
ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0)
ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0)
ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0)
ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU
ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core
Cannot halt processor
Failed on chip setup: Ep(04). Cannot halt processor.
( 65) Chip Setup Complete
Thanks for your help
已解决! 转到解答。
Hi Alice,
I solved my problem by setting flash erase into "Flash Tool GUI" with the following options:
Reset the target on connection (Check box)
Reset Handling -> VECTRESET (Drop-down menu)
Reset Flash -> VECTRESET (Drop-down menu)
After doing this, the SW download worked.
Thanks again for the help
There is not the possibility to enter in this ISP mode.
One question: The LPC-LINK2 USB connection doesn't it put LPC54606 in boot mode?
At least the flash erase shouldn't work?
Thanks so much for your help
Hello,
No, LPC-link2 can't put chip into BOOT mode.
It maybe can't connect if it can't enter ISP mode, also can try to have a look at this thread:
https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Regaining-debug-access-to-target-MCU/m-p/473923
And also try to update the firmware lpc-link2, but it seems not the debugger issue.
Regards,
Alice
Hi Alice,
I solved my problem by setting flash erase into "Flash Tool GUI" with the following options:
Reset the target on connection (Check box)
Reset Handling -> VECTRESET (Drop-down menu)
Reset Flash -> VECTRESET (Drop-down menu)
After doing this, the SW download worked.
Thanks again for the help