Failed on connect: Em(04). Cannot provide power to DAP bus.

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

Failed on connect: Em(04). Cannot provide power to DAP bus.

Jump to solution
2,843 Views
Jinwen
Contributor I

I am debugging power management examples on LPC55S69. But I encountered this problem and cannot  continue anymore. I cannot erase flash the board because it shows 0 available SWD Devices detected. Following is the messages from console. Can anyone help me? Thanks a a lot!

Probe Firmware: LPC-LINK2 CMSIS-DAP V5.361 (NXP Semiconductors)

Serial Number:  PRAXBQFR

VID:PID:  1FC9:0090

USB Path: /dev/hidraw1

connection failed - Em(04). Cannot provide power to DAP bus... Retrying

Failed on connect: Em(04). Cannot provide power to DAP bus.

Connected&Reset. Was: NotConnected. DpID: 6BA02477. CpuID: 00000000. Info: <None>

Last stub error 0: OK

Last sticky error: 0x0 AIndex: 0

No debug bus (MemAp) selected

DAP Speed test unexecuted or failed

Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.

(100) Target Connection Failed

Unable to perform operation!

Command failed with exit code 1.

Labels (1)
0 Kudos
Reply
1 Solution
2,813 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jinwen,

Maybe your chip enter deep power down mode, so it can't connect to debug port.

Please make your chip enter ISP mode, then use Flash Magic erase it, refer to:

https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Flash-Magic-Programing-LPC/ta-p/1152763 

 

BR

Alice

View solution in original post

1 Reply
2,814 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jinwen,

Maybe your chip enter deep power down mode, so it can't connect to debug port.

Please make your chip enter ISP mode, then use Flash Magic erase it, refer to:

https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Flash-Magic-Programing-LPC/ta-p/1152763 

 

BR

Alice