8-bit. Application Note. Microcontrollers. AVR282: USB Firmware Upgrade for AT90USB



Similar documents
Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration

Application Note. 8-bit Microcontrollers. AVR272: USB CDC Demonstration UART to USB Bridge

AVR115: Data Logging with Atmel File System on ATmega32U4. Microcontrollers. Application Note. 1 Introduction. Atmel

AVR1900: Getting started with ATxmega128A1 on STK bit Microcontrollers. Application Note. 1 Introduction

AVR1922: Xplain Board Controller Firmware. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

Application Note. 8-bit Microcontrollers. AVR293: USB Composite Device

Using CryptoMemory in Full I 2 C Compliant Mode. Using CryptoMemory in Full I 2 C Compliant Mode AT88SC0104CA AT88SC0204CA AT88SC0404CA AT88SC0808CA

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

AVR033: Getting Started with the CodeVisionAVR C Compiler. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1318: Using the XMEGA built-in AES accelerator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1510: Xplain training - XMEGA USART. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction

AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note.

32-bit AVR UC3 Microcontrollers. 32-bit AtmelAVR Application Note. AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2

AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors

AVR353: Voltage Reference Calibration and Voltage ADC Usage. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR287: USB Host HID and Mass Storage Demonstration. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AT89C5131A Starter Kit... Software User Guide

Application Note. C51 Bootloaders. C51 General Information about Bootloader and In System Programming. Overview. Abreviations

AVR2006: Design and characterization of the Radio Controller Board's 2.4GHz PCB Antenna. Application Note. Features.

3-output Laser Driver for HD-DVD/ Blu-ray/DVD/ CD-ROM ATR0885. Preliminary. Summary. Features. Applications. 1. Description

AVR1301: Using the XMEGA DAC. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2. 8-bit Atmel Microcontrollers. Application Note. Features.

AVR030: Getting Started with IAR Embedded Workbench for Atmel AVR. 8-bit Microcontrollers. Application Note. Features.

AVR ONE!... Quick-start Guide. EVK Windows 32104B AVR ONE! 02/10

AT91 ARM Thumb Microcontrollers. AT91SAM CAN Bootloader. AT91SAM CAN Bootloader User Notes. 1. Description. 2. Key Features

General Porting Considerations. Memory EEPROM XRAM

How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

USER GUIDE. ZigBit USB Stick User Guide. Introduction

Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures. Atmel Microcontrollers. Application Note. Features.

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

AT88CK490 Evaluation Kit

AT91SAM ARM-based Flash MCU. Application Note

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features

AVR32788: AVR 32 How to use the SSC in I2S mode. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR245: Code Lock with 4x4 Keypad and I2C LCD. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction

AVR106: C functions for reading and writing to Flash memory. 8-bit Microcontrollers. Application Note. Features. Introduction

Atmel AVR4903: ASF - USB Device HID Mouse Application. Atmel Microcontrollers. Application Note. Features. 1 Introduction

8-bit RISC Microcontroller. Application Note. AVR910: In-System Programming

AVR2004: LC-Balun for AT86RF230. Application Note. Features. 1 Introduction

AVR055: Using a 32kHz XTAL for run-time calibration of the internal RC. 8-bit Microcontrollers. Application Note. Features.

APPLICATION NOTE. Atmel LF-RFID Kits Overview. Atmel LF-RFID Kit. LF-RFID Kit Introduction

APPLICATION NOTE. Atmel AT02985: User s Guide for USB-CAN Demo on SAM4E-EK. Atmel AVR 32-bit Microcontroller. Features. Description.

Application Note. Atmel ATSHA204 Authentication Modes. Prerequisites. Overview. Introduction

USER GUIDE EDBG. Description

8-bit RISC Microcontroller. Application Note. AVR182: Zero Cross Detector

Application Note. USB Microcontrollers. USB PC Drivers Based on Generic HID Class. 1. Introduction

3-output Laser Driver for HD-DVD/ Blu-ray/DVD/ CD-ROM ATR0885. Preliminary. Summary

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

AT86RF230 (2450 MHz band) Radio Transceiver... User Guide

256K (32K x 8) Battery-Voltage Parallel EEPROMs AT28BV256

8-bit Microcontroller. Application Note. AVR105: Power Efficient High Endurance Parameter Storage in Flash Memory

Software Prerequisites Linux Ubuntu LTS. Estimated completion time: 15min. The goal of this hands-on is to:

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

AVR134: Real Time Clock (RTC) using the Asynchronous Timer. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

8051 Flash Microcontroller. Application Note. A Digital Thermometer Using the Atmel AT89LP2052 Microcontroller

AVR Prog USB v3 MK II Eco Manual

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter

8-bit Microcontroller. Application Note. AVR222: 8-point Moving Average Filter

Application Note. Atmel CryptoAuthentication Product Uses. Atmel ATSHA204. Abstract. Overview

8-bit RISC Microcontroller. Application Note. AVR155: Accessing an I 2 C LCD Display using the AVR 2-wire Serial Interface

APPLICATION NOTE. Secure Personalization with Transport Key Authentication. ATSHA204A, ATECC108A, and ATECC508A. Introduction.

Application Note. USB Mass Storage Device Implementation. USB Microcontrollers. References. Abbreviations. Supported Controllers

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

APPLICATION NOTE. Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver. Atmel SAMD20. Description. Features

Designing Feature-Rich User Interfaces for Home and Industrial Controllers

Application Note. 8-bit Microcontrollers. AVR280: USB Host CDC Demonstration. 1. Introduction

AVR106: C Functions for Reading and Writing to Flash Memory. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AT91 ARM Thumb Microcontrollers. Application Note. Interfacing a PC Card to an AT91RM9200-DK. Introduction. Hardware Interface

How to Calculate the Capacitor of the Reset Input of a C51 Microcontroller 80C51. Application Note. Microcontrollers. Introduction

Atmel AVR1017: XMEGA - USB Hardware Design Recommendations. 8-bit Atmel Microcontrollers. Application Note. Features.

AN3354 Application note

APPLICATION NOTE. AT16268: JD Smart Cloud Based Smart Plug Getting. Started Guide ATSAMW25. Introduction. Features

8-bit RISC Microcontroller. Application Note. AVR236: CRC Check of Program Memory

8-bit Microcontroller. Application Note. AVR461: Quick Start Guide for the Embedded Internet Toolkit. Introduction. System Requirements

AT91 ARM Thumb Microcontrollers. Application Note. GNU-Based Software Development on AT91SAM Microcontrollers. 1. Introduction. 2.

AN10866 LPC1700 secondary USB bootloader

Table of Contents. Section 1 Introduction Section 2 Getting Started Section 3 Hardware Description

AVR32110: Using the AVR32 Timer/Counter. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR32100: Using the AVR32 USART. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

64K (8K x 8) Parallel EEPROM with Page Write and Software Data Protection AT28C64B

8-bit Microcontroller. Application Note. AVR415: RC5 IR Remote Control Transmitter. Features. Introduction. Figure 1.

AT89LP Flash Data Memory. Application Note. AT89LP Flash Data Memory API. 1. Introduction. 2. Theory of Operation. 2.1 Flash Memory Operation

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

APPLICATION NOTE. Authentication Counting. Atmel CryptoAuthentication. Features. Introduction

AVR1003: Using the XMEGA Clock System. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AT01095: Joystick Game Controller Reference Design. 8-/16-bit Atmel Microcontrollers. Features.

Quick Start Guide. CAN Microcontrollers. ATADAPCAN01 - STK501 CAN Extension. Requirements

AVR32737: AVR32 AP7 Linux Getting Started. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

USB 2.0 Full-Speed Host/Function Processor AT43USB370. Summary. Features. Overview

Atmel s Self-Programming Flash Microcontrollers

8-bit. Application Note. Microcontrollers. AVR273: USB Mass Storage Implementation. Features. 1. Introduction

CryptoAuth Xplained Pro

8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.

AVR125: ADC of tinyavr in Single Ended Mode. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR241: Direct driving of LCD display using general IO. 8-bit Microcontrollers. Application Note. Features. Introduction AVR

Atmel AVR ATxmega384C3 microcontroller OLED display with pixels resolution Analog sensors. Ambient light sensor Temperature sensor

Transcription:

AVR282: USB Firmware Upgrade for AT90USB Features Supported by Atmel FLIP program on all Microsoft O/S from Windows 98SE and later FLIP 3.2.1 or greater supports Linux Default on chip USB bootloader In-System programming through the USB interface/no external hardware needed Up to 32Kbytes/s 8-bit Microcontrollers Application Note 1. Introduction The aim of this document is to describe how to perform the firmware upgrade of the AT90USB products using the on-chip bootloader and FLIP software. 2. Description The AT90USB products are delivered with an on-chip bootloader. This bootloader allows the user to program the FLASH/EEPROM memories through the USB interface. To perform firmware upgrade, Atmel has developed an application called FLIP. This software is a flexible application which lets you program and configure Atmel's microcontroller devices in their final environment without needing any dedicated hardware. The latest release of FLIP offers the following capabilities: Perform In-System Programming through RS232, USB or CAN interfaces. May be used through its intuitive Graphical User Interface or launched from a DOS window, from an embedded software IDE (AVR Studio), or even from your own application Buffer editing capabilities: fill, search, copy, reset, modify, goto address. Target device memory control: erase, blank check, program, verify, read, security level and special bytes reading and setting. Parts serialization capability (from batchisp only). ISP hardware conditions may be set by software. USB interface Rev.

3. Hardware Requirements 4. Software Requirement 5. Bootloader Process 1. AVR USB evaluation board (ATSTK525/STK526, AT90USBKey or any kit for the AT90USB family) 2. AT90USB microcontroller 3. USB cable (Standard A to Mini B) 4. PC running on Windows (98SE, ME, 2000, XP) with USB support. The software needed for this application include: FLIP software (Device Firmware Upgrade tool) version 3.2.0 or above. Figure 5-1. Bootloader Process RST New! HWBE Fuse HWB New! HWB? BOOTRST Fuse? User Application execution Reset Vector -> Application Section On-Chip Bootloader Execution Reset Vector -> Boot Section As shown in the above figure, the AT90USB products have a new fuse bit (Comparing to a standard AVR device). This fuse bit is the HWBE, it is enabled by default. Adding to this new fuse bit, the AT90USB products have a new pin: the HWB. This pin should be active low under RESET to launch the bootloader. To allow the user to perform the bootloader function, all AT90USB kits have two buttons: RST to active the reset and the HWB to active the HWB pin. 2 AVR282

AVR282 6. Device Firmware Upgrade The Flip software is the tool used to upgrade the firmware (available freely in the USB CD- ROM or Atmel website). The following steps should be completed to allow the device starting DFU mode (bootloader), and program the FLASH or the EEPROM memory: 1. Install Flip software (Flip version 3.0 or above is required). 2. Connect the AT90USB board (STK525, AT90USBKey...) to the PC using the USB cable (Standard A to Mini B). 3. Push the HWB (Hardware Bootloader) button 4. Push the RST (Reset) button 5. Release the RST button 6. Release the HWB button 7. If your hardware conditions explained above are correct, a new device detection wizard will be displayed. Please follow the instructions (the INF file is located in the USB subdirectory from Flip installation: install path:\atmel\flip\flipx.x.x\usb ). The new device detection wizard may not appear if the suitable hardware is already installed, you can jump to step 8. Figure 6-1. New Device Detection Wizard 3

Figure 6-2. Driver Location Figure 6-3. Driver selection 2.0 4 AVR282

AVR282 8. Check the Device Manager Figure 6-4. and you should see the same icon (Atmel DFU icon) as shown in the figure below. If not, repeat step 2. Figure 6-4. Device Manager 5

Once your device is in DFU mode, launch the Flip software and follow the instructions explained below, Figure 6-5. 1. Select AT90USB device Figure 6-5. Device Selection 6 AVR282

AVR282 2. Select USB as communication mode a. USB Communication Mode 7

3. Open the communication Figure 6-6. Open the USB Communication 8 AVR282

AVR282 4. Choose the HEX file to load: Figure 6-7. HEX File to Load 9

5. Load the HEX file (Check Erase, Blank Check, Program and Verify, then Push Run button) Figure 6-8. HEX File Loading 10 AVR282

AVR282 6. Start the application Figure 6-9. Start Application Note: The AT90USB bootloader will detach and jump into the user application when Start Application button is pressed. 11

7. FAQs 1. After programming my device using the JTAGICE MKII or the AVRISP, I cannot start the bootloader anymore? When you use the JTAGICE MKII or AVRISP, the first instruction performed is the full chip erase. This instruction erases the whole of the flash memory and deletes the bootloader. You have to load the bootloader HEX file again using the JTAGICE MKII or the AVRISP to be able to use flip software to program the device. 2. I have a Flip 2.4.x/3.0.x version on my computer. I installed Flip 3.1.y, When I start the bootloader, I cannot see the Amel DFU icon in my device manager window as shown in the figure 6.4, I still have the Jungo icon? Flip 2.4.x and Flip 3.1.y are not using the same USB driver. You have to update the driver used for the bootloader: Open the device manager Right-click on the AT90USB Jungo icon Select Update Driver Continue as described in the section 6 (Device Firmware Upgrade) 3. Can I modify the fuse bits using Flip? No, Flip cannot modify the fuse bits. To modify the fuse bit you can use either the JTAG ICE MKII, the AVRISP MKII, or parallel programming. 4. What is the difference between starting the application with the Reset box checked off or not? If you start the application with the Reset box checked off, the device will start after a Watchdog reset and this watchdog will remain active. You need to disable the Watchdog in your application. Resetting the device, ensures there is no side effect from resources used by the boot-loader before starting the user application. 8. Related Documents USB DFU Bootloader Datashet (doc 7618) Help content of Flip 12 AVR282

Headquarters International Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Atmel Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong Tel: (852) 2721-9778 Fax: (852) 2722-1369 Atmel Europe Le Krebs 8, Rue Jean-Pierre Timbaud BP 309 78054 Saint-Quentin-en- Yvelines Cedex France Tel: (33) 1-30-60-70-00 Fax: (33) 1-30-60-71-11 Atmel Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel: (81) 3-3523-3551 Fax: (81) 3-3523-7581 Product Contact Web Site www.atmel.com Technical Support Enter Product Line E-mail Sales Contact www.atmel.com/contacts Literature Requests www.atmel.com/literature 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 ATMEL S TERMS AND CONDI- TIONS OF SALE LOCATED ON ATMEL S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDEN- TAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. 2008 Atmel Corporation. All rights reserved. Atmel, logo and combinations thereof, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.