Ff-programmer-v2

Version 8 (Anthony Rowe, 01/31/2009 03:01 pm)

1 1 Anthony Rowe
2 1 Anthony Rowe
3 8 Anthony Rowe
h1. [[FireFly]] Programmer Configuration
4 1 Anthony Rowe
5 1 Anthony Rowe
6 8 Anthony Rowe
This page briefly describes how to load firmware onto the [[FireFly]] programmer board.  Most [[FireFly]] programmers are already flashed with current firmware and do not require any of these configurations.  If you would like to change the firmware on the [[FireFly]] Programming board you will require another Atmel programming board like the "AVR MKII":http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=3353 and firmware downloading software like "AVRStudio":http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=2725.
7 1 Anthony Rowe
8 8 Anthony Rowe
9 8 Anthony Rowe
*Step 1: Configure Jumpers and Connect Programmer as shown below*
10 8 Anthony Rowe
11 2 Anthony Rowe
[[Image(flash.png)]]
12 2 Anthony Rowe
13 8 Anthony Rowe
*Step 2: Connect separate power to the [[FireFly]] programming board and turn it on*
14 2 Anthony Rowe
15 8 Anthony Rowe
*Step 3: Using AVR programming software (like AVRstudio) set the following options and fuses:*
16 2 Anthony Rowe
17 6 Anthony Rowe
The first time you write to the board, you will need to configure a low ISP programming frequency since the processor will be running off of a slow internal oscillator by default.  Usually an ISP speed of 4KHz works correctly.  
18 1 Anthony Rowe
19 8 Anthony Rowe
<pre>
20 6 Anthony Rowe
Processor Type
21 6 Anthony Rowe
   ATmega324p
22 6 Anthony Rowe
23 2 Anthony Rowe
Crystal Configuration
24 2 Anthony Rowe
   Ext. Crystal/Resonator High Freq.
25 2 Anthony Rowe
   Startup Time 16K+64ms
26 2 Anthony Rowe
   CKSEL=1111   SUT=11
27 2 Anthony Rowe
28 1 Anthony Rowe
Fuses
29 1 Anthony Rowe
   Extended: 0xFF
30 1 Anthony Rowe
   High: 0xD9
31 1 Anthony Rowe
   Low: 0xFF
32 2 Anthony Rowe
33 1 Anthony Rowe
Clear CKDIV8 flag
34 7 Anthony Rowe
No ATmega103 comparability (may not be an option)
35 8 Anthony Rowe
</pre>
36 1 Anthony Rowe
37 8 Anthony Rowe
*Step 4: Download Firmware*
38 2 Anthony Rowe
39 8 Anthony Rowe
Flash the following [attachment:ff_prog_m324p.hex?format=raw firmware] file.  You may wish to restart the [[FireFly]] board and set the ISP programming speed to a higher value since this will take a long time at 4KHz.  The ISP setting can be set to 1MHz once the fuses are configured.
40 3 Anthony Rowe
41 8 Anthony Rowe
*Step 5: Set jumpers back for normal operation as shown below:*
42 2 Anthony Rowe
43 2 Anthony Rowe
[[Image(normal.png)]]