@@ -60,34 +60,34 @@ Written by Nick Gammon.
60
60
Version 1.11
61
61
Compiled on Nov 4 2014 at 11:10:33
62
62
Entered programming mode OK.
63
- Signature = 1E 95 0F
63
+ Signature = 1E 95 0F
64
64
Processor = ATmega328P
65
65
Flash memory size = 32768 bytes.
66
- LFuse = FF
67
- HFuse = DE
68
- EFuse = FD
69
- Lock byte = CF
70
- Clock calibration = 8D
66
+ LFuse = FF
67
+ HFuse = DE
68
+ EFuse = FD
69
+ Lock byte = CF
70
+ Clock calibration = 8D
71
71
Bootloader in use: Yes
72
72
EEPROM preserved through erase: No
73
73
Watchdog timer always on: No
74
74
Bootloader is 512 bytes starting at 7E00
75
75
76
76
Bootloader:
77
77
78
- 7E00: 11 24 84 B7 14 BE 81 FF F0 D0 85 E0 80 93 81 00
79
- 7E10: 82 E0 80 93 C0 00 88 E1 80 93 C1 00 86 E0 80 93
80
- ...
81
- 7FE0: 11 50 E9 F7 F2 DF 1F 91 08 95 80 E0 E8 DF EE 27
82
- 7FF0: FF 27 09 94 FF FF FF FF FF FF FF FF FF FF 04 04
78
+ 7E00: 11 24 84 B7 14 BE 81 FF F0 D0 85 E0 80 93 81 00
79
+ 7E10: 82 E0 80 93 C0 00 88 E1 80 93 C1 00 86 E0 80 93
80
+ ...
81
+ 7FE0: 11 50 E9 F7 F2 DF 1F 91 08 95 80 E0 E8 DF EE 27
82
+ 7FF0: FF 27 09 94 FF FF FF FF FF FF FF FF FF FF 04 04
83
83
84
- MD5 sum of bootloader = FB F4 9B 7B 59 73 7F 65 E8 D0 F8 A5 08 12 E7 9F
84
+ MD5 sum of bootloader = FB F4 9B 7B 59 73 7F 65 E8 D0 F8 A5 08 12 E7 9F
85
85
Bootloader name: optiboot_atmega328
86
86
87
87
First 256 bytes of program memory:
88
88
89
- 0: 0C 94 52 05 0C 94 7A 05 0C 94 7A 05 0C 94 7A 05
90
- 10: 0C 94 7A 05 0C 94 7A 05 0C 94 7A 05 0C 94 7A 05
89
+ 0: 0C 94 52 05 0C 94 7A 05 0C 94 7A 05 0C 94 7A 05
90
+ 10: 0C 94 7A 05 0C 94 7A 05 0C 94 7A 05 0C 94 7A 05
91
91
...
92
92
```
93
93
@@ -124,9 +124,9 @@ Example of use:
124
124
125
125
Signature detector.
126
126
Written by Nick Gammon.
127
- Signature = 1E 95 0F
127
+ Signature = 1E 95 0F
128
128
Fuses
129
- Low = FF High = D6 Ext = FD Lock = CF
129
+ Low = FF High = D6 Ext = FD Lock = CF
130
130
131
131
Processor = ATmega328P
132
132
Flash memory size = 32768
@@ -174,14 +174,14 @@ Written by Nick Gammon.
174
174
Version 1.25
175
175
Compiled on Nov 4 2014 at 07:33:18
176
176
Entered programming mode OK.
177
- Signature = 0x1E 0x95 0x0F
177
+ Signature = 0x1E 0x95 0x0F
178
178
Processor = ATmega328P
179
179
Flash memory size = 32768 bytes.
180
- LFuse = 0xFF
181
- HFuse = 0xDE
182
- EFuse = 0xFD
183
- Lock byte = 0xCF
184
- Clock calibration = 0x8D
180
+ LFuse = 0xFF
181
+ HFuse = 0xDE
182
+ EFuse = 0xFD
183
+ Lock byte = 0xCF
184
+ Clock calibration = 0x8D
185
185
Bootloader address = 0x7E00
186
186
Bootloader length = 512 bytes.
187
187
Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader ...
@@ -210,14 +210,14 @@ Example of use:
210
210
```
211
211
Attempting to enter programming mode ...
212
212
Entered programming mode OK.
213
- Signature = 0x1E 0x95 0x0F
213
+ Signature = 0x1E 0x95 0x0F
214
214
Processor = ATmega328P
215
215
Flash memory size = 32768 bytes.
216
- LFuse = 0xFF
217
- HFuse = 0xDE
218
- EFuse = 0xFD
219
- Lock byte = 0xCF
220
- Clock calibration = 0x8D
216
+ LFuse = 0xFF
217
+ HFuse = 0xDE
218
+ EFuse = 0xFD
219
+ Lock byte = 0xCF
220
+ Clock calibration = 0x8D
221
221
Actions:
222
222
[E] erase flash
223
223
[F] modify fuses
@@ -234,12 +234,12 @@ Wiring for the Atmega\_Hex\_Uploader sketch:
234
234
```
235
235
Arduino SD Card
236
236
--------------------------------
237
- SS CS (chip select)
238
- MOSI DI (data in)
239
- MISO DO (data out)
240
- SCK CLK (clock)
241
- +5V 5V
242
- Gnd Gnd
237
+ SS CS (chip select)
238
+ MOSI DI (data in)
239
+ MISO DO (data out)
240
+ SCK CLK (clock)
241
+ +5V 5V
242
+ Gnd Gnd
243
243
244
244
Arduino Target chip/board
245
245
-------------------------------------
@@ -248,8 +248,8 @@ D7 MOSI
248
248
D4 SCK
249
249
D5 Reset
250
250
D9 Clock of target (if required)
251
- +5V 5V
252
- Gnd Gnd
251
+ +5V 5V
252
+ Gnd Gnd
253
253
```
254
254
255
255
This sketch uses "bit banged" SPI for programming the target chip, which is why it uses pins D4, D5, D6, D7 instead of the hardware SPI pins.
@@ -271,12 +271,12 @@ Wiring for the Atmega\_Hex\_Uploader\_Fixed\_Filename sketch:
271
271
```
272
272
Arduino SD Card
273
273
--------------------------------
274
- SS CS (chip select)
275
- MOSI DI (data in)
276
- MISO DO (data out)
277
- SCK CLK (clock)
278
- +5V 5V
279
- Gnd Gnd
274
+ SS CS (chip select)
275
+ MOSI DI (data in)
276
+ MISO DO (data out)
277
+ SCK CLK (clock)
278
+ +5V 5V
279
+ Gnd Gnd
280
280
281
281
Arduino Target chip/board
282
282
-------------------------------------
@@ -285,13 +285,13 @@ D7 MOSI
285
285
D4 SCK
286
286
D5 Reset
287
287
D9 Clock of target (if required)
288
- +5V 5V
289
- Gnd Gnd
288
+ +5V 5V
289
+ Gnd Gnd
290
290
291
291
Arduino Switch and LEDs
292
292
--------------------------------
293
- D2 Start-programming switch (normally open, other end to Gnd)
294
- A0 Error LED (red)
293
+ D2 Start-programming switch (normally open, other end to Gnd)
294
+ A0 Error LED (red)
295
295
A1 Ready LED (green)
296
296
A2 Working LED (yellow)
297
297
```
@@ -365,8 +365,14 @@ convertHexToByteArray.py
365
365
------------------------
366
366
367
367
The ` convertHexToByteArray.py ` tool allows you to easily convert ` .hex ` files
368
- into a c array that you can use inside the tools above. Its an alternative to
369
- the lua script and easier to setup in most cases.
368
+ into a C array that you can use inside the Atmega \_ Board \_ Programmer code. It's an alternative to
369
+ the Lua script and easier to setup in most cases.
370
370
371
371
To run the script you need ` python2 ` and the ` intelhex ` python library which can
372
372
be downloaded [ here] ( https://github.com/bialix/intelhex ) or via ` pip ` .
373
+
374
+ Example of use:
375
+
376
+ ```
377
+ python convertHexToByteArray.py ATmegaBOOT_168_atmega328_pro_8MHz.hex > bootloader_lilypad328.h
378
+ ```
0 commit comments