Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:stlink [2017/03/09 07:35] – [Test] darron | tools:stlink [2022/12/16 10:11] (current) – [Install] darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== STLink ==== | ==== STLink ==== | ||
<wrap right> | <wrap right> | ||
- | {{: | + | {{: |
</ | </ | ||
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 / |
</ | </ | ||