X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=README;h=58bd3ca2ae26236cd83c28fd9a38b13e19c93d26;hb=d1c3176f3a7cdbd7a0c4df832c627bc508a75296;hp=920786ebf407b57d062bafbfbba5ac5484630004;hpb=aaf1a0cd8407ad7471bf0a1e78d0939e6f51d443;p=fw%2Fstlink diff --git a/README b/README index 920786e..58bd3ca 100644 --- a/README +++ b/README @@ -1,6 +1,9 @@ HOWTO ===== +First, load the sg kernel module. +# modprobe sg + To run the gdb server, do (you do not need sudo if you have set up permissions correctly): $ make -C build && sudo ./build/st-util 1234 /dev/sg1 @@ -26,6 +29,17 @@ Starting program: /home/whitequark/ST/apps/bally/firmware.elf Remember that you can shorten the commands. `tar ext :1111' is good enough for GDB. +Setting up udev rules +===================== + +For convenience, you may install udev rules file, 10-stlink.rules, located +in the root of repository. You will need to copy it to /etc/udev/rules.d, +and then either reboot or execute +$ udevadm control --reload-rules + +Udev will now create a /dev/stlink file, which will point at appropriate +/dev/sgX device. Good to not accidentally start debugging your flash drive. + Running programs from SRAM ==========================