forked from M-Labs/kirdy
rm erase_flash_settings.bin
This commit is contained in:
parent
4d8e16771e
commit
5b00bd60c7
@ -70,16 +70,10 @@ openocd -f interface/stlink.cfg -f target/stm32f4x.cfg -c "program target/thumbv
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Erasing Flash Settings
|
## Erasing Flash Settings
|
||||||
The flash settings are stored in the last flash sector(ID: 11) of bank 0 of stm32f405. You can erase it with JTAG/SWD adapter or by putting the device in Dfu mode. You may find it useful if you have set network settings incorrectly.
|
The flash settings are stored in the last flash sector(ID: 11) of bank 0 of stm32f405. You can erase it with JTAG/SWD adapter. You may find it useful if you have set network settings incorrectly.
|
||||||
|
|
||||||
With JTAG/SWD adapter connected, issue the following command:
|
With JTAG/SWD adapter connected, issue the following command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
openocd -f interface/stlink.cfg -f target/stm32f4x.cfg -c "flash init; init; halt; flash erase_sector 0 11 last; reset; exit"
|
openocd -f interface/stlink.cfg -f target/stm32f4x.cfg -c "flash init; init; halt; flash erase_sector 0 11 last; reset; exit"
|
||||||
```
|
```
|
||||||
|
|
||||||
With STM32 in DFU Mode, connect the USB Type C cable and then issue the following command:
|
|
||||||
|
|
||||||
```
|
|
||||||
dfu-util -a 0 -s 0x080E0000:leave -D erase_flash_settings.bin
|
|
||||||
```
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user