flash_otp_version_dfu.sh 262 B

1234567891011121314151617
  1. #!/bin/bash
  2. set -x -e
  3. if [ "$#" -ne 1 ]; then
  4. echo "OTP file required"
  5. exit
  6. fi
  7. if [ ! -f $1 ]; then
  8. echo "Unable to open OTP file"
  9. exit
  10. fi
  11. STM32_Programmer_CLI -c port=usb1 -d $1 0x1FFF7000
  12. STM32_Programmer_CLI -c port=usb1 -r8 0x1FFF7000 8