From 5326e558ae0dd196110d2500a7ac444d0bfae9c2 Mon Sep 17 00:00:00 2001 From: Niklas Fauth Date: Wed, 25 Apr 2018 19:28:45 +0200 Subject: [PATCH] FIX: README howto flash --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 96b9d96..b30d369 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,11 @@ To flash the STM32, use the ST-Flash utility (https://github.com/texane/stlink). If you never flashed your mainboard before, the STM is probably locked. To unlock the flash, use the following OpenOCD command: ``` -openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c init -c "stm32f1x unlock 0" +openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c init -c "reset halt" -c "stm32f1x unlock 0" ``` Then you can simply flash the firmware: ``` -st-flash write build/hoverboard.bin 0x8000000 +st-flash --reset write build/hover.bin 0x8000000 ``` ---