kopia lustrzana https://github.com/sq2ips/m20-custom-firmware
Fix protect command
rodzic
b75a53f881
commit
a1948c9cfd
|
@ -239,7 +239,7 @@ make protect
|
||||||
```
|
```
|
||||||
or if you don't have `make` or want to run it directly:
|
or if you don't have `make` or want to run it directly:
|
||||||
```bash
|
```bash
|
||||||
openocd -s ./openocd/ -f ./openocd/openocd_m20.cfg -c "init; halt; flash protect 0 0 7 reset; exit"
|
openocd -s ./openocd/ -f ./openocd/openocd_m20.cfg -c "init; halt; flash protect 0 0 7 off; exit"
|
||||||
```
|
```
|
||||||
After it finishes you can flash the built firmware:
|
After it finishes you can flash the built firmware:
|
||||||
```bash
|
```bash
|
||||||
|
@ -255,7 +255,7 @@ After it finishes your sonde should now work with the new firmware.
|
||||||
First [download OpenOCD](https://github.com/xpack-dev-tools/openocd-xpack/releases/latest) select the file with ending `win32-x64.zip`, then extract it.
|
First [download OpenOCD](https://github.com/xpack-dev-tools/openocd-xpack/releases/latest) select the file with ending `win32-x64.zip`, then extract it.
|
||||||
Go to the path of the project then to `m20/`. Ensure that ST-Link is connected and then remove the write protection (only before the first flash):
|
Go to the path of the project then to `m20/`. Ensure that ST-Link is connected and then remove the write protection (only before the first flash):
|
||||||
```cmd
|
```cmd
|
||||||
<path\to\openocd>\bin\openocd.exe -s openocd -f openocd\openocd_m20.cfg -c "init; halt; flash protect 0 0 7 reset; exit"
|
<path\to\openocd>\bin\openocd.exe -s openocd -f openocd\openocd_m20.cfg -c "init; halt; flash protect 0 0 7 off; exit"
|
||||||
```
|
```
|
||||||
replace `<path\to\openocd>` with path of the extracted program.
|
replace `<path\to\openocd>` with path of the extracted program.
|
||||||
After it finishes you can flash the built firmware:
|
After it finishes you can flash the built firmware:
|
||||||
|
|
|
@ -212,6 +212,6 @@ flash:
|
||||||
openocd -s ./openocd/ -f ./openocd/openocd_m20.cfg -c "program build/m20.elf verify reset exit"
|
openocd -s ./openocd/ -f ./openocd/openocd_m20.cfg -c "program build/m20.elf verify reset exit"
|
||||||
# remove protect
|
# remove protect
|
||||||
protect:
|
protect:
|
||||||
openocd -s ./openocd/ -f ./openocd/openocd_m20.cfg -c "init; halt; flash protect 0 0 7 reset; exit"
|
openocd -s ./openocd/ -f ./openocd/openocd_m20.cfg -c "init; halt; flash protect 0 0 7 off; exit"
|
||||||
|
|
||||||
# *** EOF ***
|
# *** EOF ***
|
||||||
|
|
Ładowanie…
Reference in New Issue