Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
6.1 kB
1
Indexable
Never
pi@raspberrypi:~/TC1791_CAN_BSL $ sudo python3 bootloader.py 
/home/pi/TC1791_CAN_BSL/bootloader.py:68: 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) upload
Resetting ECU into HWCFG BSL Mode...
Sending BSL initialization message...
Sending BSL data...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.02k/1.02k [00:01<00:00, 780blocks/s]
Device jumping into BSL... Draining receive queue...
(BSL) send_write_passwords 96370D81 F268FA34
Timestamp: 1653584624.949129        ID: 0400    S Rx                DL:  8    04 96 37 0d 81 ff ff ff     Channel: can0
Timestamp: 1653584624.951335        ID: 0400    S Rx                DL:  8    04 00 00 c5 00 ff ff ff     Channel: can0
Timestamp: 1653584624.953385        ID: 0400    S Rx                DL:  8    04 96 37 0d 81 ff ff ff     Channel: can0
Timestamp: 1653584624.955364        ID: 0400    S Rx                DL:  8    04 00 00 c5 00 ff ff ff     Channel: can0
(BSL) send_read_passwords 73BF2406 EBFFC24E
Timestamp: 1653584634.226774        ID: 0400    S Rx                DL:  8    04 73 bf 24 06 ff ff ff     Channel: can0
Timestamp: 1653584634.228710        ID: 0400    S Rx                DL:  8    04 00 00 c5 04 ff ff ff     Channel: can0
Timestamp: 1653584634.230886        ID: 0400    S Rx                DL:  8    04 73 bf 24 06 ff ff ff     Channel: can0
Timestamp: 1653584634.232731        ID: 0400    S Rx                DL:  8    04 00 00 c5 04 ff ff ff     Channel: can0
(BSL) deviceinfo
*** Unknown syntax: deviceinfo
(BSL) ?

Documented commands (type help <topic>):
========================================
bye              extract_boot_passwords  sboot_crc_reset     
compressed_read  flashinfo               sboot_sendkey       
deviceid         help                    send_read_passwords 
dumpmaskrom      readaddr                send_write_passwords
dumpmem          reset                   upload              
erase_sector     sboot                   writeaddr           

(BSL) deviceid
448084031580908134080010
(BSL) flashinfo
PMEM0 Protection Installation:  ENABLED
PMEM0 Read Protection Installation:  ENABLED
PMEM0 Read Protection Inhibit:  ENABLED
PMEM0 Write Protection User 0:  DISABLED
PMEM0 Write Protection User 1:  ENABLED
PMEM0 OTP Installation:  ENABLED
PMEM0 Write Protection User 0 Inhibit:  DISABLED
PMEM0 Write Protection User 1 Inhibit:  ENABLED
PMEM0 Read Protection:  DISABLED
PMEM0 Disable Code Fetch from Flash Memory:  ENABLED
PMEM0 Disable Any Data Fetch from Flash:  ENABLED
PMEM0 Disable Data Fetch from DMA Controller:  ENABLED
PMEM0 Disable Data Fetch from PCP Controller:  ENABLED
PMEM0 Disable Data Fetch from SHE Controller:  ENABLED
PMEM0 USR1 Write Protection Sector 0 0x0:0x4000 : ENABLED
PMEM0 USR1 Write Protection Sector 1 0x4000:0x8000 : ENABLED
PMEM0 USR1 Write Protection Sector 2 0x8000:0xc000 : ENABLED
PMEM0 USR1 Write Protection Sector 3 0xc000:0x10000 : ENABLED
PMEM0 USR1 Write Protection Sector 4 0x10000:0x14000 : ENABLED
PMEM0 USR1 Write Protection Sector 5 0x14000:0x18000 : ENABLED
PMEM0 USR1 Write Protection Sector 6 0x18000:0x1c000 : ENABLED
PMEM0 USR1 Write Protection Sector 7 0x1c000:0x20000 : ENABLED
PMEM0 USR1 Write Protection Sector 8 0x20000:0x40000 : ENABLED
PMEM0 USR1 Write Protection Sector 9 0x40000:0x80000 : ENABLED
PMEM0 USR1 Write Protection Sector 10 0x80000:0xc0000 : ENABLED
PMEM0 USR1 Write Protection Sector 11 0xc0000:0x100000 : ENABLED
PMEM0 USR1 Write Protection Sector 12 0x100000:0x140000 : ENABLED
PMEM0 USR1 Write Protection Sector 13 0x140000:0x180000 : ENABLED
PMEM0 USR1 Write Protection Sector 14 0x180000:0x1c0000 : ENABLED
PMEM0 USR1 Write Protection Sector 15 0x1c0000:0x200000 : ENABLED
PMEM0 USR2 OTP Protection Sector 5 0x14000:0x18000 : ENABLED
PMEM0 USR2 OTP Protection Sector 6 0x18000:0x1c000 : ENABLED
PMEM1 Protection Installation:  ENABLED
PMEM1 Read Protection Installation:  ENABLED
PMEM1 Read Protection Inhibit:  ENABLED
PMEM1 Write Protection User 0:  DISABLED
PMEM1 Write Protection User 1:  ENABLED
PMEM1 OTP Installation:  ENABLED
PMEM1 Write Protection User 0 Inhibit:  DISABLED
PMEM1 Write Protection User 1 Inhibit:  ENABLED
PMEM1 Read Protection:  DISABLED
PMEM1 Disable Code Fetch from Flash Memory:  ENABLED
PMEM1 Disable Any Data Fetch from Flash:  ENABLED
PMEM1 Disable Data Fetch from DMA Controller:  ENABLED
PMEM1 Disable Data Fetch from PCP Controller:  ENABLED
PMEM1 Disable Data Fetch from SHE Controller:  ENABLED
PMEM1 USR1 Write Protection Sector 0 0x0:0x4000 : ENABLED
PMEM1 USR1 Write Protection Sector 1 0x4000:0x8000 : ENABLED
PMEM1 USR1 Write Protection Sector 2 0x8000:0xc000 : ENABLED
PMEM1 USR1 Write Protection Sector 3 0xc000:0x10000 : ENABLED
PMEM1 USR1 Write Protection Sector 4 0x10000:0x14000 : ENABLED
PMEM1 USR1 Write Protection Sector 5 0x14000:0x18000 : ENABLED
PMEM1 USR1 Write Protection Sector 6 0x18000:0x1c000 : ENABLED
PMEM1 USR1 Write Protection Sector 7 0x1c000:0x20000 : ENABLED
PMEM1 USR1 Write Protection Sector 8 0x20000:0x40000 : ENABLED
PMEM1 USR1 Write Protection Sector 9 0x40000:0x80000 : ENABLED
PMEM1 USR1 Write Protection Sector 10 0x80000:0xc0000 : ENABLED
PMEM1 USR1 Write Protection Sector 11 0xc0000:0x100000 : ENABLED
PMEM1 USR1 Write Protection Sector 12 0x100000:0x140000 : ENABLED
PMEM1 USR1 Write Protection Sector 13 0x140000:0x180000 : ENABLED
PMEM1 USR1 Write Protection Sector 14 0x180000:0x1c0000 : ENABLED
PMEM1 USR1 Write Protection Sector 15 0x1c0000:0x200000 : ENABLED
PMEM1 USR2 OTP Protection Sector 12 0x100000:0x140000 : ENABLED
PMEM1 USR2 OTP Protection Sector 13 0x140000:0x180000 : ENABLED
PMEM1 USR2 OTP Protection Sector 14 0x180000:0x1c0000 : ENABLED
PMEM1 USR2 OTP Protection Sector 15 0x1c0000:0x200000 : ENABLED
(BSL)