9 years, 6 months ago.

How to run stlink on Fedora Linux as a non-root user?

Hello,

I have recently bought a stm32f411re board for learning how to develop projects on it. I managed to setup eclipse with c/c++ development toolkit and arm-none-eabi compilers. I have installed stlinkv2 driver from the https://github.com/texane/stlink using the eclipse external tool option. I can build a blinkLED basic project and obtain the .bin and .hex files, but when I run the stlink tool I get the following error:

/media/uploads/radulyalex/stlink.error.png

I also did add the udev rule:

SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="3748", MODE="0666" [rules.d]$ cat 49-stlinkv2.rules

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \ MODE:="0666", \ SYMLINK+="stlinkv2_%n" [rules.d]$

.... and did a reboot but to no avail :( Running as root works but as user it throws that error.

I can however copy the bin file to the NODE_F411RE mounted drive, where the binary is copied into the microcontroller's memory and executed.

Can you please help me fix the issue with the permission?

Question relating to:

ST
A world leader in providing the semiconductor solutions that make a positive contribution to people’s lives, both today and in the future.

Looks more like a generic Linux USB question, which you might have more luck on f.e. StackOverflow.

posted by Jan Jongboom 06 Apr 2016
Be the first to answer this question.