From 3a0048deec43cd09ef8abd429fb850f3983077d1 Mon Sep 17 00:00:00 2001 From: Stephen D <webmaster@scd31.com> Date: Tue, 5 Dec 2023 18:39:40 -0400 Subject: [PATCH] dfu permission issues --- README.md | 7 +++++++ udev.rules | 1 + 2 files changed, 8 insertions(+) create mode 100644 udev.rules diff --git a/README.md b/README.md index 41e9dbc..9867cb6 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,13 @@ cargo install flip-link # needed for building cargo install cargo-dfu # needed for flashing ``` +Finally, if you're on Linux, you may need to give yourself permission to write to the board. + +```bash +sudo cp udev.rules /etc/udev/rules.d/99-dfu-stm32.rules +sudo udevadm control --reload-rules && sudo udevadm trigger +``` + ### Board setup 1. Connect the board to your computer via USB 2. Hold down the `flash` button diff --git a/udev.rules b/udev.rules new file mode 100644 index 0000000..d45929c --- /dev/null +++ b/udev.rules @@ -0,0 +1 @@ +SUBSYSTEMS == "usb" ATTRS{idVendor}=="0483" ATTRS{idProduct}=="df11" MODE:="0666" -- GitLab