AnsweredAssumed Answered

Connecting to LPC-Link2 in ubuntu virtualbox

Question asked by Jeroen Reeskamp on Feb 21, 2020
Latest reply on Mar 4, 2020 by David Cabanis

Hello,

I'm trying to set up an automated build and flashing sequence in a virtual machine that is running Ubuntu 19.10 using virtual box

 

I run into problems when i try to flash a device

First I boot the link 

user@user-VirtualBox:/usr/local/mcuxpressoide/ide/binaries$ ./boot_link2
/usr/local/mcuxpressoide/ide/binaries/dfu_boot -s ./boot_link2 -n LPC-Link2 -v 0x1fc9:0x000c -i /usr/local/mcuxpressoide/ide/binaries/../binaries/LPC432x_CMSIS_DAP_V5_361.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/ide/binaries/../binaries/LPC432x_CMSIS_DAP_V5_361.bin.hdr
Booted LPC-Link2 (1fc9:000c) with /usr/local/mcuxpressoide/ide/binaries/../binaries/LPC432x_CMSIS_DAP_V5_361.bin.hdr

this all goes well, but when i try to flash the device i get the following

user@user-VirtualBox:/usr/local/mcuxpressoide/ide/binaries$ ./crt_emu_cm_redlink -flash-load-exec "/home/Desktop/barcode_reader/focus54114/EEPROM_writer/Debug/EEPROM_writer.axf" -vendor=NXP -pLPC54114J256
Ns: MCUXpresso IDE RedlinkMulti Driver v11.1 (Dec 4 2019 19:02:41 - crt_emu_cm_redlink build 5)
Wc(03). No cache support.
Nc: Found part description in XML file LPC5411x.xme
Nc: Restarted LinkServer process (PID 2879).

DEVICE ATTACH 1FC9:0090 Bus: 001 Device: 005
Nc: Reconnected to existing LinkServer process.
Ns: redlink server client - failed to receive response (to op 26) from server after 2000ms - Connection timed out (rc 110)
Nc: Server OK but no connection to probe 0 core -2(ANY) (after 3 attempts) - Ee(42). Could not connect to core.
Ed:02: Failed on connect: Ee(42). Could not connect to core.
Et:31: No connection to chip's debug port
user@user-VirtualBox:/usr/local/mcuxpressoide/ide/binaries$ ./crt_emu_cm_redlink -flash-load-exec "/home/Desktop/barcode_reader/focus54114/EEPROM_writer/Debug/EEPROM_writer.axf" -vendor=NXP -pLPC54114J256
Ns: MCUXpresso IDE RedlinkMulti Driver v11.1 (Dec 4 2019 19:02:41 - crt_emu_cm_redlink build 5)
Wc(03). No cache support.
Nc: Found part description in XML file LPC5411x.xme
Nc: Reconnected to existing LinkServer process.
Ns: redlink server client - failed to receive response (to op 26) from server after 2000ms - Connection timed out (rc 110)
Nc: Connecting to probe 0 core 0 (using server started externally) reports:
'Ee(42). Could not connect to core.'
Nc: Retrying...
Ns: redlink server client - failed to receive response (to op 26) from server after 2000ms - Connection timed out (rc 110)
Ns: redlink server client - failed to receive response (to op 26) from server after 2000ms - Connection timed out (rc 110)
Nc: Reconnected to existing LinkServer process.
Ns: redlink server client - failed to receive response (to op 26) from server after 2000ms - Connection timed out (rc 110)
Nc: Server OK but no connection to probe 0 core -2(ANY) (after 3 attempts) - Ee(42). Could not connect to core.
Ed:02: Failed on connect: Ee(42). Could not connect to core.
Et:31: No connection to chip's debug port

Any clue as to what I should do to make it work?

Outcomes