Just4Trionic - CAN and BDM FLASH programmer for Saab cars

Dependencies:   mbed

Revision:
4:682d96ff6d79
Parent:
2:bf3a2b29259a
Child:
5:1775b4b13232
--- a/common.h	Tue Jun 07 12:23:28 2011 +0000
+++ b/common.h	Wed Sep 11 11:55:51 2013 +0000
@@ -18,6 +18,12 @@
 //#include <stdint.h>
 //#include <stdbool.h>
 
+#undef DEBUG
+#ifndef DEBUG
+//#define DEBUG 1
+//#define DEBUG
+#endif
+
 #include "mbed.h"
 
 #include "sizedefs.h"
@@ -69,16 +75,21 @@
 #define AMD29F400B          0xAB
 //#define 29F400T             0x2223
 //#define 29F400B             0x22AB
+#define AMD29BL802C         0x81
+//#define AMD29BL802C         0x2281
+
 
 // TRIONIC ECU Start addresses
 #define T52FLASHSTART       0x60000
 #define T55FLASHSTART       0x40000
 #define T7FLASHSTART        0x00000
+#define T8FLASHSTART        0x00000
 
 // TRIONIC ECU FLASH sizes
 #define T52FLASHSIZE        0x20000
 #define T55FLASHSIZE        0x40000
 #define T7FLASHSIZE         0x80000
+#define T8FLASHSIZE         0x100000
 
 // TRIONIC ECU Last address
 #define TRIONICLASTADDR     0x7FFFF
@@ -90,6 +101,7 @@
 // Initial Stack pointer values used by Trionic (1st 4 bytes of BIN file)
 #define T5POINTER           0xFFFFF7FC
 #define T7POINTER           0xFFFFEFFC
+#define T8POINTER           0x00100C00
 
 // public functions
 void led_on(uint8_t led);