unleashed-firmware/flash_otp_version.sh
あく 3e281175da
[FL-123] SubGhz static code replay (#410)
* SubGhz: static code emulation view
* SubGhz: add dumb static replay
2021-04-15 11:47:52 +03:00

17 lines
260 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=swd -d $1 0x1FFF7000
STM32_Programmer_CLI -c port=swd -r8 0x1FFF7000 8