Home

User manual - STMicroelectronics

image

Contents

1. 11 5 1 Building an existing EWARM project 11 92 Debugging and running your EWARM project 12 5 3 Creating your first application using the EWARM toolchain 14 5 3 1 Managing source files lle 14 5 3 2 Configuring project options llle 16 6 Using MDK ARM Microcontroller Development Kit by Keil M 20 6 1 Building an existing MDK ARM project 20 6 2 Debugging and running your MDK ARM project 21 6 3 Creating your first application using the MDK ARM toolchain 23 6 3 1 Managing source files llle 23 6 3 2 Configuring project options 25 7 Using Atollic TrueSTUDIOO 0 ce ee 28 7 1 Building an existing TrueSTUDIO project 28 2 46 Doc ID 022896 Rev 1 ky UM1523 Contents 7 2 Debugging and running your TrueSTUDIO project 31 7 3 Creating your first application using TrueSTUDIO toolchain 32 Using TASKING 1 uk oma ki ee 01 2 ERR CR RR CREE Dee KAKA 36 8 1 Building an existing TASKING project 36 8 2 Debugging and running your TASKING project 40 8 3 Creating your first application using TASKING toolchain 41 Revisi n history 2 2cdece ced dase wea e mar uere eR E PCR CE XX AS a a 45 Doc ID 022896 Rev 1 3 4
2. Each click on the USER push button is confirmed by blue LED4 UM1523 2 2 1 21 1 Description of the firmware package Description of the firmware package The STM32FODISCOVERY firmware applications are provided in one single package and supplied in one single zip file The extraction of the zip file generates one folder STMS2FO Discovery FW VX Y Z which contains the following subfolders Figure 2 Hardware environment zi 3 SIM32F Discoaverv Fw NGAY Z E htmresc E Libraries Lj CMSIS E STM32F0xx_5tdPeriph_Driver ic inc O src D Project y Demonstration CG Master Workspace C Peripheral Examples it utilities Lj 5TM32F0 Discovery 1 VX Y Z refer to the package version ex V1 0 0 Libraries folder This folder contains the Hardware Abstraction Layer HAL for STM32FOxx devices CMSIS subfolder This subfolder contains the STM32FOxx and Cortex MO CMSIS files Cortex MO CMSIS files consist of e Core Peripheral Access Layer contains name definitions address definitions and helper functions to access Cortex MO core registers and peripherals It defines also a device independent interface for RTOS Kernels that includes debug channel definitions STMS32FO0xx CMSIS files consist of e stm32f0xx h contains the definitions of all peripheral registers bits and memory mapping for STM32FO0xx devices The file is the unique include file used in the application programmer C source code usu
3. UM1523 Using IAR Embedded Workbench for ARM 10 Select the ST Link category open the ST Link tab and select SWD as the connection protocol as shown in Figure 2f Figure 21 ST Link communication protocol Assembler Output Converter Custom Build Build Actions Linker Debugger Simulator ST Link Interface JTAG piss CC WO SDB Server TAR ROM monibor J Link J Trace LMI FTDI Macraigor RDI 11 Click OK to save the project settings 12 To build your project follow the instructions given in Section 5 1 Building an existing EWARM project on page 1 f 13 Before running your application establish the connection with the STMS2FODISCOVERY board as described in Section 1 Getting started 14 To program the Flash memory and begin debugging follow the instructions given in Section 5 2 Debugging and running your EWARM project on page 12 ky Doc ID 022896 Rev 1 19 46 Using MDK ARM Microcontroller Development Kit by Keil UM1523 6 Using MDK ARM Microcontroller Development Kit by Keil 6 1 Building an existing MDK ARM project Follow these steps to build an existing MDK ARM project 1 Open the MDK ARM uVision4 IDE debugger and simulation environment Figure 22 MDK ARM pVision4 IDE environment shows the basic names of the windows referred to in this section Figure 22 MDK ARM pVision4 IDE environment s vCS Window Help EE EE JE di e Project Window Output Window 2 I
4. 2 Browse to select the STM32FODISCOVERY Demonstration TrueSTUDIO workspace and click OK to save your settings and to display the Welcome screen To start using Atollic TrueSTUDIO click Start using TrueSTUDIO Figure 37 Atollic TrueSTUDIO STM32 Lite welcome screen r m Cpe sinter TrueSTUDICHE IS TM Line fis Dom lm Resio Krai awch Lite version Click here to continue 3 The TrueSTUDIO Discovery workspace contains a demo project for the STMS32FODISCOVERY kit To load this project select Import in the File menu to display the Import dialog box 28 46 Doc ID 022896 Rev 1 ky UM1523 Using Atollic TrueSTUDIO 4 Inthe Import window open General select Existing Projects into Workspace and click Next Figure 38 Atollic TrueSTUDIO STM32 Lite import source select dialog box Import Select Create new projects From an archive File or directory Select an import source tvpefitertext id General E Archive File fi Existing Projects into Workspace CJ File System E Preferences 2104 4 Run Debug LS Team Doc ID 022896 Rev 1 29 46 Using Atollic TrueSTUDIO UM1523 5 Click Select root directory browse to the TrueSTUDIO workspace folder and select the STM32F0 Discovery project Figure 39 Atollic TrueSTUDIO STM32 Lite import projects dialog box 8 import Import Projects Select a directory to search for existin
5. Messages 2 Inthe File menu select Open and click Workspace to display the Open Workspace dialog box Browse to select the demonstration workspace file and click Open to launch itin the Project window 3 Inthe Project menu select Rebuild All to compile your project Using IAR Embedded Workbench for ARM UM1523 4 f your project is successfully compiled the following window in Figure 4 is displayed Figure 4 EWARM project successfully compiled Messages Errors none Warnings nane Link time 0 05 CPU 0 03 elapsed Total number of errors D Total number of warnings 0 5 2 Debugging and running your EWARM project In the IAR Embedded Workbench IDE from the Project menu select Download and Debug or alternatively click the Download and Debug button the in toolbar to program the Flash memory and begin debugging Figure 5 Download and Debug button T x Download and Debug The debugger in the IAR Embedded Workbench can be used to debug source code at C and assembly levels set breakpoints monitor individual variables and watch events during the code execution 12 46 Doc ID 022896 Rev 1 ky UM1523 Using IAR Embedded Workbench for ARM Figure 6 IAR Embedded Workbench debugger screen F STM32F0 Discovery Demo IAR Embedded Workbench IDE File Edit View Project Debug Disassembly ST LINK Tools Window Help Dg EN e b i2 BP PN EUH 90 stm32FOxx itih system stm32fOxx c main h s
6. cr UM1523 VI User manual Getting started with software and firmware environments for the March 2012 STM32FODISCOVERY kit Introduction This document describes the software firmware environment and development recommendations required to build an application around the STM32FODISCOVERY board It presents the firmware applications package provided within this board with details on its architecture and contents It provides guidelines to novice users on how to build and run a sample application and allows them to create and build their own application This document is structured as follows m System requirements to use this board and how to run the built in demonstration are provided in Section 1 Getting started Section 2 describes the firmware applications package m Section 4 presents development toolchain installation and overview of ST LINK V2 interface m Section 5 Section 6 Section 7 and Section 8introduce how to use the following software development toolchains AR Embedded Workbench for ARM EWARM by IAR Systems Microcontroller Development Kit for ARM MDK ARM by Keil TrueSTUDIO by Atollic TASKING VX toolset for ARM Cortex by Altium Although this user manual cannot cover all the topics relevant to software development environments it demonstrates the first basic steps necessary to get started with the compilers debuggers Table 1 lists the microcontrollers and development tools concerned by
7. ENABLE a k TE 22 46 Address 0420000000 Facal Stack locals 00000000 04030201 00000000 O0000000 00000000 O0000000 00000000 00000000 00000000 09080706 00000000 00000000 00000000 00000000 00000000 00000000 D0000000 20010800 D0000000 D0000000 D0000000 D0000000 O0000000 D0000000 00000000 20011000 00000000 O0000000 00000000 O0000000 00000000 O0000000 ST Link Debugger ITE 00000000 20011000 00000000 00000000 00000000 00000000 00000000 00000000 O16E3600 00000000 00000000 00000000 00000000 O0000000 00000000 O0000000 Doc ID 022896 Rev 1 00000000 OD000000 00000000 OD000000 00000000 OD000000 00000000 OD000000 00000000 00000000 00000000 O0000000 00000000 O0000000 00000000 O0000000 x UM1523 6 3 6 3 1 Note Using MDK ARM Microcontroller Development Kit by Keil Creating your first application using the MDK ARM toolchain Managing source files Follow these steps to manage source files 1 In the Project menu select New pVision Project to display the Create Project File dialog box Name the new project and click Save Figure 26 Creating a new project Project Flash Debug Peripherals N EE Mew Multi Project Workspace Open Project Export Manage 2 When anew project is saved the IDE displays the Device selection dialog box Select the device used for testing In this example we use the ST Microelectroni
8. J Cancel Defaults 8 Inthe Project menu select Build Target 9 f your project is successfully built the following window is displayed 26 46 Doc ID 022896 Rev 1 UM1523 Using MDK ARM Microcontroller Development Kit by Keil Figure 35 MDK ARM pVision4 project successfully built Build Output Build target Target 1 linking Program Size Code 344 Ro data 42 08 RW data zlI data 18653z WewProjeect axf O Erroris O Warnindqisri 10 Before running your application establish the connection with the STM32FODISCOVERY board as described in Section 1 Getting started 11 To program the Flash memory and begin debugging follow the instructions given in Section 5 2 Debugging and running your EWARM project on page 12 Doc ID 022896 Rev 1 27146 Using Atollic TrueSTUDIO UM1523 7 Using Atollic TrueSTUDIOG 7 1 Building an existing TrueSTUDIO project 1 Open the TrueSTUDIOG STM32 product folder and select the Atollic TrueSTUDIO STM32 product name The program launches and asks for the Workspace location Figure 36 TrueSTUDIO workspace launcher dialog box Workspace Launcher Select a workspace Atollic TrueSTUDIO For STMicroelectronics STM32 Lite stores your projects in a Folder called a workspace Choose a workspace folder to use For this session Workspace C STM32F0_Discovery FIRMWARE Project Demonstration TrueSTUDIO i Browse b Copy Settings fan
9. ST STM32F0xx Figure 14 General options gt Target tab Options for node 5TM32F 0 Discovery Demo Category General Options CC Compiler Assembler Output Converter Custom Build Build Actions Linker Debugger Core Simulator Processor variant Angel e Device ST STM 32F 05x Actel GOB Server TAR ROM monitor J Link J Trace TI Stellaris Macraigor Little PE micra Q Big RDI JTAGjet ST LINE Third Party Driver TI 05100 Endian mode 16 46 Doc ID 022896 Rev 1 Target Output Library Configuration Library Options MISRA C 200 Mane AnalogDevices Atmel Cirrus EnergyMicra Epson Faraday Freescale Fujitsu Hilscher Holter Intel Marvell OK Micronas MetSilicon Muvoton MaF OKI ONSemiconductor Samsung Socle TexasInstruments Toshiba k k k k k k k k k F k k k k k k k k k k La k k ST SPEAr3 ST SPEAr31 ST SPEAr3zl ST 5PESr600 ST STMS2F05xxx ST STM32F 100x4 ST STM32F 100x6 ST STM32F100x6 ST STM32F 100x6 ST STM32F 10020 ST STM32F 10020 ST STM 32F 100xE ST 51M32F105x8 ST STM32F105xE ST STM32F 10520 ST STM32F 107 xB ST STM32F 10720 ST STM32F 10xx4 ST 51M32F10xx6 ST 51 M32F10xx8 ST 51 M32F10xx6 ST STM 32F 10x ST STM32F 10x20 ST STM32F 10xxE ST STM32F 10xxF ST STM32F10xx ST 51M32F205rx ST 51M32Fz205vz ST STM32F2052x ST STH32F207 xx ST STM32F215rx ST STM32F2 152 ST STM32F217xx ST STM32F4 xxx ST STM32L151 x6 ST
10. Then click Settings and select the SWD protocol Click OK to save the ST Link setup settings 4 Select Run to main Doc ID 022896 Rev 1 25 46 Using MDK ARM Microcontroller Development Kit by Keil UM1523 Figure 33 Target Options dialog box Debug tab n Linker Gebu Utities Linker Utilities i Use ADI Interface Driver Settings Use ST Link Debugger xl ULINK Cortes Debugger ADI Interface Driver M Load ius B TEE Cortes Debugger i M Load Application at Startup v Pun to main ellaris Initialization File ST Link Debugger AA orbex M4H J LINKA T race STLink Setup E Edit i ULINK Fra Cortex Debug ger Cancel 5 Open the Utilities tab select Use Target Driver for Flash Programming and select the ST Link Debugger from the drop down menu 6 Verify that the Update Target before Debugging option is selected 7 Click OK to save your settings Figure 34 Target Options dialog box Utilities tab Options for Target Target 1 Device Target Dutput Listing User C C Asm Linker Debug Configure Flash Menu Command use Target Driver for Flash Programming ULINK Cortes Debugger Settings ai pdate Target before Debugging _ oy ULINE Cortes Debugger FT MU Init File RDI Interface Driver j Edit Stellaris ICDI Signum Systeme JTAGjet C Use Exter 5T Link Debugger Command E EEMZH PARA Trace Arguments Runlnde pendent MM
11. Workspace c iNewWarkspace np Use this as the default and do not ask again 2 When TASKING displays its Welcome window click Go to workbench to open the main window In the File menu select New gt TASKING VX toolset for ARM C C Project 3 Inthe New C C Project dialog box enter the new Project name then in the Project type box select TASKING ARM Application and click Next Figure 55 TASKING New C C Project dialog box a New CfC Project C C Project Create a new Chile project for the TASKING k toolset For ARM Lise default location Project type TASKING ARI Apolicakio T Helo Word C Project Helo World C Project DI TASKING ARM Library LI TASKING ARM MIL Library Doc ID 022896 Rev 1 41 46 Using TASKING 4 UM1523 From the list of supported devices select STMicroelectronics gt STM32F051 gt STM32F0518R8 as shown below in Figure 56 Figure 56 Processor selection Processor selection apse expand Al ia Te 57 Meroeledronies 7 bil SIRE a 8 sTP3zF 123 gm jsmssiaz x 5MFUI id a s 151x127 g 514221151 a p 514681152 E amis ix 15x 227 a smurais m amp TMszF217 ig 15 Teram To configure the project for Manta DISCOVERY board select Debug Debug configurations and choose STMicroelectronics STM32F0 Stingray Discovery Kit Choosing STMicroelectronics STM32F0 Stingray Discovery Kit as the evaluation board will add aut
12. do not ask again 2 Browse to select the STM32FODISCOVERY Demonstration TASKING workspace and click OK to save your settings and to display the Welcome screen To start using TASKING click Go to the workbench Figure 49 TASKING VX Toolset for ARM Cortex welcome screen TASANG C TASKING VE boleti Tor ARM Despex v1 Zr TASKING 36 46 Doc ID 022896 Rev 1 ky UM1523 Using TASKING 3 The TASKING Discovery workspace contains a demo project for the STM32FODISCOVERY kit To load this project select Import in the File menu to display the Import dialog box 4 Inthe Import window open General select Existing Projects into Workspace and click Next Figure 50 TASKING import source select dialog box Import Select Create new projects From an archive File or directory Select an import source Ea E S General Archive File Existing Projects into Workspace foal File System EL Preferences Hu CiC 4 Hu CVS HL RunjDebug E i TASKING CJC4 th Team Doc ID 022896 Rev 1 37 46 Using TASKING UM1523 5 Click Select root directory browse to the TASKING workspace folder and select the STM32F0 Discovery project Figure 51 TASKING import projects dialog box import Import Projects Select a directory ko search for existing Eclipse projects Co Select root directory CS Stingray_Discovery_BitFIRMDWA Browse 2 Select archive ffe Projects I STM32F0_ Discovery Ki O tingray D
13. f 4 Fu M Name Value Core E f ncc Cocks 5v 5CLIK l TASKING Rusgisters C em BI X JI KG STMS2F0 Deceveny Demo TASA P TASANG Debugger 9115111 Hi Oxf a Thead LLARM Sus Ox40023500 2 main main c 700 13 Ox BOCES Leb tl zm d hara ret i BEJE Oxf Fh 7C Ek TASKING DEsssemhly Hi gt Address Crc bOns 78 D Console EL ti Tasks Sat F i mg rm I CA Deoug 5TMGzFO D covery Demo z L3 pt ger Copyright 2006 2011 Altium EV A ARH debug instrument is running in tris Loading application Ci Documents and 3 The debugger in TASKING can be used to debug source code at C and assembly levels set breakpoints monitor individual variables and watch events during the code execution To run your application from the Run menu select Resume or alternatively click the Resume button in the toolbar x 40 46 Doc ID 022896 Rev 1 UM1523 8 3 Using TASKING Creating your first application using TASKING toolchain The debug session is launched as follows 1 Open TASKING VX Toolset for ARM Cortex The program launches and asks for the Workspace location Browse to select an existing workspace or enter a new workspace location and click OK to confirm Figure 54 TASKING Workspace Launcher dialog box Workspace Launcher Select a workspace TASKING VX koolset For ARM Cortex v3 zr1 stores your projects in a Folder called a workspace Choose a workspace Folder to use For this session
14. the C C Compiler category open the Preprocessor tab and specify their paths as shown in Figure 18 The path of the include directory is a relative path and always starts with the project directory location referenced by SPROJ DIRS Figure 18 C C Compiler gt Preprocessor tab CIC4 Compiler Assembler Output Converter Language Code Optimizations Dutput List Preprocessor D sai Custom Build Build Actions C Ignore standard include directories TODLKIT DIR MINEN Linker Debugger Additional include directories one per line Simulator Angel GDB Server TAP ROM monitor 8 Toset up the ST Link embedded debug tool interface select the Debugger category open the Setup tab and from the drop down Driver menu select ST Link as shown in Figure 19 Figure 19 Debugger gt Setup tab Assembler EE Output Converter Setup Download Images Extra Options Plugins Custom Build Build Actions i Run to Linker Cc oie J main Debugger Simulator Setup macros Angel Use macro file s GDB Server ie nae ae 9 Open the Debugger tab and select Use flash loader s as shown in Figure 20 Figure 20 Select Flash loaders Output Converter Setup Download Images Extra Options Plugins Custom Build Build Actions inke Verify download Attach to program C Suppress download Use flash loader sr GDB Server C Override default board file Debugger 18 46 Doc ID 022896 Rev 1
15. this application note Table 1 Applicable products and tools Applicable products Microcontrollers STM32 FO series Entry level Cortex V MO microcontrollers Development tools STM32FODISCOVERY evaluation board and discovery kit Reference documents STM32FODISCOVERY high performance discovery board data brief STM32FODISCOVERY peripherals firmware examples AN4062 STM32F0xx reference manual RM0091 STM32F05 1x4 STM32F051x6 STM32F051x8 datasheet E E E E The above documents are available at www st com stm32f0 discovery Doc ID 022896 Rev 1 1 46 www st com Contents UM1523 Contents 1 CULPRIT 6 1 1 System requirements eee ee eens 6 1 2 Running the built in demonstration 6 2 Description of the firmware package 7 2 1 Libraries folder llli 7 2 1 1 CMSIS subfolder res 7 2 1 2 STM32F0xx StdPeriph Driver subfolder 8 2 2 Project folder 8 2 2 1 Demonstration subfolder 0 eee ees 8 2 2 2 Master Workspace subfolder 8 2 2 3 Peripheral Examples subfolder 8 2 3 Utilities folder AA 8 3 Binary images for reprogramming firmware applications 9 4 ST LINK V2 installation and development 10 5 Using IAR Embedded Workbench for ARM
16. 6 List of figures UM1523 List of figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 Figure 21 Figure 22 Figure 23 Figure 24 Figure 25 Figure 26 Figure 27 Figure 28 Figure 29 Figure 30 Figure 31 Figure 32 Figure 33 Figure 34 Figure 35 Figure 36 Figure 37 Figure 38 Figure 39 Figure 40 Figure 41 Figure 42 Figure 43 Figure 44 Figure 45 Figure 46 Figure 47 Figure 48 4 46 Hardware environment BABA BK ani bic den NG AG PCR NANA 2 GER 6 Hardware environment a 7 IAR Embedded Workbench IDE Integrated Design Environment 11 EWARM project successfully compiled aaa 12 Download and Debug button sesk eee eens 12 IAR Embedded Workbench debugger screen 00 eee 13 Colonne PP 13 Create New Project dialog box rs 14 Jalz lu o P e 14 man example foss dus 5S cued pA NENITA REAL AD IMUBALEG ATA GANA PE DICERES 15 Adding files to a project Aa 15 New project file tree structure lille 15 Configuring project options rs 16 General options gt Targettab aa 16 Kg CON m a ote at msc il ws K
17. 8000943 08000945 08000947 08000020 08000949 0800094b 0800094d 0800094f 08000050 08000951 00000000 08000953 00000000 O80000c0 22004947 7008700a 43104770 47706008 v pos 08000003 NUM ovR BE To run your application from the Debug menu select Go Alternatively click the Go button in the toolbar to run your application Figure 7 Go button ky Doc ID 022896 Rev 1 13 46 Using IAR Embedded Workbench for ARM UM1523 5 3 Creating your first application using the EWARM toolchain 5 3 1 Managing source files Follow these steps to manage source files 1 In the Project menu select Create New Project and click OK to save your settings Figure 8 Create New Project dialog box Create New Project Tool chain Project templates o gt Empty project E asm G C sc Externally built executable Description Creates an empty project 2 Name the project for example NewProject ewp and click Save to display the IDE interface Figure 9 IDE interface F IAR Embedded Workbench IDE MBR File Edit View Project Simulator Tools Window Help CJ NewProje NewProject Messages Configuration is up to date p amp xd ES Build Debug Log To create a new source file in the File menu open New and select File to open an empty editor window where you can enter your source code we DooDogzeaeRevi A UM1523 Using IAR Embedded Workbench for ARM The
18. ARA ap ard ae ea a ar a verge ee a ee eae 17 Linker configuration file editor dialog box gt Vector Table tab 17 Linker configuration file editor dialog box gt Memory Regions tab 17 C C Compiler gt Preprocessor tab nunnana ccc ee ee eee 18 Debugger gt Setup tab eee eee eens 18 Select Flash loaderS ents Sere gona eR NESPe SES ts 18 ST Link communication protocol eee eae 19 MDK ARM uVision4 IDE environment 0 0 0 ees 20 Build Output MDK ARM pVision4 project successfully compiled 21 Starting an MDK ARM pVision4 debugging session ee 21 MDK ARM IDE workspace aa 22 Creating a new projeCt rakan teen ae 23 Device selection dialog box a 23 Copy the STM32 Startup Code dialog DOX kaa 23 mainc example TIIG AA 24 Adding Source TOS s Pena de KER de ho ea PARA AA GAN ene een ALAPAN NAG heen NG 24 New project file tree structure eee 24 Target Options dialog box Targettab 25 Target Options dialog box Debug tab a 26 Target Options dialog box Utilities tab sa 26 MDK ARM uVision4 project successfully built 27 TrueSTUDIO workspace launcher dialog box ees 28 Atollic TrueSTUDI
19. IAR Embedded Workbench enables C color syntax highlighting when you save your file using the dialog File Save As under a filename with the c extension In Figure 10 main c example file the file is saved as main c Figure 10 main c example file int mainivoid 1 returni i Once you have created your source file you can add this file to your project by opening the Project menu selecting Add and adding the selected file as in Figure 11 Adding files to a project Figure 11 Adding files to a project IAR Embedded Workbench IDE File Edit View Project Simulator Tools Window Help ni main return 0 Options Make Rebuild All Clean MD 06 Add main c R de Add Group newpre Source Code Control fal Add the s File Properties If the file is added successfully Figure 12 New project file tree structure is displayed Figure 12 New project file tree structure Files t BR E Dis edic Ha C main c Doc ID 022896 Rev 1 15 46 Using IAR Embedded Workbench for ARM 5 3 2 Configuring project options Follow these steps to configure project options UM1523 1 Inthe Project Editor right click on the project name and select Options to display the Options dialog box as in Figure 13 Figure 13 Configuring project options Options Rebuild All Clean 2 Inthe Options dialog box select the General Options category open the Target tab and select Device
20. LEPInit LED3 assert abeo uiri nan STH EVAL LEDInit LED4 a N l E k AKA D Turn em LEDI and LES ST EVAL LEDON LED Lis STM EWAL LEDUn LEDA 7 ju it This tutotion filis the Boe ChockFreq structure with 3 Se re Naia aan PN a r T Li T L Ti T LI E Console i f Tasks E Problems 2 Executable TEE a cH GE Gi ae E r H STM Fer Cocoy Spee CK Applcebon WSS PAO Manta Discower y ISCIUHDUPIWUETYtUETUU De a eee ETH3Z Successfully completed reset Operation Smart Ingest 6G 3 The debugger in the Atollic TrueSTUDIO can be used to debug source code at C and assembly levels set breakpoints monitor individual variables and watch events during the code execution To run your application from the Run menu select Resume or alternatively click the Resume buiton in the toolbar Creating your first application using TrueSTUDIO toolchain TrueSTUDIO includes a dedicated connection to the STM32FODISCOVERY board When choosing this connection all required files startup file firmware library etc are added to the workspace and sample files are generated in the project folder to simplify the development The debug settings are automatically configured by selecting STM32FODISCOVERY as the evaluation board Follow these steps to create your first application using TrueSTUDIO toolchain 1 Open the TrueSTUDIOG STM32 product folder and select the Atollic TrueSTUDIO STM32 product name The program lau
21. NK V2 tool the PC detects new hardware and asks to install the ST LINK V2 USB driver The Found New Hardware wizard appears and guides you through the steps needed to install the driver from the recommended location Atollic TrueSTUDIOG STM32 available from www atollic com The toolchain is installed by default in the C Program Files Atollic directory on the PC s local hard disk The ST Link V2 USB exe is installed automatically when installing the software toolchain Altium TASKING VX toolset for ARM Cortex M available from www tasking com The toolchain is installed by default in the C Program Files TASKING directory on the PC s local hard disk The ST Link V2 USB exe is installed automatically when installing the software toolchain The embedded ST LINK V2 supports only SWD interface for STM32 devices Hefer to the firmware package release notes for the version of the supporting development toolchains Doc ID 022896 Rev 1 ky UM1523 Using IAR Embedded Workbench for ARM 5 Using IAR Embedded Workbench for ARM 5 1 Building an existing EWARM project The following is the procedure for building an existing EWARM project 1 Open the IAR Embedded Workbench for ARM EWARM Figure 3 shows the basic names of the windows referred to in this document Figure 3 IAR Embedded Workbench IDE Integrated Design Environment 7 JAR Embedded Workbench IDE Seles File Edit View Project Tools Window Help Degil yy or ks Im ace
22. O STM32 Lite welcome screen ce es 28 Atollic TrueSTUDIO STM32 Lite import source select dialog box 29 Atollic TrueSTUDIO STM32 Lite import projects dialog box 30 TrueSTUDIO project successfully compiledA 30 TrueSTUDIO Debug Configuration dialog DOX 31 TrueSTUDIO Debug window seleeee RI RI irn 32 TrueSTUDIO workspace launcher dialog box ees 33 TrueSTUDIO C Project dialog box llle 33 TrueSTUDIO Build Settings dialog box sesar 34 TrueSTUDIO Misc Settings dialog box tes 35 TrueSTUDIO project successfully built eee 35 TASKING workspace launcher dialog box 000 cece eee ees 36 Doc ID 022896 Rev 1 UM1523 Figure 49 Figure 50 Figure 51 Figure 52 Figure 53 Figure 54 Figure 55 Figure 56 Figure 57 Figure 58 Figure 59 Figure 60 List of figures TASKING VX Toolset for ARM Cortex welcome SCreen 36 TASKING import source select dialog DOX eens 37 TASKING import projects dialog box sk e 38 TASKING project successfully compiled llle 39 TASKING debug window llle rrr 40 TASKING Workspace Launcher dialog box 1 2 ce ees 41 TASKING New C C Project dialog DOX ens 41 Processo
23. STM32L151 6 ST STM32L151xB ST STM32L151 0 ST 511132115120 ST 5T M32L152x6 ST STM32L152x8 ST STM32L152xB ST 5T M32L152xC bud UM1523 a Using IAR Embedded Workbench for ARM 3 elect the Linker category and open the Config tab in the Linker configuration file pane select Override default and click Edit to display the Linker configuration file editor Figure 15 Linker 5 Config tab Assembler Output Converter Conta bra Input Output List Hdefine Diagnostics Custom Build Build Acti Linker configuration file Debugger Override default Simulator 4 Inthe Linker configuration file editor dialog box open the Vector Table tab and set the intvec start variable to 0x08000000 Figure 16 Linker configuration file editor dialog box Vector Table tab Linker configuration file editor Vector Table Memory Regions Stack Heap Sizes inbwec start 0208000000 Save Cancel 5 Open the Memory Regions tab and enter the variables as shown in Figure 17 Figure 17 Linker configuration file editor dialog box gt Memory Regions tab Linker configuration file editor Vector Table Memory Regions Stack Heap Sizes End CXDOGUFFFFF e20000000 e2 0020000 Cancel 6 Click Save to save the linker settings automatically in the Project directory Doc ID 022896 Rev 1 17 46 Using IAR Embedded Workbench for ARM UM1523 7 f your source files include header files select
24. UDIO and TASKING toolchains A binary image hex of this demonstration is provided under Binary subfolder You can use any in system programming tool to reprogram the demonstration using this binary image Master Workspace subfolder This subfolder contains for some toolchains a multi project workspace allowing you to manage all the available projects provided under the subfolders listed below from a single workspace window Peripheral Examples subfolder This subfolder contains a set of examples for some peripherals with preconfigured projects for EWARM MDK ARM TrueSTUDIO and TASKING toolchains See Section 4 and STM32FODISCOVERY peripheral firmware examples AN4062 for further details Utilities folder This folder contains the abstraction layer for the STM32FODISCOVERY hardware It provides the following drivers e stm32f0_discovery c provides functions to manage the user push button and 2 LEDs LED3 and LED4 Doc ID 022896 Rev 1 ky UM1523 Binary images for reprogramming firmware applications 3 Binary images for reprogramming firmware applications This section describes how to use the provided binary images to reprogram the firmware applications The STM32FODISCOVERY firmware package contains binary images hex of the provided applications under Binary subfolder You can use any in system programming tool to reprogram the demonstration using this binary image to reprogram the firmware applications use the in
25. Vision4 debugging session oe e Start Stop Debug Session Ctrl F5 HN Enter ar leave a debug session Doc ID 022896 Rev 1 21 46 Using MDK ARM Microcontroller Development Kit by Keil UM1523 The debugger in the MDK ARM IDE can be used to debug source code at C and assembly levels set breakpoints monitor individual variables and watch events during the code execution as shown below in Figure 25 Figure 25 MDK ARM IDE workspace Winiseove vision File Edit view Project Flash Debug Peripherals Extension ExtensionB Tools S CS Window Help 7 55 Enable PUR and GPIOx Clocks OxO8000469 agu RCC APE1PeriphClockCmd RCC APBIPeriph PWR ENABLE OxOS000468 2101 Hova ri 0x01 Ox08000450 0708 LSL3 FO r1 28 OxOS00045E F7FFFEE1 BL W ROC APBIPeriphClockcCmd Ox085000 60 ROC APBIPeriphClocktma Roc APBzPeriph GPIOC ENABLE Fy im murnmnmadgoug 7431711 Mua vi Ur RE Ox00000000 phe Ox 00000000 AG Ox 00000000 A9 Ox 00000000 A10 Ox00000000 R11 Ox 00000000 Main program Mone Description ERLE Dutput Hone P P12 R13 SP m F 14 LA M ATS PC NEM 5H cv Internal Ox00000000 Ox20000438 Ox080001 75 Ox08000488 Iis Return Hone Aa oXoxtox Xx oXox ox III III II III III II III III TIRI IR RR a a ak int mainivoid 058 059 nen ft Enable PWR and GPIOx Clocks DOT ADRADSer inh ae eer PO W DmB Dardinh ADOTT ROC APBlPeriphClockCmd RCC APBIPeriph PWR
26. ally in main c e system stm32f0xx c h contains the system clock configuration for STM32FO0xx devices It exports SystemInit function which sets up the system clock source PLL multiplier and divider factors AHB APBx prescalers and Flash settings This function is called at startup just after reset and before connecting to the main program The call is made inside the startup stm32f0xx s file e slartup stm32f0xx s provides the Cortex MO startup code and interrupt vectors for all STMS2FOxx device interrupt handlers Doc ID 022896 Rev 1 7 46 Description of the firmware package UM1523 2 1 2 2 2 2 2 1 2 2 2 2 2 3 2 3 8 46 STM32F0xx_StdPeriph_Driver subfolder This subfolder contains sources of STM32FOxx peripheral drivers Each driver consists of a set of routines and data structures covering all peripheral functionalities The development of each driver is driven by a common API application programming interface which standardizes the driver structure the functions and the parameter names Each peripheral has a source code file stm32f0xx ppp c and a header file stm32f0xx_ppp h The stmS2fOxx ppp c file contains all the firmware functions required to use the PPP peripheral Project folder This folder contains the source files of the STM32FODISCOVERY firmware applications Demonstration subfolder This subfolder contains the demonstration source files with preconfigured project for EWARM MDK ARM TrueST
27. cs device mounted on the STM32FODISCOVERY board double click on STMicroelectronics select the STM32F051R8 device and click OK to save your settings Figure 27 Device selection dialog box ndo ST Microelectronics ice STM32F105R8 Toolset ARM Data base 3 STM32FI032G Gee a ST M32F105R8 ARM 32 bit Cortex M3 Mi CI STM32F105RB ener STM32F105RC 64kB Embedded Flash 3 Click Yes to copy the STM32 Startup Code to the project folder and add the file to the project as shown in Figure 28 Figure 28 Copy the STM32 Startup Code dialog box e Copy STM32 Startup Code to Project Folder and Add File to Project EE The default STM32 startup file includes the Systemlnit function You can either comment out this file not to use it or add the system stm32f0xx c file from the STM32f0xx firmware library Doc ID 022896 Rev 1 23 46 Using MDK ARM Microcontroller Development Kit by Keil UM1523 24 46 To create a new source file in the File menu select New to open an empty editor window where you can enter your source code The MDK ARM toolchain enables C color syntax highlighting when you save your file using the File gt Save As dialog under a filename with the c extension In this example Figure 29 the file is saved as main c Figure 29 main c example file J main c MDK ARM offers several ways to add source files to a project For example you can select the file group in the Project W
28. ed 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 2012 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 Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com aee DociDOzeoRe A
29. fying these sample files 7 To build your project click Build Project in the Project menu 8 Your project is compiled successfully Figure 47 TrueSTUDIO project successfully built EX Problems e Tasks El console 3 E Properties C Build NewProject C Program Files itollic TrueSTUDIO for STMicroelectronics STM32 Lite 2 39 05 Tools arm atollic reports jar sizeinfo NewProject elf Report and converter tools only available in TruesTUDIO Professional Build complete for project NewProject Time consumed 10125 ms 9 Before running your application establish the connection with the STM32FODISCOVERY board as described in Section 1 Getting started To program the Flash memory and begin debugging follow the instructions given in Section 7 2 Debugging and running your TrueSTUDIO project on page 31 Doc ID 022896 Rev 1 35 46 Using TASKING UM1523 8 Using TASKING 8 1 Building an existing TASKING project Follow these steps to build an existing TASKING project 1 Open the TASKING VX toolset for ARM Cortex IDE The program launches and asks for the Workspace location Figure 48 TASKING workspace launcher dialog box Works pace Launcher Select a workspace TASKING VX tonlsek For ARM Cortex v4 r1 stores your projects in a Folder called a workspace Choose 4 workspace Folder bo use For this session Warkenace IC Stingyay DiscoveryKitUFimmarelDemonstrationT ASKING 1Use this as the default and
30. g Eclipse projects 9 Select root directory C Stingray Discovery KFIRMWA Browse CO Select archive ffe Projects MI STM32F0 Discovery Kit CiStingray Discovery Select Deselect Refresh 4 Copy projects into workspace Working sets ddd project te working sets 6 Inthe Projects pane select the STM32FO Discovery Kit and click Finish 7 Inthe Project Explorer select the STM32F0 Discovery project Open the Project menu and click Build Project 8 f your project is successfully compiled the following window is displayed Figure 40 TrueSTUDIO project successfully compiled LM Problems V Tasks Ez Console 25 x Properties C Build STM324xG EVAL_USBH HS_F5 Files Atollic TrueSTUDIO for STMicroelectronics STM32 Lite 2 3 04 SIMszF Discovery Demo elr Report and converter tools only available in Trues2TUDIO Professio Build complete for project STM3zF Discaovery Demo Time consumed 24467 ms 30 46 Doc ID 022896 Rev 1 UM1523 Using Atollic TrueSTUDIO 7 2 Debugging and running your TrueSTUDIO project In the Project Explorer select the STM32F0 Discovery project and press F11 to display the Debug Configuration dialog box Figure 41 TrueSTUDIO Debug Configuration dialog box Import Projects Select a directory to search For existing Eclipse projects 9 Select root directory C 45TM32FD Discovery FIRMWARE Project C Select archi
31. indow Files page and right click to open a contextual menu Select the Add Files option and browse to select the main c file previously created Figure 30 Adding source files Project zi Target 1 i Options Far Group Source Group 1 Alt F haha Rebuild all target Files E Build target Add Group Add Files to Group Source Group 1 Remove Group Source Sroup 1 and its Files ut Manage Components Show Include File Dependencies If the file is added successfully the following window is displayed Figure 31 New project file tree structure roject y Target 1 o Source Group 1 S3 startup stm32f ss s a Doc ID 022896 Rev 1 UM1523 Using MDK ARM Microcontroller Development Kit by Keil 6 3 2 Configuring project options 1 In the Project menu select Options for Target 1 to display the Target Options dialog box 2 Open the Target tab and enter IROM1 and IARM1 Start and Size settings as shown in Figure 32 Figure 32 Target Options dialog box Target tab 7 piion nang target Device Target Output Listing User CC Asm Linker Debug tities ST Micioelectionics 5 TM 32L152RB Code Generation stal MHz ED Operating system None o Use Cross Module Optimization tal gt ReadOnly Memo Areas defaut off chip Start D 3 Open the Debug tab click Use and select the ST Link Debugger
32. iscovery Select Al Deselect al Refresh 4 Copy projects nto workspace Working sets ddd proj ct te working sets 6 Inthe Projects window select the STM32F0_Discovery_Kit and click Finish 7 Inthe Project Explorer select the STM32F0 Discovery project Open the Project menu and click Build Project 38 46 Doc ID 022896 Rev 1 UM1523 Using TASKING 8 f your project is compiled successfully the following window is displayed Figure 52 TASKING project successfully compiled 8 import Import Projects Select a directory ko search for existing Eclipse projects G Select root dreckoey COS tmgray Discovery E3WIEMWA Browse 2 Select archive ffe Projects STM32FU Discovery Kit CiStimgray Discovery Select Al 1 Copy projects nto workspace Working sts Add project bo working sets Doc ID 022896 Rev 1 39 46 Using TASKING UM1523 8 2 Debugging and running your TASKING project Figure 53 shows the first step for debugging and running your TASKING project From the project toolbar menu select Debug 5 Debug STM32F0 Discovery Demo Figure 53 TASKING debug window TASKING Debug STM32F C Discavery Demo User main c TASKING VX toolse1 for ARM Corte ID lE Pie Edit Source Refactor Nangako Search Project Debug Window Hep ri i we e Siah ES d TASKING Debug ks T Pc pa i TASIS CIC E Debug D Ditis variable Sa Breakpo Dm m ep
33. nches and asks for the Workspace location Browse to select an existing workspace or enter a new workspace location and click OK to confirm a Doc ID 022896 Rev 1 UM1523 Using Atollic TrueSTUDIO Figure 43 TrueSTUDIO workspace launcher dialog box amp Workspace Launcher Select a workspace Akollic True S TLIDIO m 5TM32 Lite stores your projects in a Folder called a workspace Choose a workspace Folder to use For this session Workspace cANewWorkspacel a k Copy Settings 2 When the Atollic TrueSTUDIO displays its Welcome window click Start using TrueSTUDIO to open the main window In the File menu select New and click C Project 3 Name the new project select STM32 C Project in the Project type pane then click Next Figure 44 TrueSTUDIO C Project dialog box amp C Project C Project Create C project of selected type Project name NewProject Use default location Project type Toolchains B E Executable E Atollic ARM Tools Empty Project 2351132 C Project AL Makefile project Show project types and toolchains only if they are supported on the platform Doc ID 022896 Rev 1 33 46 Using Atollic TrueSTUDIO UM1523 4 Inthe TrueSTUDIO Build Settings dialog box select STM32F0 Discovery as the Evaluation board configure the other settings as shown in Figure 45 and click Next Figure 45 TrueSTUDIO Build Settings dialog box amp C Project True5TUDID Build Setti
34. ngs Select hardware and build configuration Target Vendor STMicroelectronics Evaluation board STM32F0 Discovery tos mm rme eos Microcontroller Family Microcontroller Floating point Software implementation B in E Code location Instruction set Endianess sig endian Little endian Optimization Remove unused code dead code removal Remove unused data dead data removal y LIFE yn IPIE OT FE ERUIO Note Choosing STM32FODISCOVERY as the evaluation board will configure the project as follows e Microcontroller STMS2F051H8 e Debug probe ST LINK e Connection Serial Wire Debug SWD 34 46 Doc ID 022896 Rev 1 UM1523 Using Atollic TrueSTUDIO 5 Verify that the JTAG Probe is ST LINK and click Finish to confirm your settings Figure 46 TrueSTUDIO Misc Settings dialog box amp C Project TrueSTUDIO Misc Settings Select miscellaneous project settings JTAG Probe ST LINK w ST LINK Akollic True5TUDTO Lite only supports one type of JTAG probe Please purchase the Professional version ko get support For a large number of other types of JTAG probes FS 6 Your project has been created successfully Atollic TrueSTUDIO generates target specific sample files main c stm32f0xx it c in the Project folder to simplify the development You can tailor this project to your needs by modi
35. nthe Project menu select Open Project to display the Select Project File dialog box Browse to select the STM32F0 Discovery uvproj project file and click Open to launch it in the Project window 3 Inthe Project menu select Rebuild all target files to compile your project 20 46 Doc ID 022896 Rev 1 ky UM1523 6 2 Using MDK ARM Microcontroller Development Kit by Keil 4 f your project is successfully compiled the following Build Output window Figure 23 Build Output MDK ARM pVision4 project successfully compiled is displayed Figure 23 Build Output MDK ARM pVision4 project successfully compiled Build Output x compiling stm32f0 discovery c compiling stm32fOxx syscfg c compiling stm3zf xx misc c compiling stm32fOxx adc c compiling stm32fOxx dac c compiling stm32fOxx dma c compiling stm32fOxx exti c compiling stm32fOxx flash c compiling stm32fOxx gpio c compiling stm3zf xx izc c compiling stm3zf xx rcc c compiling stm32fOxx spi c compiling stm32fOxx tim c assembling startup stm32fOxx s linking Program Size Code 2000 RO data 252 RW data 36 ZI data 1028 STM32FO0 Discovery Demo STM32FO0 Discovery Demo axf O Error s O Warning s Debugging and running your MDK ARM project In the MDK ARM pVision4 IDE click the magnifying glass to program the Flash memory and begin debugging as shown below in Figure 24 Figure 24 Starting an MDK ARM p
36. omatically the needed linker file and will configure the project as follows Microcontroller STM32F051R8 Debug probe ST LINK Connection Serial Wire Debugging SWD Figure 57 Debug configuration Project Window Help rm G 1 Debug STM32F 0 Discovery Demo 42 46 a Doc ID 022896 Rev 1 UM1523 Using TASKING 6 To add source file to your project right click on the project from the C C project window and select Import 7 From the Import dialog box select General and the desired file as shown in Figure 58 TASKING Import dialog box Figure 58 TASKING Import dialog box 8 import Select Create new projects From an archive File or directory Select an impart source il kok General S Archive Fie Existing Projects mto workspace Ae System gt C Preferences e cic PS Ces o gt Bunibebug Bu TASKING CIC bh e Team Doc ID 022896 Rev 1 43 46 Using TASKING UM1523 8 Click Next Fill the displayed window as following and then browse to your source file Figure 59 Adding a new source file window From directory CA a stes TI Filter Types Select All Deselect All Options Overwrite existing resources without warning Create top level Folder zv Create links in workspace Create virtual Folders Create link locations relative to PROJECT LOC v 9 Select main c file and click Finish 10 To build your project click on Project 5 Build Projec
37. r selection pebosaeeneeeeeceseesnhs gest Et 42 Debug CONNGUIAUON x uto ati dick sies oe ct eer deir oe FC dC ved ei ac be aa dures 42 TASKING Import dialog box I rn 43 Adding a new source file window llle 44 Tasking project successfully built eens 44 Doc ID 022896 Rev 1 5 46 Getting started UM1523 1 1 1 2 6 46 Getting started System requirements Before running your application you should establish the connection with the STM32FODISCOVERY board as following Figure 1 Hardware environment To run and develop any firmware applications on your STM32FODISCOVERY board the minimum requirements are as follows Windows PC 2000 XP Vista 7 e USB type A to Mini B cable used to power the board through USB connector CN1 from host PC and connect to the embedded ST LINK V2 for debugging and programming Running the built in demonstration The board comes with the demonstration firmware preloaded in the Flash memory Follow the steps below to run it Check the jumper position on the board JP2 on CN2 on Discovery selected e Connect the STM32F0 DISCOVERY board to a PC with a USB type A to Mini B cable through USB connector CN1 to power the board Then red LEDs LED1 PWR and LED2 COM light up and green LEDS blinks e Press user button B1 Button left corner of the board The blinking of green LED3 changes according to clicks on user button B1
38. system programming tool and 1 Connect the STM32FODISCOVERY board to a PC with a USB type A to Mini B cable through USB connector CN1 to power the board 2 Make sure that the embedded ST LINK V2 is configured for in system programming both CN3 jumpers ON 3 Use hex binary for example Project Demonstration Binary S TM32F0 Discovery_Demonstration_V1 0 0 hex with your preferred in system programming tool to reprogram the demonstration firmware ex STM32 ST LINK Utility available for download from www st com ky Doc ID 022896 Rev 1 9 46 ST LINK V2 installation and development UM1523 4 Note 10 46 ST LINK V2 installation and development STM32FODISCOVERY board includes an ST LINK V2 embedded debug tool interface that is supported by the following software toolchains IAR Embedded Workbench for ARM EWARM available from www iar com The toolchain is installed by default in the C Program Files IAR Systems Embedded Workbench 6 30 directory on the PC s local hard disk After installing EWARM install the ST LINK V2 driver by running the ST Link V2 USB exe from IAR_INSTALL_DIRECTORY Embedded Workbench 6 30 arm drivers S T Link IST Link V2 USBariver exe RealView Microcontroller Development Kit MDK ARM toolchain available from www keil com The toolchain is installed by default in the C IKeil directory on the PC s local hard disk the installer creates a start menu uVision4 shortcut When connecting the ST LI
39. t from the toolbar menu 11 Your project is compiled successfully Figure 60 Tasking project successfully built Problems X El Console D Properties 33 items Description Resource COC build completed successfully NewProject ue 12 Before running your application establish the connection with the STMS2FODISCOVERY board as described in Section 1 Getting started 44 46 Doc ID 022896 Rev 1 UM1523 Revision history 9 Revision history Table 2 Document revision history BENE GINE NEN 23 Mar 2012 Initial release UM1523 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
40. 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 TWO AUTHORIZED ST REPRESENTATIVES 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 register
41. tm32f0xx dma c s STM32FO Discovery Goto Files Bit brief Main program i Disassembly B STM32F0 Bearer cen 0x80002cc 0x477i Ha DI CMSIS B WWDG_IRQHal Ha C3EWARM mint asin mid WWDG IROHandler HA CISTM32 E 0x80002ce Oxe7ft HOLI STM32F Ox RCC_ClocksTypeDef RCC_Clocks IU Ce Ha CJ User i B La E Output f4 Configure LED3 and LED4 on SIM32F0 Discovery STM EVAL LEDInit LED3 STM EVAL LEDInit LED4 0x80002d2 Oxb08 STM EVAL LEDInit Ll Initialize User Button on SIM32F0 Discovery Ox80002d4 0x200 STM EVAL PBInit BUTTON USER BUTTON MODE GPIO 0x80002d6 Oxf00l STM EVAL LEDInit Ll SysTick end of count event each ims 0x80002da Ox200 RCC GetClocksFreq RCC Clocks 0x80002dc Oxf 001 SysTick Config RCC Clocks HCLK Frequency 1000 STM_EVAL PBInit BU 0x8000280 0x210 Select HSI as system clock source STM32F Discovery Demo REP S SCTRConfFini RCC SvSPnLESmmroe HST Dx80002e2 x2001v lt Jl Goto Ox08000000 v Memory 08000000 20000428 08000821 08000909 0800090b 08000010 00000000 00000000 00000000 00000000 08000020 00000000 00000000 00000000 0800090d 08000030 00000000 00000000 0300090f 08000911 08000040 080002cf 080005af 0800063f 08000867 08000050 080008 3 08000925 08000927 08000929 08000060 08000925 0800092d 0300092f 08000931 08000070 08000933 08000935 08000937 08000939 08000050 08000935 0800093d 00000000 0800093f 08000090 08000941 0
42. ve File l Projects STM32F Discovery Demo Benua Select All Deselect All Copy projects into workspace Working sets Add project to working sets Doc ID 022896 Rev 1 31 46 Using Atollic TrueSTUDIO UM1523 7 3 32 46 9 Inthe Main tab configure the project as shown in Figure 41 and click OK to save your settings and to program the Flash memory and begin debugging Figure 42 TrueSTUDIO Debug window a Debug 5TM37F0 Discover Use imam e Alallie Troes TUDAST A Lite Flo Edi Da Relactot Havigale Search Prot Bun Manuak Widow Help a beer Qs Qe ee ee Oe ee ir te FY We Debug GE Cice Debug 12 i k2 m NG i 7 TO ban Some SE Mino bo aal e SUMAGAD Discovery f Embedded CIC r Applcation ET oy EG gf Embedded Or Appicstion 5705 11 4 29 Ff Suspended LU apto IntStrustune 4 3 E gq Thread 1 Suspended Eroakpoint hi bs SPIO Fin 0 To LA panj manci Coon 332 ba GPO Made 157 Ki ST 7 a Ir GPPO Seil PR SA pi CiFrogam Pee Abo kna TUR STR Libo 2d SRPTookInLarm xolbc aabiadb 19115711 4 bl PSC Tung TO DTuns PP pj C55 PAO Marka Dioder ORT RE Pro fat Per ph eral Examplesis TPHaF4 Disose IE a pecovery h E simia i c pe maine Gt a p SF Quoting 12 A Lt w g c B vj stein discovery h TE Delay t wd iniLinmizze LEDs mounted on zIEJ2f Dismccrcry bosrd 77 PU vali ureaned lang STH EVAL LEDEnit LEDIi mental ink STH EVAL LE DInit 5ED2 mn wih vol SIM EVAL

Download Pdf Manuals

image

Related Search

Related Contents

Audiovox GMNAV2 Installation Manual  0DQXDO 7pFQLFR GH ,QVWDODomR 2SHUDomR H  NM with GPS  Neuerungen im Betriebssystem Solaris 10      機械式立体駐車場での 事故に御注意ください!  Satisfait ou remboursé!  vívofit® – Benutzerhandbuch  Les machines et les outils  

Copyright © All rights reserved.
Failed to retrieve file