Problem debugging IMXRT595 EVK via command line under Linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem debugging IMXRT595 EVK via command line under Linux

Jump to solution
445 Views
sprhawk
Contributor I

I cannot debug IMXRT595 EVK under linux with command line utilities:

When I left JP1 Open and connect debug probe to USB, dmesg shows following:

[175902.334295] usb 3-4: new high-speed USB device number 127 using xhci_hcd
[175902.487414] usb 3-4: New USB device found, idVendor=1fc9, idProduct=0090, bcdDevice= 1.00
[175902.487422] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[175902.487425] usb 3-4: Product: LPC-Link-II CMSIS-DAP
[175902.487427] usb 3-4: Manufacturer: NXP
[175902.487429] usb 3-4: SerialNumber: A000000001
[175902.491334] hid-generic 0003:1FC9:0090.0025: hiddev1,hidraw8: USB HID v1.00 Device [NXP LPC-Link-II CMSIS-DAP] on usb-0000:00:14.0-4/input0
[175902.491984] cdc_acm 3-4:1.1: ttyACM0: USB ACM device
[175902.492975] hid-generic 0003:1FC9:0090.0026: hiddev3,hidraw9: USB HID v1.11 Device [NXP LPC-Link-II CMSIS-DAP] on usb-0000:00:14.0-4/input3

 

When I started JLinkExe V7.96h, it cannot find USB debug probe.

Then I was following "Getting Started with the MIMXRT595-EVK",  Section "LPCScrypt" .

I shorted JP1, and connected J40, then dmesg shows:

[176483.914804] usb 3-4: new high-speed USB device number 2 using xhci_hcd
[176484.063377] usb 3-4: New USB device found, idVendor=1fc9, idProduct=000c, bcdDevice= 1.00
[176484.063384] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[176484.063386] usb 3-4: Product: LPC
[176484.063388] usb 3-4: Manufacturer: NXP
[176484.063390] usb 3-4: SerialNumber: ABCD

 

Then runs program_JLink, it failed:

LPCScrypt - J-Link firmware programming script v2.1.2 Nov 2020.

Connect an LPC-Link2 or LPCXpresso V2/V3 Board via USB then press Space.
Booting LPCScrypt
No bootable LPCScrypt target found
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Found DFU: [1fc9:000c] ver=0100, devnum=2, cfg=1, intf=0, path="3-4", alt=0, name="DFU", serial="ABCD"
(Grepping for 0x1fc9:0x000c)
Boot Failed!
Ensure One Debug Probe is configured to DFU-Boot and connected via USB.
  - For LPC-Link2: remove link JP1 (nearest USB) and power cycle
  - For LPCXpresso V2/V3: make DFU link and power cycle

 

Not sure what's wrong here.

0 Kudos
Reply
1 Solution
405 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @sprhawk ,

Thanks for your interest in NXP MIMXRT series!

You are doing everything correctly, if you want to use JLink instead of DAPLink, you need to re-flash the firmware. Since I don't have a Linux host on my side, I did the same in Win10PC and was able to successfully burn the JLink firmware.

The latest LPCScrypt has been integrated into Linkserver, please try it. If it still doesn't work, we recommend that you try burning the firmware using a Windows host. 

https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools...

Gavin_Jia_0-1717054189901.png

success.png

Best regards,
Gavin

View solution in original post

0 Kudos
Reply
2 Replies
406 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @sprhawk ,

Thanks for your interest in NXP MIMXRT series!

You are doing everything correctly, if you want to use JLink instead of DAPLink, you need to re-flash the firmware. Since I don't have a Linux host on my side, I did the same in Win10PC and was able to successfully burn the JLink firmware.

The latest LPCScrypt has been integrated into Linkserver, please try it. If it still doesn't work, we recommend that you try burning the firmware using a Windows host. 

https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools...

Gavin_Jia_0-1717054189901.png

success.png

Best regards,
Gavin

0 Kudos
Reply
290 Views
sprhawk
Contributor I

Thanks! I installed LinkServer, then I can use

west debug -r linkserver

to start debug now.

0 Kudos
Reply