cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer Linux udev rules

Paolo Messina
Associate II
Posted on April 12, 2018 at 16:55

Using the app on Linux I found out it must have messed up with udev rules.

I found this file in '/etc/udev/rules.d/50-usb-conf.rules':

SUBSYSTEMS=='usb', ATTRS{idVendor}=='0483', GROUP='users', MODE='0666'

However that rule will override defalut group 'dialout' for USB Virtual Serial ports, because it applies unconditionally to every ST's USB device (Vendor ID = 0483), which was a very bad idea.

Having a group other than 'dialout' causes all sorts of weird troubles on Linux (I used Ubuntu 16.04), for example with 'minicom' (serial terminal), with Arduino IDE and STM32duino amongst other, and even with a simple 'stty'.

I changed the GROUP in the above udev rule from 'users' to 'dialout' and did not have any problem, with either 'minicom' or the Cube Programmer (even if the USB DFU Bootloader is not a TTY device). I'm not saying this is the best solution, but I'm just pointing out there is an issue with this udev rule file that needs to be resolved.

#stm32cubeprogramer #linux
0 REPLIES 0