ATmega168PB Xplained Mini User Guide [USER GUIDE]
42381A-MCU-10/2014
6
1. Connect the External Programmer to the PC.
2. Connect the External Programmer to the board connector (J100).
3. Go to Atmel Studio: Tools/Device Programming, and select the External Programmer connected as Tool,
select Device = ATmega32U4, Interface = JTAG and click Apply.
4. Select "Memories" and locate the source hex or elf file and click Program.
5. If the source contain fuse settings go to "Production file" and upload the elf file and program the fuses.
Recommended fuse setting:
BODLEVEL = DISABLE
HWBE = [X]
OCDEN = [ ]
JTAGEN = [X]
SPIEN = [X]
WDTON = [ ]
EESAVE = [X]
BOOTSZ = 2048W_3800
BOOTRST = [ ]
CKDIV8 = [ ]
CKOUT = [X]
SUT_CKSEL = EXTXOSC_8MHZ_XX_258CK_65MS
Note
CKOUT must be enabled the provide clock to the target.
1.5.5
Programming the ATmega32U4 Using a Bootloader
This section describes how to use the bootloader to program the ATmega32U4.
1. Install the Bootloader interface on the PC as described in
“How to Install the "Bootloader PC
.
2. Start the Bootloader PC GUI "FLIP".
3. Short strap J102.
4. Connect the board USB connector to the PC.
5. Select Device = ATmega32U4 (Device - Select).
6. Select USB communication (
Ctrl+U
).
7. Select memory area to program (Use the toggle memory button bellow the Atmel logo).
8. Select Load Hex file (
Ctrl+L
).
9. Select Programming Options.
10. Click "Run", observe status in status field.
1.5.6
How to Install the "Bootloader PC tool"
How to install the Bootloader PC GUI tool.
1. Download the FLIP "in system programming tool" installer from
http://www.atmel.com/tools/FLIP.aspx
2
.
2