STM32CubeProgrammer Bugs with Linux and USB DFU
- October 16, 2024
- 3 replies
- 2383 views
Hello,
I'm using STM32CubeProgrammer v2.17.0 with Linux (Linux Mint 21.3). There are a some bugs/improvements I discovered:
1. By default, USB DFU devices are not recognized by STM32CubeProgrammer in user mode due to a permissions issue. To resolve this, I manually added an udev rule to allow access to USB DFU devices without requiring root permissions. It's unclear why this isn't the default configuration, especially since udev rules for STLink devices are automatically set up during the installation process.
My udev rule (new file in /etc/udev/rules.d/)
# stm32 dfu mode, give access for STM32 cube programmer
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", \
MODE="660", GROUP="plugdev", TAG+="uaccess"
2. It seems that the UI isn't displayed correctly for USB DFU mode. Connecting to the USB device work, but the connect button stays disabled and the status text displays "Not connected". After reading some memory, the button becomes enabled but still displays "Connect". See attached screenshots.
I'm using a NUCLEO-F767ZI board with System Memory Bootloader.
