I am using a FDRM-K64F board and I cannot debug with MCUXpresso IDE via J-Link (USB). I get a "Cannot get Jtag device" error. It worked fine with the Kinetis Designer IDE. The debug configuration is set to SWD.
Any idea what the problem can be?
are you using an external J-Linkk (connected to J9)? If so, it depends what debug firmware you are running on the K20/OpenSDA: if this is the mbed/CMSIS-DAP, it can interfere with the SWD signals. In that case, power the board with the K64 USB port (not with the OpenSDA one).
I hope this helps,
I am using the USB cable and I flashed the SDA to OpenSDA/J-Link. This works fine with the Kinetis IDE. This debug connection is fast but limited to 5 break points.
This morning, I’ve found out how to use the LinkServer with OpenSDA/USB. It works, but slower than using SDA/J-Link.
Can you confirm how you are creating your launch configuration? With MCUXpresso IDE you really need to be using the Quickstart Panel -> Debug option to autodetect and configure the probe. If you manually created a launch config, I would suggest deleting and starting again.
See the supplied MCUXpresso IDE User Guide for more details of how to use the built in J-Link support.
LPCXpresso / MCUXpresso IDE Support
Thanks. This helped. Deleting all existing launch configs was important for autodetect. Now, it detects the J-Link and it is working. :-)
I did this the first time (in Quickstart Panel) and autodetect went wrong for J-Link for some reason. Now, this second time autodetect went right. When I look at the debug launch config nothing is different with the first attempt. Must be some hidden setting that went wrong.
Retrieving data ...