Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:stlink [2020/08/07 03:57] – darron | tools:stlink [2022/12/16 10:11] (current) – [Install] darron | ||
---|---|---|---|
Line 7: | Line 7: | ||
=== Install === | === Install === | ||
+ | |||
+ | ==Linux== | ||
+ | |||
< | < | ||
- | mkdir -p /opt/src | + | cd /opt/src/ |
- | cd /opt/src | + | apt-get install |
- | git clone https:// | + | rehash |
- | cd / | + | git clone https:// |
- | sh autogen.sh | + | cd stlink |
- | apt-get install libusb-1.0-0-dev | + | cmake . |
- | ./configure | + | |
make | make | ||
make install | make install | ||
- | cp 49-stlinkv* / | + | ldconfig |
- | cp stlink_v1.modprobe.conf / | + | cp config/ |
+ | cp config/modprobe.d/ | ||
+ | udevadm control --reload-rules | ||
+ | udevadm trigger | ||
</ | </ | ||
+ | |||
+ | On linux we can disable the built in mass storage devices STLINK compatible boards contain, see [[: | ||
+ | |||
+ | ==Windows== | ||
+ | |||
+ | [[https:// | ||
+ | |||
=== Test === | === Test === | ||
- | A simple way to test a device is to read and discard the data from it. | + | A simple way to test a device is to read nothing |
< | < | ||
- | st-flash read /dev/null 0 | + | st-flash read / |
</ | </ | ||