Just4Trionic - CAN and BDM FLASH programmer for Saab cars

Dependencies:   mbed

Committer:
Just4pLeisure
Date:
Wed May 19 12:39:18 2010 +0000
Revision:
0:e0b964252a05

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Just4pLeisure 0:e0b964252a05 1
Just4pLeisure 0:e0b964252a05 2 // Trionic5.h - information and definitions needed for doing things with the T5 ECU
Just4pLeisure 0:e0b964252a05 3
Just4pLeisure 0:e0b964252a05 4 #include "mbed.h"
Just4pLeisure 0:e0b964252a05 5 #include "CAN.h"
Just4pLeisure 0:e0b964252a05 6 #include "strings.h"
Just4pLeisure 0:e0b964252a05 7 #include "T5Utils.h"
Just4pLeisure 0:e0b964252a05 8 #include "SRecUtils.h"
Just4pLeisure 0:e0b964252a05 9
Just4pLeisure 0:e0b964252a05 10 #define CR 0x0D
Just4pLeisure 0:e0b964252a05 11 #define NL 0x0A
Just4pLeisure 0:e0b964252a05 12
Just4pLeisure 0:e0b964252a05 13 #define T5SYMBOLS 'S'
Just4pLeisure 0:e0b964252a05 14 #define T5VERSION 's'
Just4pLeisure 0:e0b964252a05 15 #define T5WRITE 'W'
Just4pLeisure 0:e0b964252a05 16
Just4pLeisure 0:e0b964252a05 17 #define T5RAMSIZE 0x8000 // T5 ECU has 32 kbytes of RAM 0x8000 = 32,768 (same as MC68332 clock speed!?!)
Just4pLeisure 0:e0b964252a05 18 #define T55FLASHSIZE 0x40000 // T5 ECU has 32 kbytes of RAM 0x8000 = 32,768 (same as MC68332 clock speed!?!)
Just4pLeisure 0:e0b964252a05 19 #define T52FLASHSIZE 0x20000 // T5 ECU has 32 kbytes of RAM 0x8000 = 32,768 (same as MC68332 clock speed!?!)
Just4pLeisure 0:e0b964252a05 20
Just4pLeisure 0:e0b964252a05 21 extern void Trionic5();
Just4pLeisure 0:e0b964252a05 22
Just4pLeisure 0:e0b964252a05 23 void Trionic5ShowHelp();
Just4pLeisure 0:e0b964252a05 24 bool Trionic5ShowCANMessage();
Just4pLeisure 0:e0b964252a05 25 bool Trionic5GetSymbolTable();
Just4pLeisure 0:e0b964252a05 26 bool Trionic5GetVersion();
Just4pLeisure 0:e0b964252a05 27 bool Trionic5GetAdaptionData();
Just4pLeisure 0:e0b964252a05 28 bool Trionic5SendBootLoader();
Just4pLeisure 0:e0b964252a05 29 bool Trionic5GetChecksum();
Just4pLeisure 0:e0b964252a05 30 bool Trionic5BootloaderReset();
Just4pLeisure 0:e0b964252a05 31 bool Trionic5GetChipTypes();
Just4pLeisure 0:e0b964252a05 32 bool Trionic5EraseFLASH();
Just4pLeisure 0:e0b964252a05 33 bool Trionic5DumpFLASH();
Just4pLeisure 0:e0b964252a05 34 bool Trionic5DumpFLASH2();
Just4pLeisure 0:e0b964252a05 35 bool Trionic5SendFLASHUpdate();
Just4pLeisure 0:e0b964252a05 36 bool Trionic5SendC3Message();