2021-02-18 12:49:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x -e
|
|
|
|
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
|
|
echo "OTP file required"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2021-09-13 01:44:02 +00:00
|
|
|
if [ ! -f "$1" ]; then
|
2021-02-18 12:49:32 +00:00
|
|
|
echo "Unable to open OTP file"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2021-09-13 01:44:02 +00:00
|
|
|
STM32_Programmer_CLI -c port=usb1 -d "$1" 0x1FFF7000
|
2021-02-18 12:49:32 +00:00
|
|
|
|
2021-06-23 14:58:44 +00:00
|
|
|
STM32_Programmer_CLI -c port=usb1 -r8 0x1FFF7000 8
|