Skip to content

Commit ca2f264

Browse files
committed
Added delay before resetting when modifying memory protection parameters
1 parent e820980 commit ca2f264

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/STbootloader/canboot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,8 @@ def canboot(serial_port,ecu_name,readout_unprotect,readout_protect,write_unprote
752752

753753
if reset:
754754
log("Resetting ECUs")
755+
if readout_protect or write_protect or readout_unprotect or write_unprotect:
756+
time.sleep(3) # Wait a bit, as these commands may take time to execute
755757
s.write('n' + '\r')
756758
if s.readline() == None:
757759
log("ECU did not answer reset command")

0 commit comments

Comments
 (0)