Skip to content

Commit

Permalink
reset ecu command
Browse files Browse the repository at this point in the history
  • Loading branch information
bri3d committed Mar 29, 2021
1 parent 6a8a330 commit e217366
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
from udsoncan.connections import IsoTPSocketConnection
import socket

TWISTER_PATH = "../Simos18_SBOOT/twister" # This is the path to the "twister" binary from https://github.com/bri3d/Simos18_SBOOT
SEED_START = "1D00000" # This is the starting value for the expected timer value range for the Seed/Key calculation.
TWISTER_PATH = (
"../Simos18_SBOOT/twister"
) # This is the path to the "twister" binary from https://github.com/bri3d/Simos18_SBOOT
SEED_START = (
"1D00000"
) # This is the starting value for the expected timer value range for the Seed/Key calculation.

sector_map_tc1791 = { # Sector lengths for PMEM routines
0: 0x4000,
Expand Down Expand Up @@ -661,6 +665,10 @@ def do_compressed_read(self, arg):
filename = args[2]
is_success = read_compressed(byte_specifier, length_specifier, filename)

def do_reset():
"reset: reset ECU"
reset_ecu()

def do_bye(self, arg):
"Exit"
return True
Expand Down

0 comments on commit e217366

Please sign in to comment.