Difference between revisions of "STLink"
Jump to navigation
Jump to search
(add to FirmwareFlashing category) |
|||
Line 1: | Line 1: | ||
{| align=right | |||
|- | |||
|<categorytree style="float:right; clear:right; margin-left:1ex; border: 1px solid gray; padding: 0.7ex;" mode=pages>Firmware Flashing</categorytree> | |||
|} | |||
__TOC__ | |||
[[Image:St-link.jpg|thumb|right|ST-Link (stm32f4-Discovery)]] | [[Image:St-link.jpg|thumb|right|ST-Link (stm32f4-Discovery)]] | ||
SWD can be used to upload the firmware to stm32 MCU without a bootloader. | [http://www.arm.com/products/system-ip/debug-trace/coresight-soc-components/serial-wire-debug.php SWD] can be used to upload the firmware to stm32 MCU without a bootloader. | ||
A ST-Link is needed, any stm32-discovery board has one on it (starts @ 8€). | A ST-Link is needed, any stm32-discovery board has one on it (starts @ 8€). | ||
Line 13: | Line 20: | ||
Connect the ST-Link to the MCU. | 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. | 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. | ||
[[Category:Firmware Flashing]] |
Revision as of 06:32, 3 September 2013
SWD can be used to upload the firmware to stm32 MCU without a bootloader.
A ST-Link is needed, any stm32-discovery board has one on it (starts @ 8€).
A standard ST-Link costs from 17€
Needed Tools
st_flash and st_util need to be installed, compiled from source (https://github.com/texane/stlink)
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.