-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathavrdude.conf
213 lines (192 loc) · 4.49 KB
/
avrdude.conf
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
#
# Overall avrdude defaults; suitable for ~/.avrduderc
#
default_parallel = "lpt1";
default_serial = "com1";
# JTAG ICE mkII in PDI mode
programmer
id = "jtag2pdi";
desc = "Atmel JTAG ICE mkII PDI mode";
baudrate = 115200;
type = "jtagmkii_pdi";
connection_type = usb;
;
programmer
id = "atmelice";
desc = "Atmel-ICE (ARM/AVR) in JTAG mode";
type = "jtagice3";
connection_type = usb;
usbpid = 0x2141;
;
programmer
id = "atmelice_pdi";
desc = "Atmel-ICE (ARM/AVR) in PDI mode";
type = "jtagice3_pdi";
connection_type = usb;
usbpid = 0x2141;
;
programmer
id = "atmelice_updi";
desc = "Atmel-ICE (ARM/AVR) in UPDI mode";
type = "jtagice3_updi";
connection_type = usb;
usbpid = 0x2141;
;
programmer
id = "atmelice_dw";
desc = "Atmel-ICE (ARM/AVR) in debugWIRE mode";
type = "jtagice3_dw";
connection_type = usb;
usbpid = 0x2141;
;
programmer
id = "atmelice_isp";
desc = "Atmel-ICE (ARM/AVR) in ISP mode";
type = "jtagice3_isp";
connection_type = usb;
usbpid = 0x2141;
;
programmer
id = "jtag2updi";
desc = "JTAGv2 to UPDI bridge";
type = "jtagmkii_pdi";
connection_type = serial;
baudrate = 115200;
;
programmer
id = "ft232r";
desc = "FT232R Synchronous BitBang";
type = "ftdi_syncbb";
connection_type = usb;
miso = 1; # RxD
sck = 0; # TxD
mosi = 2; # RTS
reset = 4; # DTR
;
# FTDI USB to serial cable TTL-232R-5V with a custom adapter for ICSP
# http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm
# http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232R_CABLES.pdf
# For ICSP pinout see for example http://www.atmel.com/images/doc2562.pdf
# (Figure 1. ISP6PIN header pinout and Table 1. Connections required for ISP ...)
# TTL-232R GND 1 Black -> ICPS GND (pin 6)
# TTL-232R CTS 2 Brown -> ICPS MOSI (pin 4)
# TTL-232R VCC 3 Red -> ICPS VCC (pin 2)
# TTL-232R TXD 4 Orange -> ICPS RESET (pin 5)
# TTL-232R RXD 5 Yellow -> ICPS SCK (pin 3)
# TTL-232R RTS 6 Green -> ICPS MISO (pin 1)
# Except for VCC and GND, you can connect arbitrary pairs as long as
# the following table is adjusted.
programmer
id = "ttl232r";
desc = "FTDI TTL232R-5V with ICSP adapter";
type = "ftdi_syncbb";
connection_type = usb;
miso = 2; # rts
sck = 1; # rxd
mosi = 3; # cts
reset = 0; # txd
;
#
# PART DEFINITIONS
#
part
id = ".avr8x";
desc = "AVR8X family common values";
has_updi = yes;
nvm_base = 0x1000;
ocd_base = 0x0F80;
memory "signature"
size = 3;
offset = 0x1100;
readsize = 0x3;
;
memory "prodsig"
size = 0x3D;
offset = 0x1103;
page_size = 0x3D;
readsize = 0x3D;
;
memory "fuses"
size = 9;
offset = 0x1280;
page_size = 0x0A;
readsize = 0x0A;
;
memory "fuse0"
size = 1;
offset = 0x1280;
readsize = 1;
;
memory "fuse1"
size = 1;
offset = 0x1281;
readsize = 1;
;
memory "fuse2"
size = 1;
offset = 0x1282;
readsize = 1;
;
memory "fuse4"
size = 1;
offset = 0x1284;
readsize = 1;
;
memory "fuse5"
size = 1;
offset = 0x1285;
readsize = 1;
;
memory "fuse6"
size = 1;
offset = 0x1286;
readsize = 1;
;
memory "fuse7"
size = 1;
offset = 0x1287;
readsize = 1;
;
memory "fuse8"
size = 1;
offset = 0x1288;
readsize = 1;
;
memory "lock"
size = 1;
offset = 0x128a;
readsize = 1;
;
memory "data"
# SRAM, only used to supply the offset
offset = 0x1000000;
;
;
part parent ".avr8x"
id = ".avr8x_tiny";
desc = "AVR8X tiny family common values";
# family_id = "tinyAVR";
memory "usersig"
size = 0x20;
offset = 0x1300;
page_size = 0x20;
readsize = 0x100;
;
;
part parent ".avr8x_tiny"
id = "t3217";
desc = "ATtiny3217";
signature = 0x1E 0x95 0x22;
memory "flash"
size = 0x8000;
offset = 0x8000;
page_size = 0x80;
readsize = 0x100;
;
memory "eeprom"
size = 0x100;
offset = 0x1400;
page_size = 0x40;
readsize = 0x100;
;
;