I want to user in-circuit debugger J-Link in my i.MX8ULP PicoCore board. I attaches debugger and try to start debug session but always get an error. So I decided to find out the issue and use J_Link Commander. There is a connection log:
SEGGER J-Link Commander V7.96t (Compiled Jul 11 2024 09:18:34)
DLL version V7.96t, compiled Jul 11 2024 09:17:37
Connecting to J-Link via USB...O.K.
Firmware: J-Link Ultra V4 compiled Sep 22 2022 15:00:10
Hardware version: V4.00
J-Link uptime (since boot): N/A (Not supported by this model)
S/N:
License(s):
VTref=1.856V
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Device "MIMX8UD5_M33" selected.
Connecting to target via JTAG
InitTarget() start
******************************************************
J-Link script: i.MX8ULP Cortex-M33 core J-Link script
******************************************************
InitTarget() end - Took 3.82ms
Could not measure total IR len. TDO is constant high.
Failed to identify target. Resetting via Reset pin and trying again.
InitTarget() start
******************************************************
J-Link script: i.MX8ULP Cortex-M33 core J-Link script
******************************************************
InitTarget() end - Took 2.89ms
Could not measure total IR len. TDO is constant high.
Error occurred: Could not connect to the target device.
For troubleshooting steps visit: https://wiki.segger.com/J-Link_Troubleshooting
J-Link>
As you see, J-Link detected reference voltage as 1.8 V. It has a reason because there is a connection to 1,8V power source directly. I guess you ment that debug interface should work with this logic level (1.8 V). But it doesnt. I measure the voltage on unconnected debug socket and here is a result:
[IMG:https://i.ibb.co/mGFMRV8/jtag-trouble.png]
I see that CPU provides 3.3 V level on debug interface despite the interface socket provides 1.8V reference level to the debugger. So maybe this is the reason why debugger can't run debug session?
Also I attached logic probe log for 5 JTAG pins during the starting connect by J-Link commander session, you can open it in DSView 1.2.2 software or I can export it if you need.
Any suggestions?