Skip to content

Commit 985cda4

Browse files
committed
disable read and write protection only for serial flashing
1 parent 1277d06 commit 985cda4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

rosbot_utils/rosbot_utils/flash-firmware-usb.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ def flash_firmware(self):
6666
sh.usbreset("0403:6015")
6767
time.sleep(1.0)
6868

69-
# Disable the flash read-protection
70-
flash_args = ["-k", "-b", "115200"]
71-
sh.stm32flash(self.port, *flash_args, _out=sys.stdout)
69+
# # Disable the flash read-protection
70+
# flash_args = ["-k", "-b", "115200"]
71+
# sh.stm32flash(self.port, *flash_args, _out=sys.stdout)
7272

73-
time.sleep(0.5)
73+
# time.sleep(0.5)
7474

75-
# Disable the flash write-protection
76-
flash_args = ["-u", "-b", "115200"]
77-
sh.stm32flash(self.port, *flash_args, _out=sys.stdout)
75+
# # Disable the flash write-protection
76+
# flash_args = ["-u", "-b", "115200"]
77+
# sh.stm32flash(self.port, *flash_args, _out=sys.stdout)
7878

79-
time.sleep(0.5)
79+
# time.sleep(0.5)
8080

8181
# Flashing the firmware
8282
flash_args = ["-v", "-w", self.binary_file, "-b", "115200"]

0 commit comments

Comments
 (0)