FIX: README howto flash

This commit is contained in:
Niklas Fauth 2018-04-25 19:28:45 +02:00
parent 0172976057
commit 5326e558ae
1 changed files with 2 additions and 2 deletions

View File

@ -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: 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: Then you can simply flash the firmware:
``` ```
st-flash write build/hoverboard.bin 0x8000000 st-flash --reset write build/hover.bin 0x8000000
``` ```
--- ---