UM0564 User manual. Device firmware upgrade. Introduction

Similar documents
AN3354 Application note

UM0985 User manual. Developing your STM32VLDISCOVERY application using the IAR Embedded Workbench software. Introduction

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

UM1790 User manual. Getting started with STM32L053 discovery kit software development tools. Introduction

AN3332 Application note

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

AN4108 Application note

UM1676 User manual. Getting started with.net Micro Framework on the STM32F429 Discovery kit. Introduction

SPC5-FLASHER. Flash management tool for SPC56xx family. Description. Features

AN3265 Application note

UM1680 User manual. Getting started with STM32F429 Discovery software development tools. Introduction

M24LRxx/CR95HF application software installation guide

AN3998 Application note

AN2557 Application note

AN3990 Application note

DDSL01. Secondary protection for DSL lines. Features. Description

BD241A BD241C. NPN power transistors. Features. Applications. Description. NPN transistors. Audio, general purpose switching and amplifier transistors

BD238. Low voltage PNP power transistor. Features. Applications. Description. Low saturation voltage PNP transistor

AN2389 Application note

EVL185W-LEDTV. 185 W power supply with PFC and standby supply for LED TV based on the L6564, L6599A and Viper27L. Features.

AN4156 Application note

TN0023 Technical note

AN2604 Application note

2STBN15D100. Low voltage NPN power Darlington transistor. Features. Application. Description

ST High voltage fast-switching NPN power transistor. Features. Applications. Description

BD135 - BD136 BD139 - BD140

AN4128 Application note

ULN2801A, ULN2802A, ULN2803A, ULN2804A

AN2680 Application note

Single LNB supply and control IC DiSEqC 1.X compliant with EXTM based on the LNBH29 in a QFN16 (4x4) Description

AN2824 Application note

AN3110 Application note

AN3353 Application note

AN2146 APPLICATION NOTE

ULN2001, ULN2002 ULN2003, ULN2004

UM1613 User manual. 16-pin smartcard interface ST8034P demonstration board. Introduction

DSL01-xxxSC5. Secondary protection for DSL lines. Features. Description. Applications. Benefits. Complies with the following standards

ESDLIN1524BJ. Transil, transient voltage surge suppressor diode for ESD protection. Features. Description SOD323

AN3252 Application note

ETP01-xx21. Protection for Ethernet lines. Features. Description. Applications. Benefits. Complies with the following standards

How To Write To An Eeprom Memory On A Flash Memory On An Iphone Or Ipro Memory On Microsoft Flash Memory (Eeprom) On A Microsoft Microsoft Powerbook (Ai) 2.2.2

STEVAL-IEG001V2. Smart real-time vehicle tracking system. Features

Order code Temperature range Package Packaging

UM1075 User manual. ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32. Introduction

BZW50. Transil, transient voltage surge suppressor (TVS) Features. Description

Description. IO and RF AGC. ASIC controller and power management. Carrier recovery loop. GPIO switch matrix. Lock indicator and monitoring DVBS2 FEC

EN: This Datasheet is presented by the m anufacturer. Please v isit our website for pricing and availability at ore.hu.

LM134-LM234-LM334. Three terminal adjustable current sources. Features. Description

LM337. Three-terminal adjustable negative voltage regulators. Features. Description

UM0834 User manual. Developing and debugging your STM8S-DISCOVERY application code. Introduction. Reference documents

SPC5-CRYP-LIB. SPC5 Software Cryptography Library. Description. Features. SHA-512 Random engine based on DRBG-AES-128

AN3270 Application note

LM135-LM235-LM335. Precision temperature sensors. Features. Description

Description. Table 1. Device summary. Order code Temperature range Package Packaging Marking

ST19NP18-TPM-I2C. Trusted Platform Module (TPM) with I²C Interface. Features

L78MxxAB L78MxxAC. Precision 500 ma regulators. Features. Description

AN3359 Application note

STTH2R06. High efficiency ultrafast diode. Features. Description

STP60NF06. N-channel 60V Ω - 60A TO-220 STripFET II Power MOSFET. General features. Description. Internal schematic diagram.

STP60NF06FP. N-channel 60V Ω - 30A TO-220FP STripFET II Power MOSFET. General features. Description. Internal schematic diagram.

AN2866 Application note

Table 1. Absolute maximum ratings (T amb = 25 C) Symbol Parameter Value Unit. ISO C = 330 pf, R = 330 Ω : Contact discharge Air discharge

TN0072 Technical note

STTH1R04-Y. Automotive ultrafast recovery diode. Features. Description

Description. Table 1. Device summary

UM0462 User manual. STM32 and STM8 Flash loader demonstrator. Introduction

MC Low noise quad operational amplifier. Features. Description

32F072BDISCOVERY. Discovery kit for STM32F072xx microcontrollers. Features. Description

UM1969 User manual. Getting started with STM32F746G discovery software development tools. Introduction

STN3NF06L. N-channel 60 V, 0.07 Ω, 4 A, SOT-223 STripFET II Power MOSFET. Features. Application. Description

AN3155 Application note

AN2760 Application note

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

Description. Table 1. Device summary. Order codes. TO-220 (single gauge) TO-220 (double gauge) D²PAK (tape and reel) TO-220FP

L6234. Three phase motor driver. Features. Description

UA741. General-purpose single operational amplifier. Features. Applications. Description. N DIP8 (plastic package)

AN1754 APPLICATION NOTE

Obsolete Product(s) - Obsolete Product(s)

Description SO-8. series. Furthermore, in the 8-pin configuration Very low-dropout voltage (0.2 V typ.)

AN974 APPLICATION NOTE

P6KE. Transil, transient voltage surge suppressor (TVS) Features. Description. Complies with the following standards

AN3997 Application note

STDP2690. Advanced DisplayPort to DisplayPort (dual mode) converter. Features. Applications

AN438 APPLICATION NOTE SAFETY PRECAUTIONS FOR DEVELOPMENT TOOL TRIAC + MICROCONTROLLER

TDA W CAR RADIO AUDIO AMPLIFIER

UM0109 USER MANUAL. Public Transport Ticketing Demo

AN2703 Application note

STP55NF06L STB55NF06L - STB55NF06L-1

Figure 1. STM32F429 Discovery board: STM32F429I-DISCO

AN2328 Application note

AN4368 Application note

STM32F4DISCOVERY. Discovery kit with STM32F407VG MCU. Features. Description

Obsolete Product(s) - Obsolete Product(s)

AN1819 APPLICATION NOTE Bad Block Management in Single Level Cell NAND Flash Memories

AN886 APPLICATION NOTE

STTH110. High voltage ultrafast rectifier. Description. Features

AN820 APPLICATION NOTE INPUT/OUTPUT PROTECTION FOR AUTOMOTIVE COMPUTER

TDA2004R W stereo amplifier for car radio. Features. Description

Getting started with software and firmware environments for the STM32F0DISCOVERY kit

STCS A max constant current LED driver. Features. Applications. Description

Transcription:

User manual Device firmware upgrade Introduction This user manual provides information regarding the STR9 dongle device firmware upgrade (hereafter referred to as DFU), guiding the user on how to: flash the DFU firmware into the STR9 microcontroller create a DFU image from an application download the image via DFU run an application on the target device A brief troubleshooting section is also included in this document. July 2008 Rev 1 1/20 www.st.com

Contents UM0564 Contents 1 Requirements.............................................. 4 1.1 Hardware.................................................. 4 1.2 Software................................................... 5 2 STR9 configuration - CAPS................................... 7 3 Flash DFU project into the STR9 - IAR Embedded Workbench..... 9 4 Create output for DFU image - IAR Embedded Workbench........ 10 5 Create DFU image - DFU file manager.......................... 11 6 Firmware upgrade - download your application image............ 13 7 Run your downloaded application............................. 17 8 Troubleshooting........................................... 18 9 Revision history........................................... 19 2/20

List of figures List of figures Figure 1. STR9 dongle demonstration board............................................ 4 Figure 2. IAR J-link............................................................... 4 Figure 3. RLink-ST................................................................ 5 Figure 4. CAPS - additional settings.................................................. 7 Figure 5. CAPS - program device.................................................... 8 Figure 6. Dongle programming...................................................... 9 Figure 7. IAR - linker settings....................................................... 10 Figure 8. DFU file manager........................................................ 11 Figure 9. DFU file manager - generation.............................................. 11 Figure 10. Multi bin injection........................................................ 12 Figure 11. DfuFileMgr............................................................. 12 Figure 12. DfuSe demo - initial picture................................................. 13 Figure 13. DfuSe demo - select target................................................. 14 Figure 14. DfuSe demo - upgrade process............................................. 15 Figure 15. DfuSe demo - verify...................................................... 16 3/20

Requirements UM0564 1 Requirements 1.1 Hardware STEVAL-IFD001V1 (STR9 dongle) For details on this board, please refer to user manual UM0282. Figure 1. STR9 dongle demonstration board IAR J-link IAR J-Link is a small ARM JTAG hardware debug probe, which connects via USB to the PC host running Windows. Figure 2. IAR J-link 4/20

Requirements RLink-ST The RLink is Raisonance's versatile, low-cost, in-circuit debugger/programmer for the STM32, STR9, STR7, ST7 and µpsd microcontrollers. It connects to applications or evaluation boards for programming and debugging via a JTAG standard connection for ARM core-based and µpsd microcontrollers, or via STMicroelectronics' in-circuit communication (ICC) connection for ST7 microcontrollers. The RLink can be driven by RIDE, Raisonance's integrated development environment for debugging and programming of applications for STM32, STR9, STR7, ST7 and µpsd microcontrollers. In combination with Raisonance's free RFlasher programming software, RLink provides a very low cost, dedicated in-circuit programmer for ST microcontrollers. Figure 3. RLink-ST USB cable (1) 1.2 Software PC with Windows XP Promotional CD (hereafter referred to only as CD) (1) Provided with the package. IAR Embedded Workbench for ARM The IAR Embedded Workbench for ARM is an integrated development environment for building and debugging embedded applications. It provides extensive support for a wide range of ARM devices, hardware debug systems and RTOSs and generates very compact and efficient code. For further information, please visit: www.iar.com. Configuration and programming software (CAPS) tool for STR9 families (2)(3). The CAPS configuration tool allows you to easily configure the STR9 using simple drag-and-drop and point-and-click operations. CAPS also supports in-system programming through an external JTAG adapter, allowing fast in-system programming of the STR9 in both development and production environments. 5/20

Requirements UM0564 Installing CAPS Follow these procedures and the on-screen instructions to install CAPS: Download the compressed CAPS software from the web site Extract the contents of the.zip file into a temporary directory Double-click the extracted executable, setup.exe, to initiate the installation, and follow the on-screen prompts to install CAPS in the development environment. This executable installs all the necessary files and configures the PC environment for running CAPS. You may be prompted to restart your PC before running CAPS for the first time following the installation. CAPS installation includes a number of utilities. Documentation for the utilities is located in the subdirectory \Docs where CAPS is installed. For more information regarding the CAPS tool, please refer to user manual UM0225. STR91xFA firmware library (2) Please refer to user manual UM0233, which describes the STR91xFA peripheral firmware library: a collection of routines, data structures and macros that cover the features of each peripheral. DFU firmware (2)(3) Load the DFU firmware into the micro internal Flash memory using the desired toolchain. The DFU firmware is a part of the USB development kit and is available for download from the STMicroelectronics website: www.st.com. This firmware has been tested with IAR Embedded Workbench version 4.41A. DFU PC software - DfuSe demo (2)(3) The DfuSe demonstration user interface is designed to work with all STMicroelectronics devices that support USB device firmware upgrade. The installation software and the documentation are available for download from the ST web site: www.st.com. Software installation: Run the setup.exe file. The Installshield Wizard will guide you through the installation of the DfuSe applications and source code on your computer. The driver files are located in the Driver folder in the installation path (default: C:\Program Files\STMicroelectronics\DfuSe). Note: 1 Part of the STEVAL-IFD001V1 package. 2 Software is available on the CD. 3 Also available at www.st.com/mcu. 6/20

STR9 configuration - CAPS 2 STR9 configuration - CAPS This section explains how to configure the STR9 microcontroller for DFU firmware use. Ensure that your STR9 dongle is already configured, then follow these steps: Connect the dongle to the supply (e.g. connect to a USB port) Connect the RLINK-ST JTAG connector (ST link plugged into a USB of your PC) Run CAPS Create a new project for the STR912. Alternatively you can open an existing project from the CD Make sure "Secondary Flash" is selected, as this is the topic of the configuration Figure 4. CAPS - additional settings 7/20

STR9 configuration - CAPS UM0564 Flash the device by pressing the Execute button Figure 5. CAPS - program device 8/20

Flash the DFU project into the STR9 - IAR Embedded Workbench 3 Flash the DFU project into the STR9 - IAR Embedded Workbench This section explains how to flash the DFU firmware into your STR9 microcontroller. The STR9 dongle should already be pre-flashed with this firmware. Follow these steps: Connect IAR J-link to JTAG connector of the dongle Figure 6. Dongle programming Extract the DFU.zip file, which is located in the \sw directory of the CD Open the project: DFU\str91x demos\device Firmware Upgrade\project\EWARM\Device Firmware Upgrade.eww. Flash the software (enter into and leave it in debug mode) When complete, close the IAR Embedded Workbench tool and unplug the dongle 9/20

Create output for the DFU image - IAR Embedded Workbench UM0564 4 Create output for the DFU image - IAR Embedded Workbench This section explains how to create an output from. The output is going to be used for creation of the DFU image later. Follow these steps: The DFU uses remapping of memory by FMI, therefore you must comment all your FMI settings. Let's check the 91x_init.s file in your application. Create a79 output, set to raw-binary format as shown in Figure 7. Figure 7. IAR - linker settings You should have the a79 file into your \debug\exe directory. This file will be used later for the DFU image (refer to Chapter 5). 10/20

Create the DFU image - DFU file manager 5 Create the DFU image - DFU file manager Run the DFU file manger Figure 8. DFU file manager Click Multi BIN Figure 9. DFU file manager - generation 11/20

Create the DFU image - DFU file manager UM0564 Select the.a79 file generated by IAR Embedded Workbench and click Add to list (the address should be all zeros). Figure 10. Multi Bin injection Generate the DFU image by clicking on the Generate button (see Figure 9). Figure 11. DfuFileMgr You should have a.dfu file on your PC (e.g. webserver.dfu). 12/20

Firmware upgrade - download your application image 6 Firmware upgrade - download your application image Hold down button B81 on the dongle and plug the dongle into the USB port. When the DFU firmware starts, the red LED LD81 starts blinking. Run C:\Program Files\STMicroelectronics\DfuSe\BIN\DfuSeDemo.exe. Figure 12. DfuSe demo - initial screen 13/20

Firmware upgrade - download your application image UM0564 Put a check in the boxes next to: "Verify after download" and "Optimize Upgrade duration". Click "Choose button" and select your image. Once done, the message "File correctly loaded" should appear, as in figure Figure 13. Figure 13. DfuSe demo - select target 14/20

Firmware upgrade - download your application image Select the target in the Select Target section (see Figure 14) and click "Upgrade". The device will start to flash. Figure 14. DfuSe demo - upgrade process 15/20

Firmware upgrade - download your application image UM0564 You can click "Verify" at any time Figure 15. DfuSe demo - verify Your image is downloaded in the dongle. You can unplug the dongle and turn off the DfuSe software. 16/20

Running the downloaded application 7 Running the downloaded application To run your application, simply plug the STR9 dongle into a supply (e.g. a USB port), and the application will start automatically. 17/20

Troubleshooting UM0564 8 Troubleshooting If, after downloading your application into the dongle, the application doesn t run: Check the 91x_init.s file for the FMI configuration (it must be unused) Check your system clock settings, keeping in mind that the clock is already running and the situation is different with respect to a startup after hardware reset. In this case you should follow the correct order for register re-configuration. For the first approach you can comment this section and try your application without these settings. If it begins working, then the clock settings are the root cause of the failure. 18/20

Revision history 9 Revision history Table 1. Document revision history Date Revision Changes 10-Jul-2008 1 Initial release. 19/20

Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries ( ST ) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. 2008 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 20/20