summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-08-26 03:41:05 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-08-26 03:41:05 +0200
commite40620cbe225b1a81c751b1344a46e34eec16d2b (patch)
treed08e2124eee11370fb8fd4d81a852f9b8c864f82 /README
parentrename external lib stdperiph to spl (diff)
added stm8s-discovery board and some more init fixup
Diffstat (limited to 'README')
-rw-r--r--README31
1 files changed, 31 insertions, 0 deletions
diff --git a/README b/README
index e7e6b28..d7de35f 100644
--- a/README
+++ b/README
@@ -6,6 +6,37 @@ sdcc
libusb-dev (for stm8flash)
+udev example rules
+==================
+
+STM8S-Discovery:
+----------------
+
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", MODE:="0666", GROUP:="dialout", SYMLINK+="stlink_%n"
+
+The discovery board also emulates an USB mass storage device. However the
+implementation is buggy and it doesn't really work with linux. It's best to
+just ignore the usb-storage endpoints. You can do this temporarly using the
+following command:
+
+ # echo "0483:3744:i" >/sys/module/usb_storage/parameters/quirks
+
+To make this permanent, create a file '/etc/modprobe.d/stdiscovery.conf' with
+the following content:
+
+<snip>
+options usb-storage quirks=0483:3744:i
+</snip>
+
+The changes will take effect on next reboot or after manually unloading the
+usb-storage driver
+
+ # modprobe -r usb_storage
+
+This might not work if there is another device connected that is or emulates
+an USB storage device.
+
+
Build
=====