User guide

4
Atmel AVR2054
8390B-AVR-12/11
Path Description
\Embedded_Bootloader_src\as5_projects\
Atmel AVR Studio 5 project and
solution files for the embedded
bootloader
\Embedded_Bootloader_src\makefiles\
Makefiles for compiling the
embedded bootloader with IAR or
GCC compiler from the command
line or from AVR Studio 4 and 5
\PC_Bootloader_Setup\
Installation files for the Bootloader
PC tool
\Documentation\ Documentation folder
NOTE There are three types of embedded bootloader firmware distinguished by their
functionality: common bootloader, the bootloader with OTAU support for Atmel
BitCloud applications, and the bootloader for RF4CE applications. The latter two
provide extra functionality in addition to common bootloader features. For details see
sections 3.5 and 3.6.
1.3 Getting started
Serial bootloader is typically used in the following way:
1. Unpack the package to a folder on the PC hard drive.
2. Install the Bootloader PC tool. To launch the Bootloader PC tool you will need to
install Java
®
, if it is not installed on your PC.
3. Program the target device with an image of the embedded bootloader via JTAG,
unless it is already programmed.
4. Configure fuse bits for the bootloader support (see Section 2.2) if neede
d.
5. Connect the device via the serial interface to the PC.
6. Launch the Bootloader PC tool, specify the connection settings, the application
image in SREC format, and upload the image to the target device (see Section 4.1
for the detaile
d instruction).
2 Hardware configuration
Bootloader support may require changes in hardware configuration as described
below.
Consider proper configuration of the serial interface that will be used to transfer a
firmware image from a PC to the device. Embedded bootloader and the Bootloader
PC tool can work with USART, SPI and USB, although the set of supported
interfaces depends on a platform
Check fuse bits settings (Atmel AVR
®
and XMEGA
®
MCUs). An MCU must be
aware of the size of the memory occupied by the bootloader if it resides in the flash
and must start from the bootloader section rather than from the application section.
Section 2.2 descri
bes fuses configuration for AVR and XMEGA highlighting the
differences where necessary