diff --git a/README.md b/README.md index 41e9dbcf42d5f18cc28b81da04c6b8d3938ba66f..9867cb661cf96f82c7d6977717831fe05da5bf19 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 0000000000000000000000000000000000000000..d45929cde33e622e62d69b09f7cf2f8904ec54c3 --- /dev/null +++ b/udev.rules @@ -0,0 +1 @@ +SUBSYSTEMS == "usb" ATTRS{idVendor}=="0483" ATTRS{idProduct}=="df11" MODE:="0666"