Failed on connect: Em(04). Cannot provide power to DAP bus. Connected&Reset. Was: NotConnected. DpID

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

Failed on connect: Em(04). Cannot provide power to DAP bus. Connected&Reset. Was: NotConnected. DpID

1,597 Views
VishalThakur11
Contributor I

Hi, I am debugging the LPC 32bit arm controller in MCUXpresso IDE on ISP mode with LPC-Link2 kit

I am always getting no power in DAP bus even though I have provided external power source to the controller.

Need the needful help to come out from this query.

Thanks in adavance.

VishalThakur11_0-1655120138839.png

 

0 Kudos
Reply
6 Replies

1,547 Views
VishalThakur11
Contributor I

hi @CarlosGarabito could this problem is cause from pull-up of 4.5k ohm on ISP, SWDIO, SWDCLK, RESET pin as starting it was able to program the mcu.

Data sheet mention the range of 10-100k ohm, could you please figure out the problem.  

0 Kudos
Reply

1,517 Views
CarlosGarabito
NXP TechSupport
NXP TechSupport

So, are you using a custom board?

0 Kudos
Reply

1,513 Views
VishalThakur11
Contributor I

yes

0 Kudos
Reply

1,494 Views
CarlosGarabito
NXP TechSupport
NXP TechSupport

In this case, I can't replicate your error having you a custom board, so I suggest that try to do the same in a some evaluation board of us, and see if you obtain the same error. I suggest to that see the pdf Hardware Development Guide for your MCU to see if some hardware that you are using have a mistake

0 Kudos
Reply

1,553 Views
VishalThakur11
Contributor I

hi @CarlosGarabito 

I am using windows 11 system

MCUExpresso is able to display lpc link2 connection via usb, there is no connection issue.

When ever I tried to debug the program usually it show the Failed on connect: Em(04). Cannot provide power to DAP bus.

Debugg console is displaying the error message.

VishalThakur11_0-1655721969991.png

 

 

0 Kudos
Reply

1,581 Views
CarlosGarabito
NXP TechSupport
NXP TechSupport

Hi @VishalThakur11 first of all i think you need to explain with more details about your problem, i can see that you are using a LPC845, that's correct?, are you using linux? which one? did you add the rule for the LPC-Link2? what did you get in the console when you connect your usb device and type dmesg?

0 Kudos
Reply