2021-02-18 12:49:32 +00:00
|
|
|
#!/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
|
|
|
|
|
2021-04-15 08:47:52 +00:00
|
|
|
STM32_Programmer_CLI -c port=swd -d $1 0x1FFF7000
|
2021-02-18 12:49:32 +00:00
|
|
|
|
2021-04-15 08:47:52 +00:00
|
|
|
STM32_Programmer_CLI -c port=swd -r8 0x1FFF7000 8
|