2101403_en-US

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

2101403_en-US

2101403_en-US

JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why?

Hi everyone,

I'm working on bring-up for a custom board using the i.MX8M Plus (i.MX8MP) and encountering an issue with JTAG debug access. I'm using a Segger J-Link debugger and connecting directly to the JTAG interface (TCK, TMS, TDI, TDO, nRESET, VTref, GND). The physical connections are verified and correct.

Here's the issue:

  • If the SoC is powered on without any bootable device present (e.g., no eMMC, SD, or USB boot), JTAG fails to connect — the debugger cannot detect the CPU.

  • However, if the SoC boots any firmware (even just U-Boot), JTAG becomes responsive afterwards, and I can connect, halt, and debug as expected.

This suggests that JTAG is not operational at cold boot unless some firmware runs first. That seems a bit counter-intuitive for low-level bring-up.

My Questions:

  1. Why is the JTAG/DAP interface not available immediately after power-on reset?

  2. Is there something in the Boot ROM or clocks/power/IOMUX setup that needs to be configured first before JTAG can function?

  3. Is this behavior documented somewhere in the Reference Manual or other official documentation?

Any insights or guidance would be appreciated!

Thanks,
Yorker Hazan.

i.MX 8M | i.MX 8M Mini | i.MX 8M NanoRe: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why?

Please create a new case to address your issue.

Thanks

Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why?

Hi,

I have some questions regarding JTAG connectivity and boot options for a custom i.MX8M Plus board.

  1. How do you typically connect your board for debugging — using JTAG or another interface?

    • If JTAG is used, do you connect after U-Boot has executed or before boot (at power-on reset)?

  2. In our custom board, USB and SD interfaces are not populated, so we currently have only JTAG available for communication and detection.

    • Could you please advise on the correct procedure or configuration to bring up the board only via JTAG (DAP-Link or DSTREAM-ST)?

    • Is there any additional configuration needed in the JTAG_MOD / Boot_Mode pins for enabling debug access when no boot device is present?

  3. Is booting is mandatory for JTAG detection  and connect to the board? 
Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why?

Thank you very much!

This explains the situation very clearly.

Have a nice day!

Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why?

No, you could refer the description below:

June_Lu_1-1748308733817.png



Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why?

Hey,

Thank you for your reply, but it did not answer my question.

Is there a way to connect with JTAG without prior boot?

Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why?

Please refer to AN14120.pdf, Debugging Cortex-M with VS Code on i.MX 8M, i.MX 8ULP, and i.MX 9 to do the debug.

Thanks

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 01:58 AM
更新者: