Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'bool' object has no attribute 'hex' #3

Open
kuchka506 opened this issue Aug 17, 2023 · 0 comments
Open

AttributeError: 'bool' object has no attribute 'hex' #3

kuchka506 opened this issue Aug 17, 2023 · 0 comments

Comments

@kuchka506
Copy link

Hellow!
I am trying to extract passwords and am getting the following error.

kuchka@raspberrypi:~/TC1791_CAN_BSL $ python3 bootloader.py
/home/kuchka/TC1791_CAN_BSL/bootloader.py:67: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if data[0] is 0xA0:
Welcome to Tricore BSL. Type help or ? to list commands, you are likely looking for upload to start.

(BSL) extract_boot_passwords
Setting up PWM waveforms...
Resetting ECU into Supplier Bootloader...
Sending 59 45...
Timestamp: 1692210128.669170        ID: 00a7    S Rx                DL:  8    91 1c e1 77 fd 7d f7 1d     Channel: can0
FAILURE
Calculating key for seed:
Traceback (most recent call last):
  File "/home/kuchka/TC1791_CAN_BSL/bootloader.py", line 743, in <module>
    BootloaderRepl().cmdloop()
  File "/usr/lib/python3.9/cmd.py", line 138, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python3.9/cmd.py", line 217, in onecmd
    return func(arg)
  File "/home/kuchka/TC1791_CAN_BSL/bootloader.py", line 711, in do_extract_boot_passwords
    extract_boot_passwords()
  File "/home/kuchka/TC1791_CAN_BSL/bootloader.py", line 284, in extract_boot_passwords
    sboot_login()
  File "/home/kuchka/TC1791_CAN_BSL/bootloader.py", line 271, in sboot_login
    print(sboot_seed.hex())
AttributeError: 'bool' object has no attribute 'hex'
SocketcanBus was not properly shut down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant