Just4Trionic - CAN and BDM FLASH programmer for Saab cars

Dependencies:   mbed

Revision:
5:1775b4b13232
Parent:
4:682d96ff6d79
--- a/t8bootloaders.h	Wed Sep 11 11:55:51 2013 +0000
+++ b/t8bootloaders.h	Sat Apr 25 17:07:08 2015 +0000
@@ -1,8 +1,17 @@
 #ifndef __T8BOOTLOADERS_H__
 #define __T8BOOTLOADERS_H__
 
-
-#define T8BootloaderProg {\
+//0x77ED eor 0x4739 = 0x30D4 12,500 4.5454 ms with 5.5 MHz Clock
+//    0x11,0x77,0xED,0x39,0x32,0x66,0x11,
+//0x6029 eor 0x4739 = 0x2710 10,000 4.5454 ms with 5.5 MHz Clock
+//    0x11,0x60,0x29,0x39,0x32,0x66,0x11,
+//0x5A75 eor 0x4739 = 0x1D4C 7,500 4.5454 ms with 5.5 MHz Clock
+//    0x11,0x5A,0x75,0x39,0x32,0x66,0x11,
+//0x54B1 eor 0x4739 = 0x1388 5,000 4.5454 ms with 5.5 MHz Clock
+//    0x11,0x54,0xB1,0x39,0x32,0x66,0x11,
+//0x4EFD eor 0x4739 = 0x09C4 2,500 0.909 ms with 5.5 MHz Clock
+//    0x11,0x4E,0xFD,0x39,0x32,0x66,0x11,
+#define T8_BOOTLOADER_PROG {\
     0x77,0xD1,0x77,0x7D,0x1B,0x09,0x77,\
     0xD1,0x77,0x7D,0x1B,0x7D,0x77,0x1D,\
     0x39,0x1C,0x05,0x00,0x39,0x78,0x0B,\
@@ -1990,7 +1999,7 @@
     0x39,0x97,0x8D,0x6D,0x05,0x51,0x39,\
     0x32,0x75,0x45,0x47,0xC1,0x39,0x3A,\
     0x77,0x45,0x47,0x38,0x39,0x3A,0x46,\
-    0x11,0x77,0xED,0x39,0x32,0x66,0x11,\
+    0x11,0x60,0x29,0x39,0x32,0x66,0x11,\
     0x47,0x79,0x39,0x3B,0x77,0x05,0x46,\
     0x29,0x39,0x38,0x59,0x51,0x47,0x29,\
     0x65,0x38,0x39,0x16,0x3F,0x38,0x3B,\
@@ -2385,7 +2394,17 @@
     0x6D,0x43,0x4D,0x00,0x36,0x43,0x36,\
     0x44,0x54,0x45,0x43,0x00,0x49,0x00} //16384
 
-#define T8Bootloader {\
+//0x77ED eor 0x4739 = 0x30D4 12,500 4.5454 ms with 5.5 MHz Clock
+//    0x11,0x77,0xED,0x39,0x32,0x66,0x11,
+//0x6029 eor 0x4739 = 0x2710 10,000 4.5454 ms with 5.5 MHz Clock
+//    0x11,0x60,0x29,0x39,0x32,0x66,0x11,
+//0x5A75 eor 0x4739 = 0x1D4C 7,500 4.5454 ms with 5.5 MHz Clock
+//    0x11,0x5A,0x75,0x39,0x32,0x66,0x11,
+//0x54B1 eor 0x4739 = 0x1388 5,000 4.5454 ms with 5.5 MHz Clock
+//    0x11,0x54,0xB1,0x39,0x32,0x66,0x11,
+//0x4EFD eor 0x4739 = 0x09C4 2,500 0.909 ms with 5.5 MHz Clock
+//    0x11,0x4E,0xFD,0x39,0x32,0x66,0x11,
+#define T8_BOOTLOADER_DUMP {\
     0x77,0xD1,0x77,0x7D,0x1B,0x09,0x77,\
     0xD1,0x77,0x7D,0x1B,0x7D,0x77,0x1D,\
     0x39,0x1C,0x05,0x00,0x39,0x78,0x0B,\
@@ -4373,7 +4392,7 @@
     0x39,0x97,0x8D,0x6D,0x05,0x51,0x39,\
     0x32,0x75,0x45,0x47,0xC1,0x39,0x3A,\
     0x77,0x45,0x47,0x38,0x39,0x3A,0x46,\
-    0x11,0x77,0xED,0x39,0x32,0x66,0x11,\
+    0x11,0x60,0x29,0x39,0x32,0x66,0x11,\
     0x47,0x79,0x39,0x3B,0x77,0x05,0x46,\
     0x29,0x39,0x38,0x59,0x51,0x47,0x29,\
     0x65,0x38,0x39,0x16,0x3F,0x38,0x3B,\