mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-13 05:06:30 +04:00
18 lines
260 B
Bash
18 lines
260 B
Bash
|
|
#!/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
|