LPC54606 is not able to connect using J-Link

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

LPC54606 is not able to connect using J-Link

3,671 Views
emb02
Contributor IV

Hi, 

I'm using LPC54606J512 with SWD interface but I'm not able to connect MCU using J-Flash. I'm getting error message as -

ERROR: Failed to connect.
Could not establish a connection to target.

Jflash.png

I'm able to erase MCU and then download code using Flash magic through ISP mode. The MCU runs correctly, but not able to connect using J-Link.

Please help me with this.

 

Labels (1)
11 Replies

1,412 Views
namht
Contributor III

Hi,

Are you solved your issue?

 

0 Kudos
Reply

3,560 Views
emb02
Contributor IV

Hi,

I am using MCUXPresso tool but still not able to debug.jlink.png

0 Kudos
Reply

3,546 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Is it the first time you download application code after design? are you sure that the power supply pins are connected correctly? I suspect that the LPC54606 can not start-up because of hardware connection.

BR

Xiangjun Rong

0 Kudos
Reply

3,541 Views
emb02
Contributor IV

Hi,

Is it the first time you download application code after design? 

-> I have tested this board multiple times before this problem arrived.

are you sure that the power supply pins are connected correctly? I suspect that the LPC54606 can not start-up because of hardware connection.

-> I have downloaded code using Flash magic and it is working fine.

flashmagic_.jpg

-> I am able to send and receive data on UART terminal.

-> I am able to send and receive data on CAN channels.

That means my hardware setup is ok and it's working. I just can't debug my hardware with JTAG.

 

0 Kudos
Reply

3,519 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

The LPC546xx supports only SDW instead of JTAG, pls confirm if you use SWD or JTAG port on your target board.

xiangjun_rong_0-1697694250289.png

 

BR

XiangJun Rong

0 Kudos
Reply

3,511 Views
emb02
Contributor IV
Hi,
Sorry I wanted to say J-Link.
I'm using SWD port only.
0 Kudos
Reply

3,606 Views
emb02
Contributor IV

Hi,

I have checked with J-link commander but getting same result.

J-Link>connect
Device "LPC54606J512" selected.

Connecting to target via SWD
Cannot connect to target.

Can you tell me how to reset the device with J-link commander?

0 Kudos
Reply

3,588 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that you can reset the chip with J-Link command:

J-Link>reset

This is the J-Link command set, pls refer to it.

https://wiki.segger.com/J-Link_Commander

 

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply

3,584 Views
emb02
Contributor IV
Hi,
J-Link>reset
->Connecting to target via SWD
->Cannot connect to target.
Still getting same error. What to do next?
0 Kudos
Reply

3,614 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Can you use J-LINK command to communicate with LPC54606? for example, specify the device, SWD port and reset the chip.

BR

XiangJun Rong

0 Kudos
Reply

3,577 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

As a test, pls try to use MCUXPresso tools to build and debug the project, and check if the tools can identify the J-Link device and download code.

 

xiangjun_rong_0-1697535289957.png

 

BR

XiangJun Rong

0 Kudos
Reply