Skip to main content
VNong
Associate
Dec 15, 2022 4:28 PM UTC
Solved

STM32CubeProgrammer USB DFU not detected on linux

0693W00000WL7ZIQA1.pngHi,

USB DFU did not work in STM32CubeProgrammer in Linux. The programm did not detect the usb port. But it works faultless in STM32CubeProgrammer in windows.

I tested with STM32CubeProgrammer V2.10 and 2.12, same results.

I have linux mint 20.3 Luna

This topic has been closed for replies.
Pavel A.
Pavel A.Best answer
Dec 17, 2022 3:22 PM UTC

Can it be a permission problem? Do you have udev rules to give access to non-root apps?

4 replies

Pavel A.
Pavel A.Best answer
Dec 17, 2022 3:22 PM UTC

Can it be a permission problem? Do you have udev rules to give access to non-root apps?

AScha.3
Super User
Dec 17, 2022 6:08 PM UTC

same on my linux (MX18) ; stlink working fine; dfu mode seems not "known device" to system,

dmesg shows:

0693W00000WLF51QAH.pngso cannot enumerate.

in Win you need load a special driver for "STM in dfu mode" , otherwise you get same "unknown device" message I had this on my Win7 pc ! ) ; newer installations of stm ide or Cube do it auto and install this driver. (or maybe Win10.. has it in its list to install if needed.)

If you feel a post has answered your question, please click on " Best Answer ".
Pavel A.
Dec 18, 2022 4:57 AM UTC

This is not same. If the device is recognized at all, this isn't a setup or enumeration error.

VNong
VNongAuthor
Associate
Dec 18, 2022 8:17 PM UTC

Yes it causes permission. It worked when I ran program with sudo. I will try to set the udev rule.

Thanks!