From 8a19a2cb66020893cab02893ffb14ffa268b5e18 Mon Sep 17 00:00:00 2001 From: Deon Spengler Date: Mon, 18 Jul 2022 23:38:33 +0200 Subject: [PATCH] Update openocd documentation --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b8ff0ba..7db3c0c 100644 --- a/README.md +++ b/README.md @@ -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