Ff-programmer-v2

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

1 1 Anthony Rowe
2 4 Anthony Rowe
= FireFly Programmer Configuration =
3 2 Anthony Rowe
4 5 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 [http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=3353 AVR MKII] and firmware downloading software like [http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=2725 AVRStudio].
5 2 Anthony Rowe
6 2 Anthony Rowe
7 2 Anthony Rowe
'''Step 1: Configure Jumpers and Connect Programmer as shown below'''
8 2 Anthony Rowe
9 2 Anthony Rowe
[[Image(flash.png)]]
10 2 Anthony Rowe
11 2 Anthony Rowe
'''Step 2: Connect separate power to the FireFly programming board and turn it on'''
12 2 Anthony Rowe
13 6 Anthony Rowe
'''Step 3: Using AVR programming software (like AVRstudio) set the following options and fuses:'''
14 2 Anthony Rowe
15 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.  
16 1 Anthony Rowe
17 1 Anthony Rowe
{{{
18 6 Anthony Rowe
Processor Type
19 6 Anthony Rowe
   ATmega324p
20 6 Anthony Rowe
21 2 Anthony Rowe
Crystal Configuration
22 2 Anthony Rowe
   Ext. Crystal/Resonator High Freq.
23 2 Anthony Rowe
   Startup Time 16K+64ms
24 2 Anthony Rowe
   CKSEL=1111   SUT=11
25 2 Anthony Rowe
26 2 Anthony Rowe
Fuses
27 2 Anthony Rowe
   Extended: 0xFF
28 2 Anthony Rowe
   High: 0xD9
29 2 Anthony Rowe
   Low: 0xFF
30 2 Anthony Rowe
31 1 Anthony Rowe
Clear CKDIV8 flag
32 7 Anthony Rowe
No ATmega103 comparability (may not be an option)
33 1 Anthony Rowe
}}}
34 1 Anthony Rowe
35 6 Anthony Rowe
'''Step 4: Download Firmware'''
36 2 Anthony Rowe
37 6 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.
38 3 Anthony Rowe
39 6 Anthony Rowe
'''Step 5: Set jumpers back for normal operation as shown below:'''
40 2 Anthony Rowe
41 2 Anthony Rowe
[[Image(normal.png)]]