Update openocd documentation

This commit is contained in:
2022-07-18 23:38:33 +02:00
parent 5e4a264ac0
commit 8a19a2cb66

View File

@@ -35,19 +35,20 @@ In order to flash the firmware ensure that you have openocd installed.
Now create a file called stm32f103.cfg with the following content
```
telnet_port 4444
source [find interface/stlink-v2.cfg]
source [find interface/stlink.cfg]
source [find target/stm32f1x.cfg]
set WORKAREASIZE 0x10000
```
Execute openocd and connect with telnet
```
openocd stm32f103.cfg
openocd -f stm32f103.cfg
telnet localhost 4444
```
Use the following commands to unlock, flash the firmware and lock the device again.
```
reset halt
stm32f1x unlock 0
reset halt
flash write_bank 0 ./src/build/gnuk.bin 0