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.
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.
Hi,
Are you solved your issue?
Hi,
I am using MCUXPresso tool but still not able to debug.
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
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.
-> 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.
Hi,
The LPC546xx supports only SDW instead of JTAG, pls confirm if you use SWD or JTAG port on your target board.
BR
XiangJun Rong
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?
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
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
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.
BR
XiangJun Rong