-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathprepT7.do
139 lines (139 loc) · 1.3 KB
/
prepT7.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
* Prepare SAAB T7 ECU for flash management (erase and program).
* This script needs to be executed before flash can be erased or programmed.
* Created by Patrik Servin
* Version 1.0
*
* Reset ECU
reset
* Stop execution
stop
*
mm 0xfffa00
0x61C2.
*
mm 0xfffa04
0x7F08.
*
mm 0xfffa11
0x0000.
*
mm 0xfffa13
0x0000.
*
mm 0xfffa15
0x00FE.
*
mm 0xfffa17
0x0011.
*
mm 0xfffa19
0x007B.
*
mm 0xfffa1b
0x007B.
*
mm 0xfffa1d
0x0085.
*
mm 0xfffa1f
0x0008.
*
mm 0xfffa22
0x0250.
*
mm 0xfffa24
0x0129.
*
mm 0xfffa27
0x0000.
*
mm 0xfffa41
0x000F.
*
mm 0xfffa44
0x2FFF.
*
mm 0xfffa46
0x0001.
*
mm 0xfffa48
0x0006.
*
mm 0xfffa4c
0xF003
0x6830
0x0006
0x1030
0x0000
0x0000
0xF003
0x5030
0xF003
0x3030
0xFF00
0x7BF0
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0xFFF8
0x2BC7
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000.
*
mm 0xfffa4a
0x6BB0.
*
mm 0xfffa4e
0x6830
0x0006
0x1030
0x0000
0x0000
0xF003
0x5030
0xF003
0x3030
0xFF00
0x7BF0
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0xFFF8
0x2BC7.
*
*Set up for flashing
mm 0xfffa04
0x7f00.
*
mm 0xfffa21
0x00.
*
mm 0xfffa4a
0x6b70.
*0x7b70.
*
mm 0xfffa50
0x0007.
*
mm 0xfffa52
0x3370.
*
* enable internal 2kByte RAM of 68332
* and map it to address $100000
mm $fffb04
$1000.
* tell BD32 to use internal RAM $100000 for target resident driver
driver $100000
*
cls
* ECU is now prepared for flash programming or erasing.