- This topic has 0 replies, 1 voice, and was last updated 5 years, 10 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › Toolchain installation in CentOS 7
Tagged: Toolchain Installation CenOS
Hello everybody,
While installing the recommended toolchain in CentOS 7 some not-so-obvious changes have to be made to the book instructions:
2.3.1 i386 Run-Time Libraries: The corresponding package is called “glibc.i686”, so one needs to do :
# yum install glibc.i686 (as superuser of course)
2.3.6 Libusb / 2.3.7 openocd: The file “99-openocd.rules” contains instructions referring to the user’s group “plugdev”, this group doesn’t exist per default, so there are two options:
1) Create the “plugdev” user’s group and add you user to it.
2) Find which groups your user is a member of (with the “groups” command) and replace “plugdev” with the name of that group in the “99-openocd.rules” file. Then do (as superuser)
# udevadm control –reload-rules
# udevadm trigger
That’s it.
Furthermore, the book’s instructions on page 77 “To do so, let us create a file named stlink.rules inside the /etc/udev/rules.d directory and add this line inside it:” are confusing, at least for me (By the way the book is otherwise excellent, a very nice mixture of background info and practical instructions). I didn’t create any stlink.rules files, I only did copy “99-openocd.rules” to “/etc/udev/rules.d/”.
I hope this helps some other CentOS users.
Cheers,
J