What's the right way to attach a J-Link to a running i.MX6UL to debug the Linux kernel?
I followed this post, which tells you to disable the 'clock off' wait state and use the -noir and -noreset options with the J-Link. Unfortunately, when I try starting my debug session with:
./JLinkGDBServer -if JTAG -endian little -device MCIMX6G3 -select USB -noir -noreset
the J-Link resets the MPU immediately. I thought maybe I could attach to it during U-Boot, and then start debugging once I was in Linux, but the connection gets closed between the U-Boot and Linux start-up phase.
I'm using JLink software V6.32c. My board doesn't use the sai2 interface, so there shouldn't be the widely-reported JTAG pin-muxing issue that others have struggled with.