Atmel ATSAMD10 Xplained Mini User Manual

42387A-MCU-01/2015
USER GUIDE
ATSAMD10 Xplained Mini User Guide
Introduction
This user guide describes how to get started with the Atmel® ATSAMD10 Xplained Mini board.
The ATSAMD10 Xplained Mini evaluation kit is a hardware platform to evaluate the Atmel ATSAMD10 microcontroller. The evaluation kit comes with a fully integrated debugger that provides seamless integration with Atmel Studio 6.2 (and later version). The kit provides access to the features of the ATSAMD10 enabling easy integration of the device in a custom design.
ATSAMD10 Xplained Mini User Guide [USER GUIDE]
42387A-MCU-01/2015
2
Table of Contents
Introduction .................................................................................... 1
1. Getting Started ........................................................................ 3
1.1. Features ..... ..... ....................... ..... ..... ..... ..... .................. ..... .. 3
1.2. Design Documentation and Related Links .................. ..... ..... ..... . 3
1.3. Board Assembly . ..... ..... ..... ....................... ..... ..... ..... ..... ......... 3
1.3.1. In Customer Development Assembly .............. ..... ..... ..... 3
1.3.2. Connecting an Arduino Shield ..... ..... ....................... .... 3
1.3.3. Standalone Node .............. ..... ..... ..... ..... ..... ............... 3
1.4. Connecting the Kit ............ ..... ..... ..... ..... .................. ..... ..... ..... 3
1.4.1. Connect the Kit to Atmel Studio ... .................. ..... ..... .... 3
1.4.2. Connect the Target UART to the mEBDG COM Port ......... 3
1.5. Programming and Debugging ... ..... .................. ..... ..... ..... ..... .... 3
1.5.1. Programming the Target Using mEDBG . ..... .................. 4
1.5.2. Debugging the Target Using mEDBG ... ..... ..... ............... 4
1.5.3. Programming the Target Using an External
Programmer ............. ..... ..... ..... ..... ....................... ..... 4
1.5.4. Programming the ATmega32U4 Using an External
Programmer ............. ..... ..... ..... ..... ....................... ..... 4
1.5.5. Programming the ATmega32U4 Using a Bootloader . ........ 5
1.5.6. How to Install the "Bootloader PC tool" ....... ..... ..... ..... .... 5
2. Hardware User Guide ............................................................. 7
2.1. Board Overview . ..... ..... ..... ..... ....................... ..... ..... ..... ..... .... 7
2.2. Clock Distribution . ..... ..... ....................... ..... ..... ..... ..... ............ 7
2.3. Headers and Connectors ..... ....................... ..... ..... ..... ..... ........ 7
2.3.1. JTAG (J100) ........... ..... ..... ..... ..... ....................... ..... . 7
2.3.2. USB (J101) ..................... ..... ..... ..... ..... .................. ... 8
2.3.3. USART (J104) . ..... ..... ..... ....................... ..... ..... ..... .... 8
2.3.4. Target Digital I/O (J200 and J201) .... ..... ..... ..... ..... ........ 8
2.3.5. Target Analogue I/O (J203) .. ..... ....................... ..... ..... . 9
2.3.6. Power (J202, J300, J301) ............ ..... ..... ..... ..... ........... 9
2.3.7. Target SPI (J204) .................... ..... ..... ..... ..... ............ 10
2.3.8. Extension Headers .... ..... ..... ....................... ..... ..... ... 11
2.4. Board GUI ... ..... .................. ..... ..... ..... ..... ....................... ..... 12
2.4.1. LEDs ..... ..... ..... ....................... ..... ..... ..... ..... ........... 12
2.4.2. Buttons ..... ....................... ..... ..... ..... ..... .................. 12
2.5. Factory Programmed Data ... ..... ..... ..... ..... .................. ..... ..... . 13
3. Document Revision History ................................................... 14
ATSAMD10 Xplained Mini User Guide [USER GUIDE]
42387A-MCU-01/2015
3
1. Getting Started
1.1 Features
The ATSAMD10 Xplained Mini evaluation board provides a development platform for the Atmel ATSAMD10.
1.2 Design Documentation and Related Links
The most relevant documents and software for the evaluation board is available here:
http://www.atmel.com/tools/SAMD10-XMINI.aspx
1.3 Board Assembly
The Xplained Mini board is very flexible and can be used in a number of ways. E.g. as your own prototype for SW development and HW verification.
1.3.1 In Customer Development Assembly
The ATSAMD10 Xplained Mini board can be wired into the customer prototype assembly by using the on-board connector grid, where the target signals are available.
1.3.2 Connecting an Arduino Shield
By assembling receptacles in the marked positions (J200, J201, J202, and J203) Arduino® shields can be mounted.
1.3.3 Standalone Node
The ATSAMD10 Xplained Mini board can be used as a standalone node - use the 4xAAA or 2xAAA battery pack available in Atmel store to provide power.
1.4 Connecting the Kit
How to connect the evaluation board.
1.4.1 Connect the Kit to Atmel Studio
How to connect the ATSAMD10 Xplained Mini board to Atmel Studio.
1. Download and install Atmel Studio1 version 6.2 or later.
2. Launch Atmel Studio.
3. Connect the board to the USB port and it will be visible in Atmel Studio.
1.4.2 Connect the Target UART to the mEBDG COM Port
All Xplained Mini boards have an embedded debugger (mEBDG) with a number of features, among them a CDC/COM port which enables the user to connect the ATSAMD10 UART to the PC.
1. Connect the mEDBG USB to the PC.
2. Use the Device Manager to find the COM port number.
3. Default COM port settings are 9600baud N81. The COM port settings can be changed using the Device Manager.
1.5 Programming and Debugging
How to program and debug the Xplained Mini board.
1
http://www.atmel.com/tools/atmelstudio.aspx
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
ATSAMD10 Xplained Mini User Guide [USER GUIDE]
42387A-MCU-01/2015
5
BOOTRST = [ ]
CKDIV8 = [ ]
CKOUT = [X]
SUT_CKSEL = EXTXOSC_8MHZ_XX_258CK_65MS
Note
CKOUT must be enabled the provide external 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
tool"” on page 5.
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.aspx2.
2
http://www.atmel.com/tools/FLIP.aspx
ATSAMD10 Xplained Mini User Guide [USER GUIDE]
42387A-MCU-01/2015
6
2. Run the FLIP Installer.
Loading...
+ 11 hidden pages