Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tools:stlink [2017/03/09 05:59]
darron [Test]
tools:stlink [2022/12/16 10:06]
darron [Kernel]
Line 1: Line 1:
 ==== STLink ==== ==== STLink ====
 <wrap right> <wrap right>
-{{:tools:stlink-mini.jpg?200}}+{{:tools:stlink-mini.jpg?100}}
 </wrap> </wrap>
  
Line 7: Line 7:
  
 === Install === === Install ===
 +
 +==RPi==
 +
 <code> <code>
-mkdir -p /opt/src +cd /opt/src/ 
-cd /opt/src +apt-get install build-essential git cmake libusb-1.0-0-dev 
-git clone https://github.com/texane/stlink.git +rehash 
-cd /opt/src/stlink +git clone https://github.com/stlink-org/stlink 
-sh autogen.sh +cd stlink 
-apt-get install libusb-1.0-0-dev +cmake .
-./configure --prefix=/usr/local+
 make make
 make install make install
-cp 49-stlinkv* /etc/udev/rules.d/ +ldconfig 
-cp stlink_v1.modprobe.conf /etc/modprobe.d/+cp config/udev/rules.d/49-stlinkv* /etc/udev/rules.d/ 
 +cp config/modprobe.d/stlink_v1.conf /etc/modprobe.d/ 
 +udevadm control --reload-rules 
 +udevadm trigger
 </code> </code>
 +
 +==Windows==
 +
 +[[https://github.com/stlink-org/stlink/releases/download/v1.7.0/stlink-1.7.0-x86_64-w64-mingw32.zip]]
 +
  
 === 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 from the device.
  
 <code> <code>
-st-flash read /dev/null 0+st-flash read /dev/null 0
 </code> </code>
  
 Various boards have been tested in this manner below. Various boards have been tested in this manner below.
  
-The [[:boards:vcc-gnd|vcc-gnd]] (STM32F103R8)+[[:boards:vcc-gnd|vcc-gnd]] (STM32F103R8)
 <code> <code>
  INFO src/stlink-common.c: Loading device parameters....  INFO src/stlink-common.c: Loading device parameters....
Line 38: Line 48:
 </code> </code>
  
-The [[:boards:maple|Maple mini]] clone (STM32F103R8)+[[:boards:maple|Maple mini]] clone (STM32F103R8)
 <code> <code>
  INFO src/stlink-common.c: Loading device parameters....  INFO src/stlink-common.c: Loading device parameters....
Line 45: Line 55:
 </code> </code>
  
-The Nucleo STM32F302 (STM32F302R8T6) +Nucleo STM32F302 (STM32F302R8T6)
 <code> <code>
  INFO src/stlink-common.c: Loading device parameters....  INFO src/stlink-common.c: Loading device parameters....
Line 53: Line 62:
 </code> </code>
  
-The Nucleo STM32F411 (STM32F411RET6) +Nucleo STM32F411 (STM32F411RET6)
 <code> <code>
  INFO src/stlink-common.c: Loading device parameters....  INFO src/stlink-common.c: Loading device parameters....
Line 61: Line 69:
 </code> </code>
  
-The STM32F4 Discovery (STM32F407VGT6)+STM32F4 Discovery (STM32F407VGT6)
 <code> <code>
  INFO src/stlink-common.c: Loading device parameters....  INFO src/stlink-common.c: Loading device parameters....
Line 68: Line 76:
 </code> </code>
  
-The STM32 Value Line Discovery (STM32F100RBT6B)+STM32 Value Line Discovery (STM32F100RBT6B)
 <code> <code>
  INFO src/stlink-common.c: Loading device parameters....  INFO src/stlink-common.c: Loading device parameters....
Line 75: Line 83:
 </code> </code>
  
-The STM32F030 DEMO BOARD V1.0+STM32F030 DEMO BOARD V1.0 (STM32F030F4P6)
 <code> <code>
  INFO src/stlink-common.c: Loading device parameters....  INFO src/stlink-common.c: Loading device parameters....