2415751_en-US

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

2415751_en-US

2415751_en-US

MCUXpresso IDE 25.6 Build 136 – LPC-Link2 is not automatically booted on Linux

Ladies and Gentlemen,

I am experiencing a reproducible problem with MCUXpresso IDE v25.6 Build 136 on Linux and an LPC-Link2 debug probe.

When the LPC-Link2 is connected, it initially appears in DFU mode:

1fc9:000c NXP Semiconductors LPC4330FET180
(device firmware upgrade mode)

Linux detects the DFU device correctly. For example:

$ /usr/bin/dfu-util -l

Found DFU: [1fc9:000c] ver=0100, devnum=19, cfg=1, intf=0,
path="1-6", alt=0, name="DFU", serial="ABCD"

The important observation is that the LPC-Link2 boot process itself works correctly.

Running the LinkServer boot command manually from a terminal successfully boots the probe. It then re-enumerates as:

1fc9:0090 NXP Semiconductors LPC-LINK2 CMSIS-DAP V5.460

I can also boot the probe successfully using LinkFlash.

However, if I start a debug session with the green Debug button while the LPC-Link2 is still in DFU mode, MCUXpresso IDE fails to boot the probe and reports:

No bootable LPC-Link2 found

The IDE's pre-launch command is:

/usr/local/LinkServer_26.9.130/binaries/boot_link2

The IDE reports:

Non-zero return code (1) from pre-launch command:
.../boot_link2

and the corresponding dfu_boot invocation reports that no bootable LPC-Link2 was found.

I have verified that the same DFU device is still visible from a normal terminal while MCUXpresso IDE is running:

$ /usr/bin/dfu-util -l

Found DFU: [1fc9:000c] ...

If I boot the LPC-Link2 externally first (for example with LinkFlash), the blue Debug button works correctly and I can debug the target normally.

I have tested both the original LinkServer version supplied with MCUXpresso IDE 25.6 and LinkServer 26.9.130. The behaviour is the same.

I also restored the IDE's original/default LinkServer configuration, with no improvement.

Therefore the problem does not appear to be:

  • LPC-Link2 hardware

  • USB enumeration

  • Linux DFU support

  • the LinkServer boot image

  • the LinkServer boot mechanism itself

The failure appears to be specifically in the automatic LPC-Link2 boot performed by MCUXpresso IDE as part of the green Debug launch sequence on Linux.

As a workaround, I can start LinkFlash, let it boot the LPC-Link2, close LinkFlash, and then use the blue Debug button. This works, but it is obviously not the intended workflow.

Has anyone seen this behaviour with MCUXpresso IDE 25.6 Build 136 on Linux? Is there a known fix or patch for the IDE's automatic LPC-Link2 boot procedure?

I would particularly like to know whether this is a known IDE issue, since the LPC-Link2 and the LinkServer boot process itself are demonstrably working.

Re: MCUXpresso IDE 25.6 Build 136 – LPC-Link2 is not automatically booted on Linux

Thank you. I checked this.

My system has:

dfu-util 0.11

The MCUXpresso IDE 25.6.136 installation itself does not contain a dfu-util binary, so it appears to use the system version:

/usr/bin/dfu-util

This is indeed version 0.11.

I also checked the forum post you linked. The situation described there looks potentially relevant, since it specifically concerns dfu-util 0.11 and the parsing of the VID:PID returned by dfu-util -l.

However, there is one important difference in my case: the same boot_link2 / dfu_boot command works correctly when I run it manually from a terminal. The problem occurs when MCUXpresso IDE invokes boot_link2 as the pre-launch command of the green Debug launch.

Could the dfu_boot script included with LinkServer/MCUXpresso IDE 25.6.136 still contain the dfu-util 0.11 parsing problem described in the linked post?
That topic is from 2024, is it possible, that this issue still present in 2026?

bela@bela-ThinkPad-P70:~
$ find /usr/local/mcuxpressoide-25.6.136 -type f -name 'dfu-util*' -ls
bela@bela-ThinkPad-P70:~
$ which dfu-util
dfu-util --version
/usr/bin/dfu-util
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/

bela@bela-ThinkPad-P70:~
$


Re: MCUXpresso IDE 25.6 Build 136 – LPC-Link2 is not automatically booted on Linux

Hi @jeanvaljean 

Thank you for your post!

Could you please review the dfu-util version your IDE is using? 

Please review the post: Report dfu boot problem to LPC Link2 with lpscrypt under Linux


Re: MCUXpresso IDE 25.6 Build 136 – LPC-Link2 is not automatically booted on Linux

Hi @jeanvaljean 

Apologize the late reply.

Yes, that topic could be affecting due the dfu version is still the same. Please try to implement the patches that are provided in the post I share before and let me know if that resolves the issue. 


Tags (1)
No ratings
Version history
Last update:
Tuesday
Updated by: