Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
stlink v3
Browse files Browse the repository at this point in the history
  • Loading branch information
koendv committed Jun 1, 2020
1 parent 3bafcfd commit e23fe40
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Arduino_Tools/STM32Tools/tools/linux/49-stlinkv1.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# ie, STM32VL

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", \
MODE:="0664", \
GROUP:="dialout", \
MODE:="0666", \
SYMLINK+="stlinkv1_%n"

# If you share your linux system with other users, or just don't like the
Expand Down
11 changes: 9 additions & 2 deletions Arduino_Tools/STM32Tools/tools/linux/49-stlinkv2-1.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
# 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:="0664", \
GROUP:="dialout", \
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
Expand Down
3 changes: 1 addition & 2 deletions Arduino_Tools/STM32Tools/tools/linux/49-stlinkv2.rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# STM32VL has st/linkv1, which is quite different

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \
MODE:="0664", \
GROUP:="dialout", \
MODE:="0666", \
SYMLINK+="stlinkv2_%n"

# If you share your linux system with other users, or just don't like the
Expand Down
29 changes: 29 additions & 0 deletions Arduino_Tools/STM32Tools/tools/linux/49-stlinkv3.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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.
2 changes: 1 addition & 1 deletion Arduino_Tools/STM32Tools/tools/linux/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if sudo [ -w /etc/udev/rules.d ]; then
echo "Copying udev rules..."
for RULE in 45-maple.rules 49-stm32_hid_bl.rules 49-stlinkv1.rules 49-stlinkv2.rules 49-stlinkv2-1.rules 99-blackmagic.rules
for RULE in 45-maple.rules 49-stlinkv1.rules 49-stlinkv2-1.rules 49-stlinkv2.rules 49-stlinkv3.rules 49-stm32_hid_bl.rules 99-blackmagic.rules
do
sudo cp -v $RULE /etc/udev/rules.d/
sudo chown root:root /etc/udev/rules.d/$RULE
Expand Down

0 comments on commit e23fe40

Please sign in to comment.