Blinky example for the stm32f401 "blackpill" devkit.
You can use a group that your user belogs to, like uucp/dialout:
# STMicroelectronics STM32F4x
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", GROUP:="uucp"
# STMicroelectronics device in DFU mode
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", GROUP:="uucp"
Or allow read-write to every user:
# STMicroelectronics STM32F4x
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE:="0666"
# STMicroelectronics device in DFU mode
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"
rustup component add llvm-tools-preview
rustup target add thumbv7em-none-eabihf
cargo install cargo-embed cargo-binutils probe-run flip-link