![Atmel ATmega168 Скачать руководство пользователя страница 5](http://html1.mh-extra.com/html/atmel/atmega168/atmega168_user-manual_3003462005.webp)
ATmega168 Xplained Mini User Guide [USER GUIDE]
42250A-MCU-02/2014
5
Recommended fuse setting:
BOOTSZ = 1024W_1C00, BOOTRST = [ ], RSTDISBL = [ ], DWEN = [ ], SPIEN = [X], WDTON
= [ ], EESAVE = [ ], BODLEVEL = DISABLE, CKDIV8 = [ ], CKOUT = [ ], SUT_CKSEL =
EXTCLK_6CK_14CK_65MS
1.5.4
Programming the ATmega32U4 Using an External Programmer
How to program the ATmega32U4 using the AVR
®
JTAGICE mkII, JTAGICE3, or other Atmel Programmers.
To restore the mEDBG FW use the /tools/mEDBG/mEDBG_fw.zip from the Studio installation.
1. Connect the External Programme to the PC.
2. Connect the External Programme to the board connector (J100).
3. Go to Atmel Studio: Tools/Device Programming, and select the External Programme 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 = 3V5
HWBE = [X]
OCDEN = [ ]
JTAGEN = [X]
SPIEN = [X]
WDTON = [ ]
EESAVE = [X]
BOOTSZ = 2048W_3800
BOOTRST = [ ]
CKDIV8 = [ ]
CKOUT = [X]
SUT_CKSEL = EXTXOSC_8MHZ_XX_258CK_65MS
Important
CKOUT must be enabled the provide clock to the target.
1.5.5
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.
Insert the USB stick in the PC.
4. Select Device = ATmega32U4 (Device - Select).
5. Select USB communication (
Ctrl+U
).
6. Select memory area to program (Use the toggle memory button bellow the Atmel logo).
7. Select Load Hex file (
Ctrl+L
).
8. Select Programming Options.
9. Click "Run", observe status in status field.