Browse Source

Wipe flash throw readout protection script (#325)

あく 5 years ago
parent
commit
3b24f7ff96
1 changed files with 11 additions and 0 deletions
  1. 11 0
      flash_wipe.sh

+ 11 - 0
flash_wipe.sh

@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -x -e
+
+STM32_Programmer_CLI -c port=swd -ob RDP=0xBB
+
+STM32_Programmer_CLI -c port=swd -ob displ
+
+STM32_Programmer_CLI -c port=swd --readunprotect
+
+STM32_Programmer_CLI -c port=swd -ob displ