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 05:53] – [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 / |
</ | </ | ||
Various boards have been tested in this manner below. | Various boards have been tested in this manner below. | ||
- | The [[: | + | [[: |
< | < | ||
INFO src/ | INFO src/ | ||
Line 38: | Line 50: | ||
</ | </ | ||
- | The [[: | + | [[: |
< | < | ||
INFO src/ | INFO src/ | ||
Line 45: | Line 57: | ||
</ | </ | ||
- | The Nucleo STM32F302 | + | Nucleo STM32F302 |
< | < | ||
INFO src/ | INFO src/ | ||
Line 52: | Line 64: | ||
</ | </ | ||
- | The Nucleo STM32F411 | + | Nucleo STM32F411 |
< | < | ||
INFO src/ | INFO src/ | ||
Line 59: | Line 71: | ||
</ | </ | ||
- | The STM32F4 Discovery (STM32F407VGT6) | + | STM32F4 Discovery (STM32F407VGT6) |
< | < | ||
INFO src/ | INFO src/ | ||
Line 66: | Line 78: | ||
</ | </ | ||
- | The STM32 Value Line Discovery (STM32F100RBT6B) | + | STM32 Value Line Discovery (STM32F100RBT6B) |
< | < | ||
INFO src/ | INFO src/ | ||
Line 73: | Line 85: | ||
</ | </ | ||
- | The STM32F030 DEMO BOARD V1.0 | + | STM32F030 DEMO BOARD V1.0 (STM32F030F4P6) |
< | < | ||
INFO src/ | INFO src/ |