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 ``` ---