Skip to main content
Arno1
Senior
August 2, 2024
Solved

libusb warnings

  • August 2, 2024
  • 2 replies
  • 2326 views

I keep getting warnings when using STM32CubeProgrammer_CLI that usb devices are still referenced: libusb: warning [libusb_exit] device x.x still referenced. This is a bit annoying.



-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------

libusb: warning [libusb_exit] device 4.7 still referenced
libusb: warning [libusb_exit] device 4.8 still referenced
libusb: warning [libusb_exit] device 4.6 still referenced
libusb: warning [libusb_exit] device 4.5 still referenced
libusb: warning [libusb_exit] device 4.1 still referenced
libusb: warning [libusb_exit] device 3.1 still referenced
libusb: warning [libusb_exit] device 2.1 still referenced
libusb: warning [libusb_exit] device 1.3 still referenced
libusb: warning [libusb_exit] device 1.2 still referenced
libusb: warning [libusb_exit] device 1.19 still referenced
libusb: warning [libusb_exit] device 1.20 still referenced
libusb: warning [libusb_exit] device 1.22 still referenced
libusb: warning [libusb_exit] device 1.21 still referenced
libusb: warning [libusb_exit] device 1.25 still referenced
libusb: warning [libusb_exit] device 1.27 still referenced
libusb: warning [libusb_exit] device 1.23 still referenced
libusb: warning [libusb_exit] device 1.18 still referenced
libusb: warning [libusb_exit] device 1.17 still referenced
libusb: warning [libusb_exit] device 1.1 still referenced
ST-LINK SN : xxx
ST-LINK FW : V3J15M6
Board : STLINK-V3MINIE
Voltage : 3.28V
SWD freq : 24000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x483
Revision ID : Rev Z
Device name : STM32H72x/STM32H73x
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x92


 

Best answer by Amine_Jridi

Hello @Arno1,

 

The warnings issue is related to the version of libusb. To avoid these warnings, you can downgrade to version 1.0.23, which works fine. In the meantime, an internal ticket has been created (188089) and is being addressed by our team to resolve the issue from our side.

Thanks,

Amine. 

 

 

2 replies

Christian N
ST Employee
August 2, 2024

This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

Visitor II
September 10, 2024

Hi Christian, could you post the solution here? I'm having the same issue on multiple PC's

Amine_Jridi
Amine_JridiBest answer
Technical Moderator
September 12, 2024

Hello @Arno1,

 

The warnings issue is related to the version of libusb. To avoid these warnings, you can downgrade to version 1.0.23, which works fine. In the meantime, an internal ticket has been created (188089) and is being addressed by our team to resolve the issue from our side.

Thanks,

Amine. 

 

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Visitor II
September 24, 2025

Hi, any update on this issue? Downgrading libusb is a pain on our systems.

Amine_Jridi
Technical Moderator
October 3, 2025

Hello @victorallume,

I recommend using the latest version of STM32CubeProgrammer, where the warning messages no longer appear.

Thanks,
Amine

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.