Atmel AVR2054 User Manual
Atmel AVR2054 User Manual

Atmel AVR2054 User Manual

8-bit atmel microcontrollers

Advertisement

Quick Links

Atmel AVR2054: Serial Bootloader User Guide

Features

• Description of serial bootloader
• Hardware configuration instructions
• Embedded bootloader description
• Instructions on how to use the Bootloader PC tool
• Creating SREC images

Introduction

The serial bootloader is a stand-alone package consisting of two parts: embedded
bootloader that should be loaded to the flash memory of a supported MCU and the
PC based application that sends data to the embedded bootloader over serial link.
The package contains all necessary sources for modifying and compiling the
embedded bootloader, including makefiles and projects files for various
development tool chains.
Chapter
1
provides an overview of serial bootloader and package's contents as
well as a brief starting instruction. Following chapters cover more specific topics.
Hardware configuration including ports and fuse settings is covered in Chapter 2.
Chapter
3
describes embedded bootloader application and specifics of its different
kinds. Finally, Chapter
program a device with it, using the Bootloader PC tool.
4
gives instructions on how to create an SREC image and
8-bit Atmel
Microcontrollers
Application Note
Rev. 8390B-AVR-12/11

Advertisement

Table of Contents
loading

Summary of Contents for Atmel AVR2054

  • Page 1: Features

    Atmel AVR2054: Serial Bootloader User Guide Features • Description of serial bootloader • Hardware configuration instructions • Embedded bootloader description 8-bit Atmel • Instructions on how to use the Bootloader PC tool • Creating SREC images Microcontrollers Introduction Application Note...
  • Page 2: Overview

    1 Overview The serial bootloader allows loading of firmware images to devices from a PC ® application over the serial connection. It is intended for use with Atmel wireless ® ® stacks, such as IEEE 802.15.4 MAC, RF4CE, BitCloud BitCloud Profile Suite, but can also be used with non-wireless applications.
  • Page 3: Contents And Structure

    ATxmega256A3 Atmel STK 600, ATxmega256D3 REB2xxED-EK AT91SAM3S4C deRFusb-23E00 Notes: 1. These are not Atmel products; see http://www.dresden-elektronik.de purchase. 1.2 Contents and structure The package contains • Embedded bootloader sources, including Source code and header files Makefiles for various configurations IAR projects (though not present for the bootloader for RF4CE...
  • Page 4: Getting Started

    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 and 3.6.
  • Page 5: Serial Interface

    XMEGA microcontrollers are given in Table 2-3. The tables enumerate all fuse bits and show the resulting fuse bytes. Table 2-2. Fuse bits on ATmega1281 and ATmega128RFA1. Common OTAU bootloader for Atmel Bootloader for RF4CE Option bootloader BitCloud applications applications...
  • Page 6 0xFE 0x92 0x42 Fuse bits configuration informs the MCU to start execution from the bootloader section in memory instead of the application’s. On Atmel AVR microcontrollers the bootloader is stored in the flash memory in the same address space as the application.
  • Page 7: Embedded Bootloader

    Atmel AVR2054 Option Required value FUSEBYTE2 0xBF FUSEBYTE4 0xFE FUSEBYTE5 0xFF 3 Embedded bootloader Embedded bootloader occupies a little amount of memory and serves the only purpose, to load an application image from a serial interface and write it to the MCU’s internal flash and/or EEPROM.
  • Page 8 Serial data sequences used between the device and the host while boot loading: • HANDSHAKE_REQ: 0xB2, 0xA5, 0x65, 0x4B • HANDSHAKE_CONF: 0x69, 0xD3, 0xD2, 0x26 • ACK: 0x4D, 0x5A, 0x9A, 0xB4 • NACK: 0x2D, 0x59, 0x5A, 0xB2 Figure 3-2 illustrates the flowchart of the serial bootloader programming algorithm. Atmel AVR2054 8390B-AVR-12/11...
  • Page 9: Bootloader Usb Dfu Specifics

    Atmel AVR2054 Figure 3-2. Serial bootloader programming algorithm. 3.2 Bootloader USB DFU specifics The embedded bootloader for Atmel SAM3S microcontrollers operates in a different way than shown in Figure 3-2 to conform to certain features of the SAM3S microcontroller and development boards, on which it is hosted.
  • Page 10: Changing The Reset Vector

    Another feature involves notifying embedded bootloader that the PC tool is ready to transfer a new firmware image to the device. For the Atmel AVR and XMEGA MCUs the device must be reset before the new software upload can take place. Upon reset the COM port assigned to the device on the PC is still enabled.
  • Page 11: Configuration And Compilation

    To load an image using bootloader into such device, connect JTAG’s PB7 pin to ground and reset the device. On an Atmel SAM3S USB stick, these are the first two pins of the JTAG port and so can be connected with a jumper wire.
  • Page 12: Compiler Versions

    The supported Windows AVR GCC (WinAVR) version is 20100110, but it is recommended to use the latest GCC compiler provided with Atmel AVR Studio 5. 3.3.2 Compilation from the command line and Atmel AVR Studio 4 When the embedded application is compiled using the command line or AVR Studio...
  • Page 13: Bootloader Configuration For Rf4Ce

    Atmel AVR2054 Figure 3-3. OTAU embedded bootloader architecture. Over-the-Air Upgrade usually requires a special device that will distribute the application image through the network. To start an upgrade, such device must be connected to a PC with the Bootloader PC tool installed. The Bootloader PC tool contains the OTAU tab, which is used to initiate and control an upgrade.
  • Page 14: Using The Bootloader Pc Tool

    NOTE To program a device that contains the embedded bootloader with DFU support (such as the embedded bootloader for Atmel SAM3S) you may also use the third-party software, since DFU components provided with this software package closely adhere to the DFU standard.
  • Page 15: Programming A Device

    Bootloader PC tool installation directory (see Section 4.1.3 for more detail). 3. Specify uploading parameters. a. Select the connection type. For all devices except Atmel SAM3S select , while for SAM3S select Serial b. Select the port from the list.
  • Page 16: Using The Command Line

    Command line option GUI control Description Path to the firmware image of SREC Select SREC file format to be loaded to device Select Serial port COM port number Clean up EEPROM section. EEPROM size EEPROM Erase shall be specified Atmel AVR2054 8390B-AVR-12/11...
  • Page 17: References

    Atmel AVR2054 5 References [1] Atmel AVR Studio User Guide. Available in HTML Help with the product. JTAGICE mkII Quick Start Guide AVR2058; BitCloud OTAU User Guide; Application Note; Rev. 8426A-AVR- 08/11; Atmel Corporation AVR2102; RF4Control - User Guide; Application Note; Rev. 8357B-AVR- 08/11;...
  • Page 18: Table Of Contents

    3.2.2 DFU impact ......................10 3.3 Configuration and compilation................11 3.3.1 Compiler versions....................12 3.3.2 Compilation from the command line and Atmel AVR Studio 4......... 12 3.3.3 Compilation from Atmel AVR Studio 5..............12 3.4 Programming embedded bootstrap..............12 3.5 OTAU/BitCloud bootloader features..............12 3.6 Bootloader configuration for RF4CE ..............
  • Page 19 Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL...

Table of Contents