Difference between revisions of "STLink"
Jump to navigation
Jump to search
m (yay, it works :D) |
|||
Line 14: | Line 14: | ||
==Needed Tools== | ==Needed Tools== | ||
st-flash and st-util are needed [https://github.com/texane/stlink Tools from texane] | |||
download and install | |||
git clone git://github.com/texane/stlink.git | git clone git://github.com/texane/stlink.git stlink | ||
cd stlink | cd stlink | ||
./autogen.sh | ./autogen.sh | ||
./configure | ./configure | ||
make | make | ||
copy in the suitable directory | |||
cp /home/user/stlink/49-stlinkv*.rules /etc/udev/rules.d | sudo cp st-flash /usr/bin | ||
udevadm control --reload-rules | sudo cp st-util /usr/bin | ||
add udev rules (replace user with your username) | |||
sudo cp /home/user/stlink/49-stlinkv*.rules /etc/udev/rules.d | |||
sudo udevadm control --reload-rules | |||
For ST-LinkV1 take a look at the readme.txt | For ST-LinkV1 take a look at the readme.txt ! | ||
==Howto== | ==Howto== |
Revision as of 12:33, 8 September 2013
SWD can be used to upload the firmware to stm32fx MCU without a bootloader.
A ST-Link is needed, any stm32-discovery board has a ST-LinkV2 on it (starts @ 8€).
A standard ST-Link costs from 17€
Needed Tools
st-flash and st-util are needed Tools from texane
download and install
git clone git://github.com/texane/stlink.git stlink cd stlink ./autogen.sh ./configure make
copy in the suitable directory
sudo cp st-flash /usr/bin sudo cp st-util /usr/bin
add udev rules (replace user with your username)
sudo cp /home/user/stlink/49-stlinkv*.rules /etc/udev/rules.d sudo udevadm control --reload-rules
For ST-LinkV1 take a look at the readme.txt !
Howto
Connect the ST-Link to the MCU. If a complete stm32fx-discovery board is used, CN3 jumpers need to be set. To program a external MCU, remove CN3 jumpers and connect the external MCU with the SWD header.