Hi, I'm in a similar situation, currently working with 8MNANOD3L-EVK and a J-Link Ultra+.
With OpenOCD 0.11.0, there is support for i.MX8MQ which appears to work for my board, in that I can break and continue from gdb while the system is in uboot, using openocd like this:
openocd -f interface/jlink.cfg -f board/nxp_mcimx8m-evk.cfg -c init -c halt
However, when my system starts loading Linux, I get DAP errors from OpenOCD - the CPU keeps running but the JTAG seems to be disconnected.
- Could it be the case that we need to change something about the device tree, to preserve access to the JTAG?
- Are the debug addresses for the A53 cores the same between i.MX8MQ and i.MX8MN?
- Is there some special Linux configuration or boot argument required to allow JTAG debugging? FWIW, the target is running 5.10
I've tried setting the kernel boot arguments to include the following, with no noticeable effect:
nokaslr rodata=off maxcpus=1
Thanks!