![Atmel ATSAMD10 Xplained Mini User Manual Download Page 4](http://html1.mh-extra.com/html/atmel/atsamd10-xplained-mini/atsamd10-xplained-mini_user-manual_3003466004.webp)
ATSAMD10 Xplained Mini User Guide [USER GUIDE]
42387A-MCU-01/2015
4
1.5.1
Programming the Target Using mEDBG
Using the Embedded Debugger on the Xplained Mini board to program the ATmega328 via the SPI bus.
1. Connect the mEDBG USB to the PC.
2. Go to Atmel Studio: click Tools, select Device Programming, and select the connected mEDBG as Tool
with Device = ATSAMD10 and Interface = SWD, click Apply.
3. Select "Memories" and locate the source hex or elf file and click Program.
1.5.2
Debugging the Target Using mEDBG
Using the Embedded Debugger on the Xplained Mini board to debug the ATSAMD10 via SWD.
1. Start Atmel Studio.
2. Connect the mEDBG USB to the PC.
3. Open your project.
4. In the Project menu select the project properties page, select the Tools tab and select mEDBG as
debugger and SWD as interface.
5. In the Debug menu click Start Debugging and Break.
6. A debug session is started with a break in main, debugging can start.
1.5.3
Programming the Target Using an External Programmer
How to program the target ATSAMD10 using the Atmel ICE.
1. Connect the External Programmer to the PC.
2. Connect the External Programme to the evaluation board SWD connector
3. Go to Atmel Studio: Tools/Device Programming, and select the External Programmer connected as Tool,
Select Device = ATSAMD10, Interface = SWD and click Apply.
4. Select "Memories" and locate the source hex or elf file and click Program.
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 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 = 2.6V
HWBE = [X]
OCDEN = [ ]
JTAGEN = [X]
SPIEN = [X]
WDTON = [ ]
EESAVE = [X]
BOOTSZ = 2048W_3800