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
Last revision Both sides next revision
tools:stlink [2020/08/07 04:04]
darron [Install]
tools:stlink [2022/12/16 10:06]
darron [Install]
Line 7: Line 7:
  
 === Install === === Install ===
 +
 +==Linux==
 +
 <code> <code>
-sudo apt-get install libusb-1.0-0-dev+cd /opt/src/ 
 +apt-get install build-essential git cmake libusb-1.0-0-dev 
 +rehash
 git clone https://github.com/stlink-org/stlink git clone https://github.com/stlink-org/stlink
 cd stlink cd stlink
 cmake . cmake .
 make make
-sudo make install +make install 
-sudo cp config/udev/rules.d/49-stlinkv* /etc/udev/rules.d/ +ldconfig 
-sudo cp config/modprobe.d/stlink_v1.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>
 +
 +On linux we can disable the built in mass storage device, go [[:boards:stm32vl|here]].
 +
 +==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>