From d9b96b824d0a887c1f79fa09385fa120ce601f9d Mon Sep 17 00:00:00 2001 From: Miklos Marton Date: Wed, 22 May 2019 08:41:16 +0200 Subject: [PATCH] [README] Added note about the Linux udev rule --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 779d7d29..cde1452b 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,18 @@ Normally, both ```BOOT-0``` and ```BOOT-1``` must be connected to '0'. If you co This bootloader should't have any compiler restrictions, so it should work with any GCC ARM toolchain version (latest is always recommended!). Just run 'make' on that folder. +### Linux udev setup: + +To use the HID bootloader without root permissions the following udev rule needs to be installed to the /etc/udev/rules.d/99-stm32_hid_bl.rules: + +``` +# STM32_HID_bootloader +ATTR{idProduct}=="beba", ATTR{idVendor}=="1209", MODE="666" +``` + +You might need to reboot or run ```udevadm control --reload-rules``` and replug your device to use it as a normal user after installing. + + ### Windows examples: ```D:\STM32_HID_bootloader\cli>make clean``` Clears the previous generated files