unleashed-firmware/flash_otp_version.sh
coreglitch 2fbf427e0a
Switch sub-1GHz band (#349)
* switch band
* extract subghz api to files
2021-02-25 13:29:00 +03:00

18 lines
262 B
Bash
Executable File

#!/bin/bash
set -x -e
if [ "$#" -ne 1 ]; then
echo "OTP file required"
exit
fi
if [ ! -f $1 ]; then
echo "Unable to open OTP file"
exit
fi
STM32_Programmer_CLI -c port=usb1 -d $1 0x1FFF7000
STM32_Programmer_CLI -c port=usb1 -r8 0x1FFF7000 8