[Gnuk-users] [PATCH] Simplify README instructions for OpenOCD usage
Paul Fertser
fercerpav at gmail.com
Wed Jan 11 19:36:10 UTC 2017
---
README | 21 +++++++--------------
1 file changed, 7 insertions(+), 14 deletions(-)
diff --git a/README b/README
index a56af0f..645fabb 100644
--- a/README
+++ b/README
@@ -395,18 +395,11 @@ How to install
Olimex STM32-H103 board
-----------------------
-If you are using Olimex JTAG-Tiny, type following to invoke OpenOCD:
+If you are using Olimex JTAG-Tiny, type following to invoke OpenOCD
+and write "gnuk.elf" to Flash ROM:
- $ openocd -f interface/ftdi/olimex-jtag-tiny.cfg -f board/olimex_stm32_h103.cfg
-
-Then, with another terminal, type following to write "gnuk.elf" to Flash ROM:
-
- $ telnet localhost 4444
- > reset halt
- > flash write_image erase gnuk.elf
- > reset
- > exit
- $
+ $ openocd -f interface/ftdi/olimex-jtag-tiny.cfg -f board/olimex_stm32_h103.cfg \
+ -c "program gnuk.elf verify reset exit"
Flying Stone Tiny 01
@@ -414,9 +407,9 @@ Flying Stone Tiny 01
If you are using Flying Stone Tiny 01, you need a SWD writer.
-OpenOCD 0.9 now supports ST-Link/V2. We can use it:
+OpenOCD 0.9.0 now supports ST-Link/V2. We can use it:
- $ openocd -f interface/stlink-v2.cfg -f target/stm32f1x_stlink.cfg
+ $ openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg
@@ -549,7 +542,7 @@ We can use GDB.
Inside GDB, we can connect OpenOCD by:
- (gdb) target remote localhost:3333
+ (gdb) target extended-remote localhost:3333
You can see the output of PCSCD:
--
2.7.3
More information about the gnuk-users
mailing list