User guide
Atmel AVR2054: Serial Bootloader User Guide [APPLICATION NOTE]
8390D−WIRELESS−03/2015
2
Table of Contents
1. Overview ............................................................................................ 3
1.2 Supported platforms and interfaces .................................................................. 3
1.3 Package content and structure ......................................................................... 4
1.3.2 Precompiled bootloader firmware ....................................................... 5
2. Installation and getting started ............................................................ 7
2.1 Serial interface connections .............................................................................. 7
2.1.1 USART interface ................................................................................. 7
2.1.2 USB-FIFO interface ............................................................................ 8
2.1.3 TWI interface ...................................................................................... 8
2.2 Fuse bits settings .............................................................................................. 8
3. Embedded bootloader ...................................................................... 11
3.2 Configuration options ...................................................................................... 11
3.3 Compiling embedded bootloader application .................................................. 12
3.3.2 Compilation from the command line ................................................. 12
3.4 Programming embedded bootstrap................................................................. 12
3.5 Bootloader UART/SPI/TWI programming sequence ....................................... 13
3.6 Bootloader USB DFU specifics ....................................................................... 15
3.6.1 Changing the reset vector................................................................. 15
3.6.2 DFU impact ....................................................................................... 15
3.6.2.1 Adding DFU support to an application ............................ 15
3.6.2.2 Not-responding application or absent DFU ..................... 16
3.6.2.3 Additional remarks .......................................................... 16
3.7 BitCloud OTAU bootloader features................................................................ 16
3.8 Bootloader configuration for Atmel RF4CE ..................................................... 17
4. Bootloader PC tool ........................................................................... 18
4.1 Using the Bootloader PC tool .......................................................................... 18
4.1.1 Generating SREC images ................................................................ 18
4.1.1.1 Using GCC tools ............................................................. 18
4.1.1.2 Using IAR tools ............................................................... 18
4.1.2 Loading application firmware to an MCU .......................................... 19
4.1.3 Using the command line ................................................................... 20
4.1.3.2 Command line options .................................................... 20
5. Reference ......................................................................................... 21
6. Document revision history ................................................................ 22










