LPC54606 is not able to connect using J-Link

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC54606 is not able to connect using J-Link

3,689件の閲覧回数
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.

 

ラベル(1)
11 返答(返信)

1,430件の閲覧回数
namht
Contributor III

Hi,

Are you solved your issue?

 

0 件の賞賛
返信

3,578件の閲覧回数
emb02
Contributor IV

Hi,

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

0 件の賞賛
返信

3,564件の閲覧回数
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 件の賞賛
返信

3,559件の閲覧回数
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 件の賞賛
返信

3,537件の閲覧回数
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 件の賞賛
返信

3,529件の閲覧回数
emb02
Contributor IV
Hi,
Sorry I wanted to say J-Link.
I'm using SWD port only.
0 件の賞賛
返信

3,624件の閲覧回数
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 件の賞賛
返信

3,606件の閲覧回数
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 件の賞賛
返信

3,602件の閲覧回数
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 件の賞賛
返信

3,632件の閲覧回数
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 件の賞賛
返信

3,595件の閲覧回数
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 件の賞賛
返信