LPC5528 SWD not working

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

LPC5528 SWD not working

1,142 Views
alex__
Contributor II

Hello, community.

I have a board with LPC5528JBD64K and for configuring it I use MCUXpresso IDE. MCU is ok (UART, ADC and other peripherals work), but I cannot flash and debug it using J-link, cuz error "Wrong DM-AP IDCODE detected" appears.

SWD clock is configured in MCUXpresso. Connection between MCU and SWD pins is ok. I tried to pull ISP entry pin to VCC and GND, nothing changes.

It is my first time with LPC, so, maybe, I forget to set some bits or anything else to turn debugging on.

0 Kudos
3 Replies

1,134 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello alex__,

About the SWD hardware design, you can refer to LPCxpresso55s28 board:

https://www.nxp.com/design/software/development-software/lpcxpresso55s28-development-board:LPC55S28-...

 

In MCUXpresso IDE, Just click  "Debug" button under Quickstart Panel:

 

4444.jpg

 

If still can't work, please take a video or take screenshot to show  your steps.

 

Regards,

Alice

 
 

 

0 Kudos

1,123 Views
alex__
Contributor II

SWD connected directly to the programmer:

debug_connection.jpg

Clock configuration:

clock1.jpg

And the error code(in SEGGER J-flash, MCUXpresso returnes the same code):

error.jpg

 

0 Kudos

1,093 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello alex,

You can have a look at this thread:

https://forum.segger.com/index.php/Thread/4302-SOLVED-Target-Connect-J-Link-Error-Check-connection-a...   

And about the J-link debug, recommend you also ask help on Segger support, they know the j-link deep.

https://www.segger.com/  

 

 

Regard,

Alice

0 Kudos