User manual

2
8374A-AVR-04/11
2 What is needed to get started
To be able to run the preprogrammed code, you need the Atmel MEGA-1284P
Xplained evaluation kit and a USB cable (standard A to mini-B or mini AB) to connect
the board to a PC.
To modify the example code or write new code and compile it, you need a toolchain
for the Atmel AVR
®
microcontrollers and an IDE to edit and debug code. Atmel
provides both the AVR Studio
®
4 and the AVR GNU toolchain. Other IDEs and
toolchains are also available like the IAR Embedded Workbench
®
.
If you, in addition, want to debug the code at runtime, you’ll need a debugger like the
Atmel AVR JTAGICE mkII or the Atmel AVR ONE! More information on these tools is
available at the Atmel webpage. See the reference section later in this document for
more details.
2.1 Documentation for MEGA-1284P Xplained
The “AVR364 MEGA-1284P Xplained Hardware User’s Guide” package includes all
in-depth information about the kit like schematics, BOM, assembly drawings, 3D plots
and more. The package is available from the Atmel web-site.
www.atmel.com/xplained
2.2 AVR Studio 4
The AVR Studio 4 is a free IDE for the Atmel 8-bit AVR microcontrollers. It can be
used to write code, program, and debug a microcontroller.
AVR Studio 4
www.atmel.com/avrstudio
2.3 Bootloader programming tools
2.3.1 AVR open source programmer (AVROSP)
The AVR Open Source Programmer (AVROSP) is an AVR programmer application
that offers the possibility to program the Atmel megaAVR devices via a bootloader. It
is a command-line tool, using the same syntax as the Atmel STK
®
500 and the Atmel
AVR JTAGICE command-line tools in the Atmel AVR Studio.
AVR911: AVR Open Source Programmer
http://www.atmel.com/dyn/resources/prod_documents/doc2568.pdf
http://www.atmel.com/dyn/resources/prod_documents/AVR911.zip
On the MEGA-1284P Xplained board the Atmel ATmega1284P microcontroller is
preprogrammed with a bootloader firmware that is compatible to the AVROSP.
2.3.2 FLIP (BatchISP)
BatchISP is a command line tool for programming the flash and the EEPROM
memories of the board controller, and is part of the FLIP installation. It can be used to
communicate with the preprogrammed DFU bootloader on the board controller.
FLIP (FLexible In-system Programmer) for programming
http://atmel.com/dyn/products/tools_card.asp?tool_id=3886