AN2146 APPLICATION NOTE



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

AN3354 Application note

AN974 APPLICATION NOTE

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

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

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

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

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

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

AN1754 APPLICATION NOTE

AN438 APPLICATION NOTE SAFETY PRECAUTIONS FOR DEVELOPMENT TOOL TRIAC + MICROCONTROLLER

AN886 APPLICATION NOTE

AN820 APPLICATION NOTE INPUT/OUTPUT PROTECTION FOR AUTOMOTIVE COMPUTER

AN4108 Application note

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

M24LRxx/CR95HF application software installation guide

AN2557 Application note

AN3265 Application note

AN3332 Application note

AN4156 Application note

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

AN2680 Application note

UM0109 USER MANUAL. Public Transport Ticketing Demo

AN2389 Application note

AN3998 Application note

AN4128 Application note

TDA2822 DUAL POWER AMPLIFIER SUPPLY VOLTAGE DOWN TO 3 V LOW CROSSOVER DISTORSION LOW QUIESCENT CURRENT BRIDGE OR STEREO CONFIGURATION

AN2604 Application note

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

DDSL01. Secondary protection for DSL lines. Features. Description

AN3990 Application note

TN0023 Technical note

ULN2801A, ULN2802A, ULN2803A, ULN2804A

HCF4010B HEX BUFFER/CONVERTER (NON INVERTING)

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

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

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

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

AN3155 Application note

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

STW34NB20 N-CHANNEL 200V Ω - 34A TO-247 PowerMESH MOSFET

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

L4940 series VERY LOW DROP 1.5 A REGULATORS

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

TN0072 Technical note

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

AN3110 Application note

Agilent N5970A Interactive Functional Test Software: Installation and Getting Started

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

HCF4001B QUAD 2-INPUT NOR GATE

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

AN3252 Application note

TDA CHANNEL VOLUME CONTROLLER 1 FEATURES 2 DESCRIPTION. Figure 1. Package

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

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

Description. Table 1. Device summary

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

Installation Guide E Dielectric Probe Kit 85071E Materials Measurement Software

ULN2001, ULN2002 ULN2003, ULN2004

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

AN3353 Application note

BD135 - BD136 BD139 - BD140

HANDLING SUSPEND MODE ON A USB MOUSE

AN2760 Application note

ST202 5V POWERED MULTI-CHANNEL RS-232 DRIVERS AND RECEIVERS

LM833 LOW NOISE DUAL OPERATIONAL AMPLIFIER

Updating the QIAcube operating software

STGW40NC60V N-CHANNEL 50A - 600V - TO-247 Very Fast PowerMESH IGBT

STP62NS04Z N-CHANNEL CLAMPED 12.5mΩ - 62A TO-220 FULLY PROTECTED MESH OVERLAY MOSFET

AN1826 APPLICATION NOTE TRANSIENT PROTECTION SOLUTIONS: Transil diode versus Varistor

Table of Contents. ARM Evaluation Board (AEB-1) Welcome Guide ARM DGI 0005D. Proprietary Notice

HCF4056B BCD TO 7 SEGMENT DECODER /DRIVER WITH STROBED LATCH FUNCTION

HCF4028B BCD TO DECIMAL DECODER

AN3270 Application note

AN2824 Application note

Configuring DHCP for ShoreTel IP Phones

Release Notes: PowerChute plus for Windows 95 and Windows 98

AN2866 Application note

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

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

HCF4081B QUAD 2 INPUT AND GATE

TDA4605 CONTROL CIRCUIT FOR SWITCH MODE POWER SUPPLIES USING MOS TRANSISTORS

L78MxxAB L78MxxAC. Precision 500 ma regulators. Features. Description

Integrating CaliberRM with Software Configuration Management Tools

LF00AB/C SERIES VERY LOW DROP VOLTAGE REGULATORS WITH INHIBIT

Order code Temperature range Package Packaging

STW20NM50 N-CHANNEL Tjmax Ω - 20ATO-247 MDmesh MOSFET

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

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

Project Manager Editor & Debugger

AT-S39 Version 1.3 Management Software for the AT-8024 and AT-8024GB Fast Ethernet Switches. Software Release Notes

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

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

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

STP80NF55-08 STB80NF55-08 STB80NF N-CHANNEL 55V Ω - 80A D2PAK/I2PAK/TO-220 STripFET II POWER MOSFET

Prisma II Software Upgrade Program (SOUP) Installation Guide

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

Get the benefits of Norgren s unique range of Online services

L6234. Three phase motor driver. Features. Description

Transcription:

AN2146 APPLICATION NOTE STR71xF Embedded Flash Programming with ADS INTRODUCTION The purpose of this application note is to provide ARM Developer Suite (ADS) users with information to help them program binary files to Flash memory using the software s Flash downloader utility. This document provides step-by-step instructions for converting an application in ELF format to simple binary format and then downloading the resulting binary to the internal Flash memory of the STR71xF microcontroller on a target application board. Necessary software and hardware tools ARM Developer Suite version 1.2, a complete software development solution for creating applications for ARM core-based microcontrollers that includes the AXD debugger. Flash downloader (flash.li) for STR71xF, the modified version of the default Flash downloader, included with this application note, which allows the identification and programming of STR71xF devices. The default integrator version of the Flash downloader that is used to program other standard CFItype Flash devices is furnished in binary format in the directory: install_directory\ads\bin\flash.li. You may want to keep a copy of the default version of flash.li in another directory or with another name if you work with devices other than the STR71xF. STR710 Evaluation Board (STR710-EVAL) or other evaluation/application board featuring an STR71xF microcontroller. ARM MULTI-ICE server and interface unit (JTAG standard interface) It is also possible to use ARM Angel Debug Monitor (running from RAM) and a serial or parallel connection to the host PC. For more information about Angel, refer to the ARM Software Development Toolkit User Guide. 1 Overview of Flash programming with ADS When you invoke the Flash downloader utility (flash.li) from the AXD debugger, the debugger downloads this utility into RAM on the target board. The microcontroller then executes the Flash programming routine, retrieving the binary file from the host PC and then programming it to Flash memory. The Flash downloader utility (flash.li) provided with this application note has been adapted by ST Microelectronics to allow programming of STR71xF microcontrollers. This modified version must be used when programming your STR71xF device, instead of the default integrator version of the Flash downloader that is provided with ADS. REV. 1 May 2005 1/6

2 Programming procedure The following section takes you step by step through the process of downloading a binary file to Flash memory. The STR710-Eval board is used as an example to illustrate the hardware set up, however the same fundamental procedure can be applied to other application/evaluation boards featuring ST ARM core-based microcontrollers. The example in this procedure also refers to ARM Multi-ICE, however it is possible to use the ARM Angel Debug Monitor. For more information refer to the ARM Software Development Toolkit User Guide. 2.1 Converting ELF image file into plain binary format The file that you will program to internal Flash must be in plain binary format suitable for direct download into Flash memory. You can convert your image files in Executable Linkable Format (ELF) to plain binary format using the fromelf utility. To convert an ELF file to a binary (.bin) file, invoke the fromelf utility using the command line as shown below: fromelf -bin -o outfile.bin infile.axf -bin: specifies the output file format -o outfile.bin: specifies the name of the output file infile.axf: specifies the ELF file to be translated For a detailed explanation of the fromelf command line and options, you can refer to the ARM Developer Suite Linker and Utilities Guide. 2.2 Configuring and connecting to hardware The target board should be configured to boot from RAM prior to invoking the Flash downloader utility. This is to ensure that the memory where the Flash programming routine will be downloaded is mapped to RAM. If you are using the STR710-Eval board, configure the boot mode as follows: 1 Configure switches SW13, SW14 and SW15 to RAM Mode (RAM mapped at 0h). Table 1: STR710-EVAL switch configuration Switch Description Position SW13 Boot mode 1: 2-3 SW14 Boot mode 0: Execute code from internal RAM 1-2 RAM mapped at 0h SW15 Boot mode EN: 2-3 You can refer to STR710-Eval Board Datasheet for detailed descriptions of switch positions and boot modes. 2 Connect the target board to your host PC via the Multi-ICE interface device and power on your target board. 2/6

3 Start the Multi-ICE server and select File>Auto Configure. Multi-ICE server connects to and identifies the target. Once the target is identified, the window will be similar to that shown in Figure 1. Figure 1: Multi-ICE server connected to target board If Multi-ICE server cannot identify the target you will have to do a manual configuration. Refer to the ARM Multi-ICE User Guide. 2.3 Using the Flash downloader from AXD Once you have connected to the target you can launch AXD and run the Flash Downloader utility. From the AXD interface, you can now invoke the Flash downloader utility and download your binary file to the target. To do so: 1 Copy the furnished flash.li file for STR71xF devices to the directory Install_directory\ADS\bin 2 Start AXD. 3 In AXD select File>Flash Download The Flash DownLoad dialog box is displayed (see Figure 2) Figure 2: Flash DownLoad dialog box 3/6

4 Specify the pathname for your binary file, or click Browse to select the file. If the path name contains spaces you must enclose the pathname in quotes. 5 Click OK. The Flash downloader reads your binary file and displays the download settings in the Console processor view. 6 You can edit the settings if required, or press Enter. AXD will display a message when the data has been written to flash (see Figure 3). Figure 3: Successful download to Flash memory The Flash downloader lets you choose the start sector to write in. If you choose a start sector other than zero, your image will be loaded in the specified sector, but when you boot from the on chip Flash memory you will not see your program running. 7 If you downloaded your program at starting sector 0, then change the switch positions to boot from Flash memory (see Table 2) and reboot, you can see your program running. Table 2: STR710-EVAL switch configuration Switch Description Position SW13 Boot mode 1: 1-2 SW14 Boot mode 0: System executes a primary boot loader (ST-firmware) from Boot-FLASH then jumps to RAM 2-3 SW15 Boot mode EN: BOOTFLASH mapped at 0h 2-3 4/6

3 For further information... All the latest news, documentation and software downloads for STR7 microcontrollers and development tools can be found at www.st.com/mcu. If you require further information about this procedure or the ARM tools or utilities referred to in this document, you can download the following supporting documents at www.arm.com: ARM Application Note 111 Flash Programming ARM Developer Suite Linker and Utilities Guide ARM Multi-ICE User Guide ARM Software Development Toolkit User Guide 4 Revision History Table 3: AN2146 Revision History Date Revision Description 01-May-2005 1.0 Initial release 5/6

The present note which is for guidance only, aims at providing customers with information regarding their products in order for them to save time. As a result, STMicroelectronics shall not be held liable for any direct, indirect or consequential damages with respect to any claims arising from the content of such a note and/or the use made by customers of the information contained herein in connection with their products. Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners 2005 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 6/6