Created
June 20, 2022 18:45
-
-
Save daniel-p-carvalho/5b533d7e743081960637e73535f60e6d to your computer and use it in GitHub Desktop.
udev Rules - ST-LINK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # STM32 discovery boards, with onboard st/linkv1 | |
| # ie, STM32VL | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", \ | |
| MODE:="0666", \ | |
| SYMLINK+="stlinkv1_%n" | |
| # If you share your linux system with other users, or just don't like the | |
| # idea of write permission for everybody, you can replace MODE:="0666" with | |
| # OWNER:="yourusername" to create the device owned by you, or with | |
| # GROUP:="somegroupname" and mange access using standard unix groups. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # STM32 nucleo boards, with onboard st/linkv2-1 | |
| # ie, STM32F0, STM32F4. | |
| # STM32VL has st/linkv1, which is quite different | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374a", \ | |
| MODE:="0666", \ | |
| SYMLINK+="stlinkv2-1_%n" | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \ | |
| MODE:="0666", \ | |
| SYMLINK+="stlinkv2-1_%n" | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3752", \ | |
| MODE:="0666", \ | |
| SYMLINK+="stlinkv2-1_%n" | |
| # If you share your linux system with other users, or just don't like the | |
| # idea of write permission for everybody, you can replace MODE:="0666" with | |
| # OWNER:="yourusername" to create the device owned by you, or with | |
| # GROUP:="somegroupname" and mange access using standard unix groups. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # STM32 discovery boards, with onboard st/linkv2 | |
| # ie, STM32L, STM32F4. | |
| # STM32VL has st/linkv1, which is quite different | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \ | |
| MODE:="0666", \ | |
| SYMLINK+="stlinkv2_%n" | |
| # If you share your linux system with other users, or just don't like the | |
| # idea of write permission for everybody, you can replace MODE:="0666" with | |
| # OWNER:="yourusername" to create the device owned by you, or with | |
| # GROUP:="somegroupname" and mange access using standard unix groups. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # STLink V3SET in Dual CDC mode | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3752", \ | |
| MODE:="0666", \ | |
| SYMLINK+="stlinkv3_%n" | |
| # STLink V3SET in Dual CDC mode | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3753", \ | |
| MODE:="0666", \ | |
| SYMLINK+="stlinkv3_%n" | |
| # STLink V3SET | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374d", \ | |
| MODE:="0666", \ | |
| SYMLINK+="stlinkv3_%n" | |
| # STLink V3SET | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374e", \ | |
| MODE:="0666", \ | |
| SYMLINK+="stlinkv3_%n" | |
| # STLink V3SET in normal mode | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374f", \ | |
| MODE:="0666", \ | |
| SYMLINK+="stlinkv3_%n" | |
| # If you share your linux system with other users, or just don't like the | |
| # idea of write permission for everybody, you can replace MODE:="0666" with | |
| # OWNER:="yourusername" to create the device owned by you, or with | |
| # GROUP:="somegroupname" and mange access using standard unix groups. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment