TN0072 Technical note



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

AN3332 Application note

AN3354 Application note

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

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

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

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

AN3998 Application note

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

AN2389 Application note

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

AN3990 Application note

AN3265 Application note

AN2680 Application note

AN2557 Application note

AN4108 Application note

AN2824 Application note

AN2604 Application note

TN0023 Technical note

AN4156 Application note

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

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

DDSL01. Secondary protection for DSL lines. Features. Description

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

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

BD135 - BD136 BD139 - BD140

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

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

AN3110 Application note

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

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

ULN2001, ULN2002 ULN2003, ULN2004

AN3270 Application note

Order code Temperature range Package Packaging

ULN2801A, ULN2802A, ULN2803A, ULN2804A

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

AN3353 Application note

M24LRxx/CR95HF application software installation guide

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

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

AN2146 APPLICATION NOTE

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

AN3155 Application note

AN4128 Application note

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

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

AN974 APPLICATION NOTE

MC Low noise quad operational amplifier. Features. Description

AN3359 Application note

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

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

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

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

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

AN3252 Application note

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

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

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

L78MxxAB L78MxxAC. Precision 500 ma regulators. Features. Description

AN2866 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.

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

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

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

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

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

AN3969 Application note

L6234. Three phase motor driver. Features. Description

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

Description. Table 1. Device summary

AN2760 Application note

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

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

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

Figure 1. STM32F429 Discovery board: STM32F429I-DISCO

STP55NF06L STB55NF06L - STB55NF06L-1

Getting started with software and firmware environments for the STM32F0DISCOVERY kit

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

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

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

Obsolete Product(s) - Obsolete Product(s)

AN4368 Application note

AN2703 Application note

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

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

AN3997 Application note

TDA W CAR RADIO AUDIO AMPLIFIER

VN05N. High side smart power solid state relay PENTAWATT. Features. Description

AN886 APPLICATION NOTE

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

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

AN4296 Application note

AN1754 APPLICATION NOTE

AN3211 Application note

STCS1A. 1.5 A max constant current LED driver. Features. Applications. Description

STGB10NB37LZ STGP10NB37LZ

STM32F4DISCOVERY. Discovery kit with STM32F407VG MCU. Features. Description

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

TDA2004R W stereo amplifier for car radio. Features. Description

Transcription:

TN0072 Technical note Introduction The documentation provides an overview of the STM32 devices and various toolchains. It provides information on the STM32 characteristics and how they are supported. Many features of the STM32 devices such as the STM32 peripheral description, macro and script files, and the STM32 option bytes are described in comparative tables. This description concerns all the STM32 families and their derivatives. STM32 overview The STM32 family of 32-bit Flash microcontrollers incorporates the high-performance ARM Cortex -M3 32-bit RISC core, high-speed embedded memories (Flash memory up to 512 Kbytes and RAM up to 64 Kbytes), and an extensive range of enhanced I/Os and peripherals. The STM32 family benefits from the Cortex-M3 architectural enhancements including the Thumb-2 instruction set to deliver improved performance with better code density, significantly faster response to interrupts, all combined with industry leading minimal power consumption.iar, Hitex, Raisonance and Keil toolchains IAR, Hitex, Raisonance and Keil toolchains The following table provides a general information of the considered toolchains. Table 1. IAR, Hitex, Raisonance and Keil toolchains Toolchain Company Version Release date Hardware emulator Used Compiler EWARM (IAR embedded workbench for ARM) Ride (Raisonance integrated development environment) RVMDK (RealView microcontroller development kit) IAR Systems 5.20 July 2008 J-Link IAR C/C++ Hitex Development Tools 5.30.0014 October 2008 Tantino TASKING Raisonance 7.14.0001 October2008 RLink ARM-GCC Keil, an ARM Company 3.24 October 2008 ULINK ARMCC December 2008 Rev 2 1/11 www.st.com

Contents Contents 1 STM32 peripheral description................................. 3 2 Macro and script files........................................ 3 3 STM32 option bytes......................................... 4 4 STM32 Flash operations...................................... 5 4.1 Flash erase................................................. 5 4.2 STM32 Flash algorithm source files............................. 5 4.3 Flash breakpoints............................................ 6 5 STM32 serial wire view and STM32 serial wire debug.............. 7 6 Debug support for timers, watchdog, CAN and I 2 C................ 7 7 Connections................................................ 8 8 Output formats............................................. 9 9 RTOS plugins............................................... 9 10 Revision history........................................... 10 2/11

STM32 peripheral description 1 STM32 peripheral description Every toolchain provides specific windows and files that contain information about the device and allow to display and/or to modify the STM32 peripheral registers. Table 2. STM32 peripheral description Toolchain Command to display register window File path Possibility to add new peripheral description EWARM View > Register command from the toolbar. [install_directory]\iar Systems\ Embedded Workbench 5.0\ ARM\config\Debugger\ST Yes View > SFR Window command from the toolbar. [install_directory]\53- CTX\Tantino-Cortex\derivatives\ ST Microelectronics Yes Ride View >View Debug Explorer > peripheral command from the toolbar. [install_directory]\raisonance\ride\ Sim\ARM Yes RVMDK Peripheral command from the toolbar menu. Files will be available in next releases No 2 Macro and script files The script files are used to perform any settings/initialization which must be done before or after loading the application. Table 3. Toolchain Macro and script files Availability EWARM Ride RVMDK Available and executed before/after debug. Available and executed before/after debug. The script file may be assigned to toolbar button. Not available. Available and executed before/after debug. 3/11

STM32 option bytes 3 STM32 option bytes The option bytes are programmed differently than normal user addresses. The STM32 has the following option bytes: 4 for write protection, 1 for read-out protection, 1 for configuration, 2 for user data storage. They are programmed by the end user depending on the application requirements. Table 4. STM32 option bytes Toolchain Availability Command to display the option bytes EWARM Not available. Can be programmed via a script. All option bytes are available. View > SFR Window > FLASH Ride RVMDK The following option bytes are available: write protection, read-out protection, configuration. All option bytes are available. Project > Properties > RLink Configuration > Advanced Options Add the file which describes the option bytes (provided by Keil) to the project. 4/11

STM32 Flash operations 4 STM32 Flash operations In addition to the Flash programming, toolchains offer many other Flash operations. 4.1 Flash erase The Flash memory erase operation can be performed either at sector level or on the whole Flash area (full chip erase). The erase time varies from one toolchain to another and it depends on many factors, such as the JTAG frequency. Table 5. Flash erase Toolchain Full chip erase Sectors erase Command to display the erase menu EWARM Not available (1) Not available (1) Available via menu Available via menu Project settings > STM32flash > erase range Ride (2) Project > properties > RLink configuration > Advanced options > erase target now RVMDK Available via menu Available via menu Flash > erase 1. Erase is performed implicitly at each flash downlaod. 2. Ride provides also a command line application cortex_pgm.exe and a window interface Rflasher to insure Flash operations such as program, erase, verify, mass product and blank-check. 4.2 STM32 Flash algorithm source files An algorithm source file defines and adds Flash programming algorithms. It contains the function code for the necessary operations such as Erase Chip, Erase Block and Program Block and defines the device parameters. Table 6. STM32 Flash algorithm source files Toolchain Availability Path EWARM Available [install_directory]\iar Systems\Embedded Workbench 5.20\ARM\src\flashloader\ST Not available (1) [install_directory]\hitex\53-ctx\tantino-cortex\flash Ride Not available (1) [install_directory]\raisonance\ride\sim\arm RVMDK Available [install_directory]\keil\arm\flash 1. Only some device parameters such as flash size, sectors number are accessible. the flash algorithm file can be prvided on demand. 5/11

STM32 Flash operations 4.3 Flash breakpoints A breakpoint identifies a location in the program area of the target system. When it is reached, the program stops running and the emulation is halted. The STM32 has improved debugging and EWARM,, Ride and RVMDK all allow up to six hardware flash breakpoints. The breakpoint can be set when the run mode is enabled or disabled. 6/11

STM32 serial wire view and STM32 serial wire debug 5 STM32 serial wire view and STM32 serial wire debug The serial wire view (SWV) in combination with serial wire debug (SWD) provide advanced debugging features like execution trace, as well as the same execution control and debugging features that are possible using JTAG. The SWV feature is only supported when debugging in SWD mode. Table 7. STM32 serial wire viewer availability Toolchain Availability EWARM Available since J-Link 6.0 Ride Available since Tantino ARM only SWD is available RVMDK Available since ULINK 2 6 Debug support for timers, watchdog, CAN and I 2 C Timers During a breakpoint, it is necessary to choose how timer counters and watchdog behave: Timer counters can continue counting inside the breakpoint. This is usually required when a motor is controlled by a PWM output Timer counters can stop counting inside a breakpoint. This is required for watchdog purposes. CAN peripheral The user can choose to block the update of the receive register (RDR) during a breakpoint. I 2 C interface For the I 2 C, the user can choose to block the SMBUS timeout during a breakpoint. Table 8. Debug support for timers, watchdog, CAN and I 2 C Toolchains Timers debug support Watchdog debug support CAN debug support I 2 C debug support EWARM Available through a macro provided on demand Available through a macro provided on demand Available through a macro provided on demand Available through a macro provided on demand Available Project settings > processor settings > Debug MCU configuration Available Project settings > processor settings > Debug MCU configuration Available Project settings > processor settings > Debug MCU configuration Not available. Can be supported by macro. 7/11

Connections Table 8. Toolchains Debug support for timers, watchdog, CAN and I 2 C (continued) Timers debug support Watchdog debug support CAN debug support I 2 C debug support Ride Not available Not available Not available Not available RVMDK Available through the STM32DBG.ini macro located in [install_directory]\arm\ Boards\Keil\MCBSTM32 \STLib_Blinky Available through the STM32DBG.ini macro lacated in [install_directory]\arm\ Boards\Keil\MCBSTM32 \STLib_Blinky Available through the STM32DBG.ini macro located in [install_directory]\arm\ Boards\Keil\MCBSTM32 \STLib_Blinky Not available. Can be added by user in the STM32DBG.ini macro 7 Connections In order to satisfy the STM32 features (such as the capability of the debugger host to connect under reset), several options are provided when establishing the connection between the target and the toolchains. Table 9. Connection options Toolchain Connect + system reset (1) Connect after delay (2) Connect at different JTAG frequencies Connect under reset (3) EWARM Available Available Available Available Available Not available Available Not available Ride Available Not available Available Available RVMDK Available Not available Available Available 1. Connect + system reset: connect to the target with resetting the core and setting all the registers to their reset values 2. Connect after delay: the delay is between the end of the software reset and the halt of CPU. This feature is used, for example,to run an initialization code before halting the CPU. 3. Connect under reset: it is possible for the debugger to connect under System Reset, programming the Core Debug Registers to halt the core when fetching the reset vector. Then the host can release the system reset and the core will halt immediately without having executed any instructions. In addition, it is possible to program any debug features under System Reset. 8/11

Output formats 8 Output formats In addition to the default output format (.out for EWARM,.abs for,.elf for Ride and.axf for RVMDK), other (optional) output formats are supported: HEX: A.hex file (Intel HEX) is a text file, with each line containing hexadecimal values encoding a sequence of data and its starting offset or absolute address. There are three types of Intel HEX: 8-bit, 16-bit, and 32-bit. They are distinguished by their byte order. S19: An ASCII encoding format for binary data developed by Motorola. It consists of a series of ASCII records. Every record begins with the letter "S," followed by a "1" if the record contains data or a "9" if it is the last record in the file. ELF: (executable and linkable file) is a standard for object modules, libraries, executables, and core files. Each ELF file is made up of one ELF header, followed by file data. The data file is composed from segment and sections. The segments contain information that is necessary for runtime execution of the file, while sections contain important data for linking and relocation. Table 10. Output formats Toolchain HEX S19 ELF EWARM Yes Yes Yes Yes Yes Yes Ride Yes No Yes RVMDK Yes No Yes 9 RTOS plugins This option allows the use of a real-time operating system (RTOS) in the application. The debugger RTOS awarness plugin modules give the user a high level of control and visibility over an application built on top of a real time operating sysstem. It displays RTOS-specific items like task lists, queues, semaphores, mailboxes and various RTOS system variables The following table describes how and which RTOS is supported by every toolchain. Table 11. RTOS plugins Toolchain Availability Available RTOSs EWARM Available RTXC, IAR PowerPac, uc/os-ii, Segger embos, CMX... Available (1) AMX, Nucleus Plus, RCX, PxROS, ThreadX... Ride Not available RVMDK Available RTX, RTX166 Tiny ThreadX 1. An additional license (which can be purchased from Hitex) is needed. 9/11

Revision history 10 Revision history Table 12. Document revision history Date Revision Changes 18-Nov-2008 1 Initial release. 05-Dec-2008 2 Added Section 6: Debug support for timers, watchdog, CAN and I 2 C. 10/11

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 11/11