... | @@ -18,16 +18,7 @@ Simply install the ST-Link Utility. |
... | @@ -18,16 +18,7 @@ Simply install the ST-Link Utility. |
|
|
|
|
|
#### Linux
|
|
#### Linux
|
|
|
|
|
|
##### QSTLink2
|
|
##### STLink (Recommended)
|
|
```
|
|
|
|
sudo add-apt-repository ppa:fpoussin/ppa
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install qstlink2
|
|
|
|
wget https://raw.githubusercontent.com/mobyfab/QStlink2/master/res/49-stlinkv2.rules
|
|
|
|
sudo mv 49-stlinkv2.rules /etc/udev/rules.d
|
|
|
|
sudo chown root:root /etc/udev/rules.d/49-stlinkv2.rules
|
|
|
|
```
|
|
|
|
##### STLink
|
|
|
|
This is a command line tool.
|
|
This is a command line tool.
|
|
[Here](https://github.com/stlink-org/stlink) you find a guide on how to install it.
|
|
[Here](https://github.com/stlink-org/stlink) you find a guide on how to install it.
|
|
For Ubuntu you can simply do:
|
|
For Ubuntu you can simply do:
|
... | @@ -39,6 +30,16 @@ And in order to flash your board: |
... | @@ -39,6 +30,16 @@ And in order to flash your board: |
|
st-flash write <path-to-binary> <flash-origin-address>
|
|
st-flash write <path-to-binary> <flash-origin-address>
|
|
```
|
|
```
|
|
|
|
|
|
|
|
##### QSTLink2
|
|
|
|
```
|
|
|
|
sudo add-apt-repository ppa:fpoussin/ppa
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install qstlink2
|
|
|
|
wget https://raw.githubusercontent.com/mobyfab/QStlink2/master/res/49-stlinkv2.rules
|
|
|
|
sudo mv 49-stlinkv2.rules /etc/udev/rules.d
|
|
|
|
sudo chown root:root /etc/udev/rules.d/49-stlinkv2.rules
|
|
|
|
```
|
|
|
|
|
|
## Method 2: USART
|
|
## Method 2: USART
|
|
|
|
|
|
If your board has at least a USART port accessible, you can also flash binaries through it. To do this, you'll need a USB-TTL module and you need to have access to the following pins of your STM32:
|
|
If your board has at least a USART port accessible, you can also flash binaries through it. To do this, you'll need a USB-TTL module and you need to have access to the following pins of your STM32:
|
... | | ... | |