AnsweredAssumed Answered

How to make redlinkserv work in the command line?

Question asked by László Monda on Sep 2, 2017
Latest reply on Jun 26, 2018 by Jimmy Pedersen

Hi there,

 

I'd like to use my LPC-Link 2 probe on the command line to program my boards and I cannot make it work this way.

 

First up, I launch "boot_link2" which works:

laci@spark /usr/local/mcuxpressoide-10.0.0_344/ide/bin $ ./boot_link2
/usr/local/mcuxpressoide-10.0.0_344/ide/bin/dfu_boot -s ./boot_link2 -n LPC-Link2 -v 0x1fc9:0x000c -i /usr/local/mcuxpressoide-10.0.0_344/ide/bin/../bin/LPC432x_CMSIS_DAP_V5_182.bin.hdr
Looking for DFU devices with VID 1fc9 PID 000c ...
dfu-util -d 1fc9:000c -c 1 -i 0 -t 2048 -R -D /usr/local/mcuxpressoide-10.0.0_344/ide/bin/../bin/LPC432x_CMSIS_DAP_V5_182.bin.hdr
Booted LPC-Link2 (1fc9:000c) with /usr/local/mcuxpressoide-10.0.0_344/ide/bin/../bin/LPC432x_CMSIS_DAP_V5_182.bin.hdr

 

Second, I launch "redlinkserv --telnetport=3025,3050" which starts up, but doesn't output anything and doesn't return. It also doesn't make the upcoming "crt_emu_cm_redlink" command work, and it hangs forever.

 

Third, I launch "crt_emu_cm_redlink", which fails. I assume it's because redlinkserv failed.

laci@spark  $ /usr/local/mcuxpressoide/ide/bin/crt_emu_cm_redlink --flash-load-exec "/home/laci/download/uhk-left.bin" -g --debug 2 --vendor NXP -p MKL03Z32xxx4 --load-base=0 -ProbeHandle=1 -CoreIndex=0 --reset vectreset -x /home/laci/mcuxpresso/.mcuxpressoide_packages_support/MKL03Z32xxx4_support --flash-dir /home/laci/mcuxpresso/.mcuxpressoide_packages_support/MKL03Z32xxx4_support/Flash 

Ns: MCUXpresso RedlinkMulti Driver v10.0 (Mar 21 2017 01:36:19 - crt_emu_cm_redlink build 190)
Pc: ( 0) Reading remote configuration
Pc: ( 5) Remote configuration complete
Nc: Reconnected to existing redlink server (PID 4294967295)
Nc: Connecting to probe 1 core 0 (server PID unknown) gave 'Ee(38). Invalid probe index.'
Nc: Connecting to probe 1 core 0 (server PID unknown) gave 'Ee(38). Invalid probe index.'
Nc: Connecting to probe 1 core 0 (server PID unknown) gave 'Ee(38). Invalid probe index.'
Nc: Server OK but no connection to probe 1 core 0 (after 3 attempts) - Ee(38). Invalid probe index.
Ed:02: Failed on connect: Ee(38). Invalid probe index.
Et:31: No connection to debug probe
Pc: (100) Target Connection Failed

 

"crt_emu_cm_redlink" works after I start up the Link Server GUI Flash programmer utility of MCUXpresso IDE, but as I said, I'd like to use LPC-Link 2 purely from the command line, so it's not an option.

 

Waiting for your ultimate wisdom, guys.

 

- Laci

Outcomes