RS41_APRS/RS41HUP/flash.sh

10 lines
543 B
Bash
Raw Normal View History

2022-10-08 12:32:56 +02:00
#!/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"