10 lines
543 B
Bash
10 lines
543 B
Bash
|
#!/bin/bash
|
||
|
#Unlock the flash protection - needed only before reprogramming the sonde for the first time
|
||
|
# openocd -f ./openocd_rs41.cfg -c "init; halt; flash protect 0 0 31 off; exit"
|
||
|
# **NOTE:** If the above command fails with an error about erasing sectors, try replacing the number `31` with `63`:
|
||
|
# openocd -f ./openocd_rs41.cfg -c "init; halt; flash protect 0 0 63 off; exit"
|
||
|
|
||
|
#Flash the firmware
|
||
|
#openocd -f ./openocd_rs41.cfg -c "RS41ng.elf verify reset exit"
|
||
|
openocd -f openocd_rs41.cfg -c "program RS41HUP.elf verify reset exit"
|