... | @@ -12,14 +12,13 @@ Some boards support drag and drop: simply select your .bin file and drop it in t |
... | @@ -12,14 +12,13 @@ Some boards support drag and drop: simply select your .bin file and drop it in t |
|
|
|
|
|
If this doesn't work, you can try downloading an ST-Link utility, which is provided with a GUI. You will need to press Connect, flash your binary, verify it and then power cycle the board.
|
|
If this doesn't work, you can try downloading an ST-Link utility, which is provided with a GUI. You will need to press Connect, flash your binary, verify it and then power cycle the board.
|
|
|
|
|
|
*Windows*
|
|
#### Windows
|
|
|
|
|
|
Install ST-Link Utility.
|
|
Simply install the ST-Link Utility.
|
|
|
|
|
|
*Linux*
|
|
#### Linux
|
|
|
|
|
|
You can install QSTLink2
|
|
|
|
|
|
|
|
|
|
##### QSTLink2
|
|
```
|
|
```
|
|
sudo add-apt-repository ppa:fpoussin/ppa
|
|
sudo add-apt-repository ppa:fpoussin/ppa
|
|
sudo apt-get update
|
|
sudo apt-get update
|
... | @@ -28,7 +27,17 @@ wget https://raw.githubusercontent.com/mobyfab/QStlink2/master/res/49-stlinkv2.r |
... | @@ -28,7 +27,17 @@ wget https://raw.githubusercontent.com/mobyfab/QStlink2/master/res/49-stlinkv2.r |
|
sudo mv 49-stlinkv2.rules /etc/udev/rules.d
|
|
sudo mv 49-stlinkv2.rules /etc/udev/rules.d
|
|
sudo chown root:root /etc/udev/rules.d/49-stlinkv2.rules
|
|
sudo chown root:root /etc/udev/rules.d/49-stlinkv2.rules
|
|
```
|
|
```
|
|
|
|
##### STLink
|
|
|
|
This is a command line tool.
|
|
|
|
[Here](https://github.com/stlink-org/stlink) you find a guide on how to install it.
|
|
|
|
For Ubuntu you can simply do:
|
|
|
|
```sh
|
|
|
|
sudo apt install stlink-tools
|
|
|
|
```
|
|
|
|
And in order to flash your board:
|
|
|
|
```sh
|
|
|
|
st-flash write <path-to-binary> <flash-origin-address>
|
|
|
|
```
|
|
|
|
|
|
## Method 2: USART
|
|
## Method 2: USART
|
|
|
|
|
... | | ... | |