Home
Getting started with software and firmware environments for the
Contents
1. 47 Doc ID 023558 Rev 1 ky UM1562 List of figures 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 SZA Hardware environment cesser hrs 7 Firmware applications subfolders 9 IAR Embedded Workbench IDE Integrated Design Environment 14 EWARM project successfully compiled 15 Download and Debug button eres 15 IAR Embedded Workbench debugger Screen a 16 CO PUNO AA eens te DONE oe PHO LAIN DANGAN es hee eee ND TENG NAGA UG NA ees 16 Create New Project dialog DOxX 1 ke eee enn 17 TRT sre scanned AAP ae eee 17 IAR main c example file 18 Adding TES to DFOIGDL cam aka naa MG dra MG seuss qe KA RUP OON AR URN E EA epee 18 New project file tree structure III 18 Configuring project options
2. 29 Target Options dialog box Utilities tab 29 MDK ARM uVision4 project successfully built 30 TASKING workspace launcher dialog box 31 TASKING VX Toolset for ARM Cortex welcome Screen 0 cece eens 31 TASKING import source select dialog box a 32 TASKING import projects dialog box eee 33 TASKING project successfully compiled 33 TASKING debug window 34 TASKING Workspace Launcher dialog box 1 a 35 TASKING New C C Project dialogbok 35 Processor SCICCHON AA cadence T tinira ae ee Oe ows eee wh ee wees he 36 Debug COMIQUIAUON 66 46 0840 redo KAKA CoG ABAKADA KA ooo De MG LGA Ea ka BA 36 TASKING Import dialogbok 37 Adding a new source file window 38 Tasking project successfully built 38 Doc ID 023558 Rev 1 5 48 List of figures Figure 49 Figure 50 Figure 51 Figure 52 Figure 53 Figure 54 Figure 55 Figure 56 Figure 57 Figure 58 Figure 59 Figure 60 6 48 UM1562 TrueSTUDIO workspace launcher dialog box 39 Atollic TrueSTUDIO STM32 Lite welcome screen
3. 39 Atollic TrueSTUDIO STM32 Lite import source select dialog box 40 Atollic TrueSTUDIO STM32 Lite import projects dialog box 41 TrueSTUDIOR project successfully compiled 41 TrueSTUDIO Debug Configuration dialogbok 42 TrueSTUDIO Debug window 43 TrueSTUDIO workspace launcher dialog box 44 TrueSTUDIO C Project dialog Dox 1 ree 44 TrueSTUDIO Build Settings dialog box 45 TrueSTUDIOG Misc Settings dialog box 46 TrueSTUDIO project successfully built 46 Doc ID 023558 Rev 1 UM1562 Getting started 1 Getting started 1 1 System requirements Before running your application you should establish the connection with the STM32F3DISCOVERY board as follows Figure 1 Hardware environment Sg Tunog To run and develop any firmware applications on your STM32F3DISCOVERY board the minimum requirements are as follows e 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 e USB type A to Mini B cable used to power the board through USB connector CN2 from
4. lille rs 19 General options gt Target tab 19 Linker 4 ONG AD AA WEEE TUNA VALUE AFUNGA eens hase 20 Linker configuration file editor dialog box gt Vector Table tab 20 Linker configuration file editor dialog box gt Memory Regions tab 20 C C Compiler gt Preprocessortab 21 DEbudger AUA teed as ra RR e 9 erae RR E Kae Oa KAG NA 21 Select Flashloaders 21 ST Link communication protocol 22 MDK ARM uVision4 IDE environment 23 Build Output MDK ARM pVision4 project successfully compiled 24 Starting an MDK ARM uVision4 debugging session 24 MDK ARM IDE workspace RR rns 25 Creating a new project 26 Device selection dialog box 26 Copy the STM32 Startup Code dialogbok 26 MDK ARM main c example file llle IRA 27 Addingsourcefiles 27 New project file tree structure 27 Target Options dialog box Targettab 28 Target Options dialogbok Debugtab
5. 008000465 decens 58 RCC APBiPeriphClockCmd RCC APBiPeriph PWR ENABLE Ox0800098A 2101 Moves ri 0x01 Ox0800048c 0708 LSLS ro ri 28 Ox0800098E FYFFFEE1 BL W RCC APBiPeriphClockCmd Ox08000 at Bb RCC APBlPeriphcClockUomd RCC APBzPeriph GPIOC ENABLES in HB Dx00000000 c vnSnnanan 94n4 MORTE mi d4neni H R7 Ox00000000 R8 Ox00000000 in RE Ox00000000 B ps R10 Ox00000000 cu ATT Ox0Q0000000 pa Z Ox00000000 c R13 SP Ox200004 35 uu F 14 LA Ox08000175 sa F15 PC 8000488 NE HS H co nternal Ox0200047b OxOB00063c Main program Kone Description ofrgput ntput Kone Bogen ORE fie tte ee SE SE SE SE SE SE SE SE oe SE SE AE SE SE SE SE SE SE SE AE SE SE SE of ot oo wt oot ot oe oe 056 int mainivoidi Icos H UR Enable PWE and GPIUx Clocks 059 ROC APElPeriphClockCmAd RCC APElPeriph PUR ENABLE TITABRT Wh T 4 k CA DOT nDRdLDawdinuh Himel7 dd D ADCR DODSrinh ADOTT Address D 20000000 d Ox20000000 Ox20000020 Ox20000040 Ox20000060 Ox20000050 Ox200000A0 Ox200000CO0 Ox2Q00000EO0 leal stack FAlocals 00000000 04030201 00000000 O0000000 00000000 00000000 00000000 00000000 00000000 o906o0706 00000000 00000000 00000000 00000000 00000000 00000000 hatch 1 D0000000 20010800 D0000000 D0000000 O0000000 D0000000 O0000000 D0000000 00000000 20011000 00000000 O0000000 00000000 O0000000 00000000 O00000
6. compiling stm3Zf30x adc c compiling stm32f30x dac c compiling stm32f30x dma c compiling stm32f30x exti c compiling stm32f30x flash c compiling stm32f30x gpio c compiling stm32f30x izc c compiling stm32f30Ox rcc c compiling stm3zf30x spi c compiling stm32f30x tim c assembling startup stm3zf30x s linking Program Size Code 2000 RO data 252 RW data 36 ZI data 1028 XSTMSZF30 Discovery Demo STM32F30 Discovery Demo axf O Error SJ O Warning s 6 2 Debugging and running your MDK ARM project In the MDK ARM uVision4 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 pVision4 debugging session wa e Start Stop Debug Session Ctrl F5 HN Enter ar leave a debug session a 24 48 Doc ID 023558 Rev 1 UM1562 Using MDK ARM Microcontroller Development Kit by Keil 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 MIDIBCOVER pisong File Edit View Project Flash Debug Peripherals Extension ExtensionB Tools Window Help BRI E T NET RI ELO 000 0 7 SCS is m a uum y JET a Ya du P ges Registers lw 8X Disassembly Co a Eo Eren 58 Enable PUR and GPIOx Clocks
7. Stellaris ICD Signum Systeme J TAGJet C Use Ester ST Link Debugger Commana gt EL B T ka Arguments Runindependent Cancel Defaults 8 Inthe Project menu select Build Target 9 If your project is successfully built the following window is displayed Doc ID 023558 Rev 1 29 48 d Using MDK ARM Microcontroller Development Kit by Keil UM1562 30 48 Figure 35 MDK ARM pVision4 project successfully built a ald ur ikat Build target Target 1 linking Program Size Code 344 RO dara 408 Ril data 0 zrI data 153z RmevProject axr O Erroris O Warning 2L 2 10 Before running your application establish the connection with the STM32F3DISCOVERY 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 Doc ID 023558 Rev 1 ky UM1562 7 7 1 Using TASKING Using TASKING Building an existing TASKING project Follow these steps to build an existing TASKING project 1 Openthe TASKING VX toolset for ARM Cortex IDE The program launches and asks for the Workspace location Figure 36 TASKING workspace launcher dialog box L Works pai g Launcher Select a workspace TASKING Yk bogset For ARIM Cortes v4 0r1 stores your projects in a Folder called a workspace Choose a workspace folder to use For this session warkspace CASTMS2F3 DiscovervKit Firmvware
8. e71 UM1562 3 User manual Getting started with software and firmware environments for the STM32F3DISCOVERY Kit Introduction This document describes the software firmware environment and development recommendations required to build an application around the STM32F3DISCOVERY 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 B Section 2 describes the firmware application package Section 4 presents development toolchain installation and overview of ST LINK V2 interface m Section 5 Section 6 Section 7 and Section 8 introduce how to use the following software development toolchains TAR Embedded Workbench for ARM EWARM by IAR Systems Microcontroller Development Kit for ARM MDK ARM by Keil TASKING VX toolset for ARM Cortex by Altium TrueSTUDIO by Atollic 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 Reference documents STM32F3DISCOVERY high performance discovery board data
9. STM3z LISB FS Device Driver lt O sTM32F3 x StdPeriph Driver C3 Inc CI sre E Project O Demonstration Lj Master Workspace 0 Peripheral Examples E utilities C 5TM32F3 Discovery VX Y Z refer to the package version ex V1 0 0 Libraries folder This folder contains the Hardware Abstraction Layer HAL for STM32F30x devices CMSIS subfolder This subfolder contains the STM32F30x and Cortex M4 CMSIS files Cortex M4 CMSIS files consist of Core Peripheral Access Layer contains name definitions address definitions and helper functions to access Cortex M4F core registers and peripherals It defines also a device independent interface for RTOS Kernels that includes debug channel definitions CMSIS DSP Software Library features a suite of common signal processing functions for use on Cortex M processor based devices The library is completely written in C and is fully CMSIS compliant High performance is achieved through maximum use of Cortex M4F intrinsics STM32F30x CMSIS files consist of stm32f30x h contains the definitions of all peripheral registers bits and memory mapping for STM32F30x devices The file is the unique include file used in the application programmer C source code usually in main c system_stm32f30x c h contains the system clock configuration for STM32F30x devices It exports SystemInit function which sets up the system clock source Doc ID 023558 Rev 1 9 48 Description of the fi
10. Save As under a filename with the c extension In Figure 10 IAR main c example file the file is saved as main c Figure 10 IAR main c example file int maini void 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 Figure 11 Adding files to a project F IAR Embedded Workbench IDE Sel File Edit View Project Simulator Tools Window Help Options Make Rebuild All Clean add les Add main c Add Group newpre Source Code Control K Foal k3 Add thes File Properties Remove If the file is added successfully Figure 12 is displayed Figure 12 New project file tree structure Files am Hs E ETE SL v main c x 9 Doc ID 023558 Rev 1 UM1562 Using IAR Embedded Workbench for ARM 5 3 2 Configuring project options Follow these steps to configure project options 1 In the 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 ST STM32F303 Figure 14 General options gt Target tab Options for node Demo Category d General Options CICLE Compiler Assembler Output Converter Cu
11. and add the file to the project as shown in Figure 28 Figure 28 Copy the STM32 Startup Code dialog box 3 Copy STM32 Startup Code to Project Folder and Add File to Project e The default STM32 startup file includes the Systemlnit function You can either comment out this file not to use it or add the system stmS32f30x c file from the STM32f30x firmware library Doc ID 023558 Rev 1 ky UM1562 d Using MDK ARM Microcontroller Development Kit by Keil 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 5 Save As dialog under a filename with the c extension In this example Figure 29 the file is saved as main c Figure 29 MDK ARM main c example file d LI main c 1 MDK ARM offers several ways to add source files to a project For example you can select the file group in the Project Window 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 Praject E i Target 1 ZR V Options Far Group Source Group 1 Alt F Open File Open List File Open Map File Baba Rebuild all target Files L Build target Translate File M Stop build Add Group Add Files to Group Sor Remove Group Sourc
12. brief STM32F3DISCOVERY peripheral firmware examples AN4062 STM32F30x reference manual RM0313 STM32F30xx datasheet The above documents are available at www st com stm32f3 discovery Table 1 Applicable tools Evaluation tools STM32F3DISCOVERY September 2012 Doc ID 023558 Rev 1 1 48 www st com Contents UM1562 Contents 1 EITS Startled AA AIKA 7 1 1 System requirements lesser 7 1 2 Running the built in demonstration 8 2 Description of the firmware package 9 2 1 Libraries folder 9 2 1 1 CMSIS subfolder 2 cc ees 9 2 1 2 STM32F30x StdPeriph Driver subfolder 10 2 1 3 STM32 USB FS Device Driver ellen 10 2 2 Project folder 10 2 2 1 Demonstration subfolder 10 22 2 Master Workspace subfolder 10 2 2 3 Peripheral Examples subfolder 0a 10 2 3 Utilities folder 11 3 Binary images for reprogramming firmware applications 12 4 ST LINK V2 installation and development 13 5 Using IAR Embedded Workbench for ARM 14 5 1 Building an existing EWARM project 14 5 2 Debugging and running your EWARM project anaa
13. host PC and connect USB to host PC KY Doc ID 023558 Rev 1 7 48 Getting started 1 2 8 48 UM1562 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 jumper position on the board JP4 on CN4 on Discovery selected Connect the STM32F3 DISCOVERY board to a PC with a USB type A to Mini B cable through USB connector CN2 or CN1 to power the board Then red LED LD1 PWR and LD2 COM light up All 8 LEDs between B1 and B2 are blinking in a chase sequence Press User Button B1 Botton left corner of the board then gyroscope MEMS sensor is enabled move the board and observe the four LEDs blinking according to the motion direction Press User Button B1 Botton left corner of the board then Compass MEMS sensor is enabled move the board horizontaly and observe the north direction If you take the board and lean it then all LEDs are blinking Doc ID 023558 Rev 1 ky UM1562 2 2 1 21 1 Description of the firmware package Description of the firmware package The STM32F3DISCOVERY firmware applications are provided in one single package and supplied in one single zip file The extraction of the zip file generates one folder STM32F3 Discovery FW VX Y Z which contains the following subfolders Figure 2 Firmware applications subfolders T STM3zF3 Discavery FW ve ve Lj htmresc 155 Libraries O CMSIS ES C
14. the Import dialog box In the Import window open General select Existing Projects into Workspace and click Next Figure 51 Atollic TrueSTUDIOG STM32 Lite import source select dialog box Import Select Create new projects From an archive File or directory Select an import source tvpefitertext Cid General E Archive File Li Existing Projects into Workspace J File System E Preferences H CIC H Run Debug HLS Team Cancel 40 48 Doc ID 023558 Rev 1 9 UM1562 Using Atollic TrueSTUDIO 5 Click Select root directory browse to the TrueSTUDIO workspace folder and select the STM32F3 Discovery project Figure 52 Atollic TrueSTUDIO STM32 Lite import projects dialog box a Import Import Projects Select a directory to search For existing Eclipse projects 3 Select root directory CASTM32F3 Discovery FIRMWARE Project E CO Select archive File Projects STM32F3 Discovery CASTM32F3 Discover FIRMWARE Projectil Select All Deselect All E Copy projects into workspace Working sets Add project to working sets 6 Inthe Projects pane select the STM32F3 Discovery Kit and click Finish 7 Inthe Project Explorer select the STM32F3 Discovery project Open the Project menu and click Build Project 8 f your project is successfully compiled the following window is displayed Figure 53 TrueSTUDIO project successfully compiled LM Problems 43 Tasks zl console 33 ES
15. 00 JB symbols ST Link Debugger E 00000000 20011000 00000000 O0000000 00000000 O0000000 00000000 O0000000 O16E3600 oo000000 00000000 O0000000 00000000 00000000 00000000 O0000000 00000000 OD000000 00000000 OD000000 00000000 OD000000 OD000000 OD000000 00000000 O0000000 00000000 O0000000 00000000 O0000000 00000000 O0000000 Doc ID 023558 Rev 1 25 48 Using MDK ARM Microcontroller Development Kit by Keil UM1562 6 3 6 3 1 Note 26 48 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 p Vision 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 Microelectronics device mounted on the STM32F3DISCOVERY board double click on STMicroelectronics select the STM32F303VCT6 device and click OK to save your settings Figure 27 Device selection dialog box Vendor 5T Microelectronics Device STM32F303VE Toolset AHM ST Micre 3 ST elec TMa UA tronics WE 3 Click Yes to copy the STM32 Startup Code to the project folder
16. 00 Ra Orc BOCES d e zd bees ccm d re E Ab tsp nc Fh CET at TASKING Dissssembly 12 Address iia E coide YA Tasks En Debug 5TH32F4 Discovery Demo aid rt l ci Copyright 2006 2011 Altium BU z ARE debug instrument is running in tris Loading application Cii Doc E S 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 9 34 48 Doc ID 023558 Rev 1 UM1562 7 3 d 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 42 TASKING Workspace Launcher dialog box E Workspace Launcher Select a workspace TASKING vX Eaalset For ARM Cortex v3 zrl1 stores your projects in a Folder called a workspace Choose a warkspace Folder to use For this session Workspace c Wew Wworkspace w C 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 N
17. 2F3 Discovery Demo 36 48 Doc ID 023558 Rev 1 ky UM1562 Using TASKING 6 Toadda 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 46 Figure 46 TASKING Import dialog box 8 import Select Create new projects from an archive File or directory Select an import source S ko General LZ Archive Fie 3Exitmz Projects mto workspace Fe System Preferences A pm Cc Ed ic CYS H L RunjDebug Hj LER TASKING C IC k bil Leo Team d Doc ID 023558 Rev 1 37 48 Using TASKING UM1562 8 Click Next Fill the displayed window as follows and then browse to your source file Figure 47 Adding a new source file window From directory CA w stes TI Filter Types Select All Deselect All Options L 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 gt Build Project from the toolbar menu 11 Your project is compiled successfully Figure 48 Tasking project successfully built UG Problems x El Console Properties 33 items Description Resource CIC build completed successfully TEU RCE eddie arn 12 Before runn
18. DemonstartioniT ASKING 2 Browse to select the STM32FSDISCOVERY 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 37 TASKING VX Toolset for ARM Cortex welcome screen TASANG SIC r TASKING VX canlsez Tor ARM Caries wI 2r sE TASKING Doc ID 023558 Rev 1 31 48 Using TASKING UM1562 3 The TASKING Discovery workspace contains a demo project for the STM32F3DISCOVERY 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 38 TASKING import source select dialog box Import Select Create new projects From an archive File or directory Select an import source wpeBertet a gt General 5 Archive File I Existing Projects into Workspace C File System EL Preferences E Cc WL CVS gt Run Debug TY L TASKING C C HL Team i a 32 48 Doc ID 023558 Rev 1 UM1562 d Using TASKING 5 Click Select root directory browse to the TASKING workspace folder and select the STM32F3 Discovery project Figure 39 TASKING import projects dialog box import Import Projects Select a directory to search for existing Eclipse projects s Select rant directory LC TMS2F 3 DiscovervKitiFirmweare Browse CO Select archive fie Projec
19. ERMS 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 USEIN 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 2012 STMicroelectronics All rights re
20. Jul 18 2012 12 27 03 Target reset Debug Log Build Find in Files Ln 61 Col 1 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 16 48 Doc ID 023558 Rev 1 KY UM1562 Using IAR Embedded Workbench for ARM 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 Mew Project Tool chain Project templates o gt Empty project E asm eS C S C Externally built executable Description Lreates 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 CH NewProje NewProject Messages Configuration is up to date se IZ U 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 d Doc ID 023558 Rev 1 17 48 Using IAR Embedded Workbench for ARM UM1562 18 48 The IAR Embedded Workbench enables C color syntax highlighting when you save your file using the dialog File gt
21. Link V2 USB exe from IAR INSTALL DIRECTORY lEmbedded Workbench 6 30 arm drivers S T Link S T 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 Kei directory on the PC s local hard disk the installer creates a start menu uVision4 shortcut When connecting the ST LINK 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 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 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 Note 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 AY Doc ID 023558 Rev 1 13 48 Using IAR Embedded Workbench for ARM UM1562 5 Using IAR Embedded Workbench for ARM 5 1 Building an eris
22. Properties C Build STM324xG EVAL USBH HS F5 Files Atollic TrueSTUDIO for ARM Pro 3 2 04 Tools arm atollic repor STM32F3 Discovery Demo elr Report and converter tools only available in TrueSTUDIO Professio Build complete for project STM32F3 Discovery Demo Time consumed 424467 me d Doc ID 023558 Rev 1 41 48 Using Atollic TrueSTUDIOG UM1562 8 2 Debugging and running your TrueSTUDIO project In the Project Explorer select the STM32F3 Discovery project and press F11 to display the Debug Configuration dialog box Figure 54 TrueSTUDIO Debug Configuration dialog box amp Edit Configuration Edit launch configuration properties Name nIM32F3 Discovery elf B Main KG Debugger gt Startup Debug Z gt Startup Analyze a C44 Application Debug 5TM32F3 Discovery elf i i Search Project Project STM32F3 Discovery o Build IP required before launching Build configuration Use Active Select configuration using C C Application CO Enable auto build CO Disable auto build Use workspace settings Configure Workspace Settings a 42 48 Doc ID 023558 Rev 1 UM1562 Using Atollic TrueSTUDIO 9 Inthe Main tab configure the project as shown in Figure 54 and click OK to save your settings and to program the Flash memory and begin debugging Figure 55 TrueSTUDIO Debug window a Debug STM32F3 Discovery
23. ations Demonstration subfolder This subfolder contains the demonstration source files with preconfigured project for EWARM MDK ARM TASKING and TrueSTUDIO 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 TASKING and TrueSTUDIO toolchains See Section 4 and STMS2FSDISCOVERY peripheral firmware examples AN4062 for further details Doc ID 023558 Rev 1 ky UM1562 Description of the firmware package 2 3 Utilities folder This folder contains the abstraction layer for the STM32F3DISCOVERY hardware It provides the following drivers e sim32f3 discovery c provides functions to manage the user push button and 8 LEDs from LD3 to LD10 e sim32f3 discovery Ism303dihc c h provides functions to manage the MEMS LSM303DLHC e sim32f3_discovery_l3gd20 c h provides functions to manage the MEMS L3GD20 KY Doc ID 023558 Rev 1 11 48 Binary images for reprogramming firmware applications UM1562 3 12 48 Binary images for repr
24. d assembly levels set breakpoints monitor individual variables and watch events during the code execution KY Doc ID 023558 Rev 1 15 48 Using IAR Embedded Workbench for ARM UM1562 Figure 6 IAR Embedded Workbench debugger screen Na Demo IAR Embedded Workbench IDE File Edit View Project Debug Disassembly ST LINK Tools Window Help DEHE S e vi TUNE aut pne Wa APP H c Demo Files s I gt rie ain program E Garam None amp startup retval None STM32_U Hint main void Ha DI STM32F3 E stm3213 RCC ClocksTypeDef RCC Clocks Ha E stm32f3 E stm3213 SysTick end of count event each idms STM32F30 RCC GetClocksFreq sRCC Clocks Ha User SysTick Confiy RCC Clocks HCLK Frequency 100 hw confi main c Initialize LEDs and User Button available on SIM32F3 Discovery board G stm3213 STM_EVAL_LEDInit LED3 5TM EVAL LEDInit LED4 D system STM EVAL LEDInit LED5 S usb en STM EVAL LEDInit LED6 usb istre STM_EVAL_LEDInit LED sb pro 3TM EVAL LEDInit LED8 qup STM EVAL LEDInit LED9 E usb pwr c STM EVAL LEDInit LED10 Output STM EVAL PBInit BUTTON USER BUTTON MODE EXTI Configure the USB Demo Log Wed Jul 18 2012 12 27 03 Loaded debugee C PWA200 MantaEdge_Discovery_Kit FIRMWARE Project Demonstration EWARM Demo Exe Demo out Wed Jul 18 2012 12 27 03 Software reset was performed Wed
25. e Group 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 Target EB E Source Group p X main c tl 21 startup stm3el3Us s Doc ID 023558 Rev 1 27 48 Using MDK ARM Microcontroller Development Kit by Keil 6 3 2 Configuring project options UM1562 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 IARM 1 Start and Size settings as shown in Figure 32 Figure 32 Target Options dialog box Target tab kA Options for Tangi Newer ents Device Target Dutput Listing User CA Ces Asm Linker Debug Utilities 51 Microelectronics S TM 32F303VvE Stal MHz 5 0 Operating system Mone w Sustem Viewer File Sfr i ReadOnly Memory Areas default off chip Start Size Startup Code Generation Use Cross Module Optimization v Use MicroLIB Big Endian Floating Point Hardware Read Write Memory Areas default off chip Start Size N olnit ROM C E ROM2 r E ROM3 C C on chip ROM 08000000 J Osa0000 ROMZ ES HAM T RAMZ RAMS on chip IR AMT Ox20000000 IRAM2Z Ox8000 Cancel Defaults 3 Open the Debug tab click Use and select the ST Link Debugge
26. ew C C Project dialog box enter the new Project name then in the Project type box select TASKING ARM Application and click Next Figure 43 TASKING New C C Project dialog box W New LC Project C C Project Creabe a new Chil project For the TASKING k toolset For ARM Use default location Project type Lo TASKING ARM Apolicstiori SEV TYSIEC Helo World C Project Helo World C Project CI TASKING ARM Library LI TASKING ARM MIL Library Doc ID 023558 Rev 1 35 48 Using TASKING UM1562 4 From the list of supported devices select STMicroelectronics gt STM32F3035 STM32F303VCT6 as shown below in Figure 44 Figure 44 Processor selection Processor selection a expand Al ia y 57 Mcroeledrories 7 m a L TSTST Expand Sase gm 5mmzr1m E O sm Talapia l im 5T STOP S is T 5T 137 gi 574321151 a 510641152 is 1 5TMSEF205 ix 151x227 gm sms m START a amgen IS 5TA22F303 Fii 5 To configure the project for STM32F3 DISCOVERY board select Debug gt Debug configurations and choose STMicroelectronics STM32F3 Discovery Kit Choosing STMicroelectronics STM32F3 Discovery Kit as the evaluation board will add automatically the needed linker file and will configure the project as follows Microcontroller STM32F303VCT6 Debug probe ST LINK Connection Serial Wire Debugging SWD Figure 45 Debug configuration Project Debug Window Help S J n3 Deb ug 5TM3
27. iagnostics 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 eckor Table Memory Regions Stack Heap Sizes inbwec stark 0208000000 Se Cancel 5 Open the Memory Regions tab and enter the variables as shown in Figure 17 Figure 17 Linker configuration file editor dialog box Memory Regions tab Linker configuration file editor Vector Table Memory Regions Stack Heap Sizes 6 Click Save to save the linker settings automatically in the Project directory a 20 48 Doc ID 023558 Rev 1 UM1562 d Using IAR Embedded Workbench for ARM 7 f your source files include header files select 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 T a 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 o
28. ing TrueSTUDIO toolchain TrueSTUDIO includes a dedicated connection to the STM32F3DISCOVERY 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 STM32F3DISCOVERY 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 launches and asks for the Workspace location Browse to select an existing workspace or enter a new workspace location and click OK to confirm Doc ID 023558 Rev 1 43 48 d Using Atollic TrueSTUDIOG UM1562 Figure 56 TrueSTUDIO workspace launcher dialog box amp Workspace Launcher Select a workspace Stollic TrueS TUDIO mJ5TM32 Lite stores your projects in a folder called a workspace Choose a workspace Folder to use Far this session Workspace ciNew Workspace w 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 57 TrueSTUDIO C Project dialog box amp C Project C Project Create C project of selected t
29. ing an existing EWARM project 13 Before running your application establish the connection with the STM32F3DISCOVERY 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 22 48 Doc ID 023558 Rev 1 ky UM1562 Using MDK ARM Microcontroller Development Kit by Keil 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 shows the basic names of the windows referred to in this section Figure 22 MDK ARM pVision4 IDE environment Output Window 2 Inthe Project menu select Open Project to display the Select Project File dialog box Browse to select the STM32F3 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 SZ Doc ID 023558 Rev 1 23 48 Using MDK ARM Microcontroller Development Kit by Keil UM1562 4 f your project is successfully compiled the following Build Output window Figure 23 is displayed Figure 23 Build Output MDK ARM pVision4 project successfully compiled Build Output x compiling stm32f30 discovery c compiling stm3zf30x syscfg c compiling stm3zf30x misc c
30. ing your application establish the connection with the STM32F3DISCOVERY board as described in Section 1 Getting started 9 38 48 Doc ID 023558 Rev 1 UM1562 Using Atollic TrueSTUDIO 8 Using Atollic TrueSTUDIOG 8 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 49 TrueSTUDIO workspace launcher dialog box amp Workspace Launcher Select a workspace Stollic TrueS TLUDIO For STMicraeleckranicsig STM32 Lite stores your projects in a Folder called a workspace Choose a workspace Folder to use For this session Workspace CUSTM3ZF3 Discovery FIRMWARE Project Demonstration TruesTUbIG K Copy Settings ey 2 Browse to select the STM32FSDISCOVERY Demonstration TrueSTUDIO workspace and click OK to save your settings and to display the Welcome screen To start using Atollic TrueSTUDIOG click Start using TrueSTUDIO Figure 50 Atollic TrueSTUDIOG STM32 Lite welcome screen Ofte Anil True S CDT Lg lila dm oaa Mai hrair arch M Lite wersion EH Start using TrueSTUDLIO Click here to continue AY Doc ID 023558 Rev 1 39 48 Using Atollic TrueSTUDIOG UM1562 3 The TrueSTUDIO Discovery workspace contains a demo project for the STM32F3DISCOVERY kit To load this project select Import in the File menu to display
31. na naaa 15 5 3 Creating your first application using the EWARM toolchain 17 5 3 1 Managing source files 17 5 3 2 Configuring project options 19 6 Using MDK ARM Microcontroller Development Kit by Keil M 23 6 1 Building an existing MDK ARM project 23 6 2 Debugging and running your MDK ARM project 24 6 3 Creating your first application using the MDK ARM toolchain 26 6 3 1 Managing source files llle 26 6 3 2 Configuring project options 28 7 Using TASKING 0 0 ce AA nnne 31 2 48 Doc ID 023558 Rev 1 ky UM1562 Contents 7 1 Building an existing TASKING project 31 7 2 Debugging and running your TASKING project 34 7 3 Creating your first application using TASKING toolchain 35 Using Atollic TrueSTUDIO lt sss s e e ee 39 8 1 Building an existing TrueSTUDIO project 39 8 2 Debugging and running your TrueSTUDIO project 42 8 3 Creating your first application using TrueSTUDIO toolchain 43 Revision history 47 Doc ID 023558 Rev 1 3 48 List of tables List of tables Table 1 Table 2 4 48 UM1562 hioe ecierao PR m 1 Document revision history
32. ne per line Simulator Angel GDB Server TAP ROM monitor 8 To set 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 main Debugger Simulator Setup macros Angel Use macro file s GDB Server CTTO 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 sz GDB Server C Override default board file Debugger Doc ID 023558 Rev 1 21 48 Using IAR Embedded Workbench for ARM UM1562 10 Select the ST Link category open the ST Link tab and select SWD as the connection protocol as shown in Figure 21 Figure 21 ST Link communication protocol Assembler Output Converter Custom Build Build Actions Linker Debugger Simulator ST Link Interface QJT AG n OED GDB 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 Build
33. ogramming firmware applications This section describes how to use the provided binary images to reprogram the firmware applications The STM32F3DISCOVERY 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 system programming tool and 1 Connect the STM32F3DISCOVERY 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 CN4 jumpers ON 3 Use hex binary for example Project Demonstration Binary S TM32F3 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 Doc ID 023558 Rev 1 ky UM1562 ST LINK V2 installation and development 4 ST LINK V2 installation and development STM32F3DISCOVERY board includes an ST LINK V2 embedded debug tool interface that is supported by the following software toolchains IAR M 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
34. r Then click Settings and select the SWD protocol Click OK to save the ST Link setup settings 4 Select Run to main 28 48 Doc ID 023558 Rev 1 9 UM1562 Using MDK ARM Microcontroller Development Kit by Keil Figure 33 Target Options dialog box Debug tab Linker Gebua utiities Linker Debug Utilties Y Use ADI Interface Driver Settings Y Use ST Link Debugger lt Settings ULUNK Cortex Debugger z m SADI Interface Driver Curte mu usar Uia Satu v Load Altera Blaster Cortex Debugger m eles d Debug Trace Flash Download ST Link Debugge T Lr Rer Debug Se Siw Device JULINE Pro Cortex Debugger STINK A23 IDCODE On2B401 477 Serial Number N A Hw Version No Firmware Version 21550 T AuromauL emiLi Siw C Manual Configuration 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 d Device Target Output Listing User C C Asm Linker Debug Configure Flash Menu Command u se T arget Driver for Flash Programming ULINK Cortex Debugger lt Settings Y update Target before Debugging pa HLINE Cortes Debugger PEG Init File ED Interface Driver a Edit
35. rmware package UM1562 2 2 2 2 1 2 2 2 2 2 3 10 48 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 stmS2f30x s file e startup stm32f30x s provides the Cortex M4 startup code and interrupt vectors for all STM32F30x device interrupt handlers STM32F30x StdPeriph Driver subfolder This subfolder contains sources of STM32F30x 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 stm32f30x ppp c and a header file stm32f30x ppp h The stm32f30xx ppp c file contains all the firmware functions required to use the PPP peripheral STM32 USB FS Device Driver This subfolder contains USB Full Speed Library Core and the class drivers The Core folder contains the USB library machines as defined by the revision 2 0 Universal Serial Bus Specification The Class folder contains all the files relative to the Host class implementation It is compliant with the specification of the protocol built in these classes Project folder This folder contains the source files of the STM32F3DISCOVERY firmware applic
36. served 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
37. sing Atollic TrueSTUDIOG UM1562 5 Verify that the JTAG Probe is ST LINK and click Finish to confirm your settings Figure 59 TrueSTUDIO Misc Settings dialog box amp C Project TrueSTUDIO Misc Settings Select miscellaneous project settings JTAG Probes ST LINK ST LINK Aballic True5TUDTO Like only supports one type of JTAG probe Please purchase the Professional version to get support Far a large number of other types of JTAG probes lt n O C 6 Your project has been created successfully Atollic TrueSTUDIO generates target specific sample files main c stm32f30x it c in the Project folder to simplify the development You can tailor this project to your needs by modifying these sample files 7 To build your project click Build Project in the Project menu 8 Your project is compiled successfully Figure 60 TrueSTUDIO project successfully built i Problems YA Tasks El console 23 L1 Properties C Build NewProject C5 Program Filestitollic TruesTUDIO for STMicroelectronics STM3z Lite 2 9 05 Tools arm atollic reports jar sizeinfo NewProject elf Report and converter tools only available in True TULIO Professional Build complete for project New Project Time consumed 10125 ms 9 Before running your application establish the connection with the STM32F3DISCOVERY board as described in Section 1 Getting started To program the Flash memory and begin debugging follow the instructions gi
38. src main c Atollic TrueSTUDIO for ARM Pro File Edit View Run Window Help B pe Debug 2 3 a i m 5 3 E STM32F3 Discovery elf Embedded C C Application ng lt 4 STM32F3 Discovery elf 2 99 Thread 1 lt main gt Suspended User Request main at main c 82 Ox80005F6 pi gdb main c 23 B Outline 23 G LAW OK SJ stddef h P E EJ stm32fOxx rcc h Ow int main void SJ stm32f xx gpio h d es LED PORT uint32 t ii O LEDI GPIO InitTypeDef GPIO InitStructure LED2 NA H t KEY PORT TODO Adc iix code HER ne KEY SysTick Config 4800 0 1 ms 100us if clock frequency 12 MH tmeriuni2 t 6 timerFlag uint8 t SystemCoreClockUpdate SysTick Handler void void ii SystemCoreClock This is a way to read the Sy core e makundi sini ii 0 v ag lt gt EJ console 53 J Tasks fal Problems Q Executables ELI Sw Trace Log 23 E 5Wy Console E Memory STM32F3 Discovery elf Embedded C C Application ST LINK E 5g Fad x BE Ha El ro ndex ype ata ycles Atollic TrueSTUDIO gdbserver for ST Link Versic Copyright 2010 2012 Atollic AB lt Overflow packets 0 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 8 3 Creating your first application us
39. stom Build Build Actions Linker Debugger Simulator Angel GOB Server IAR ROM monitor J Link J Trace TI Stellaris Macraigor PE micro RDI JTAGjet ST LIMK Third Party Driver TI XUS100 Target Output Lib Processor variant Core Device ST STM32F303xC Endian made FFU Little VFPw4 Big Doc ID 023558 Rev 1 None Actel AnalagDevices Atmel Cirrus Energy Micro Epson Faraday Freescale Fujitsu Hilscher Haltek Infineon Intel Marvell Micronas MetSilicon Nuvoton MXF OKI ONSemiconductor Samsung Socle TexasInskrumaents Toshiba TO RS WW W ors F0 F F0 vx F0 or ro P xe iia F0 v x W F F0 F F ST STM3zF3o3 SPEAr STM3zF S 5TM32F100 5T7M32F101 5TM34F102 STM34F103 STMs2F105 STMs2F 107 5TM32F205 STM3S2F207 STM32F215 STM32F217 STM3zF4 5 5TM32F407 5T1M32F415 5TM32F417 STM32L151 STM32L152 STM32L152 STM32w1U 8 STR 710 STH 720 STR 750 5TR310 19 48 T o 0r no ono or ccr Ak At At At At AS Ss At At As At AA At o or F F Using IAR Embedded Workbench for ARM UM1562 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 Config Libra Input Output List define D
40. ting 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 JE JAR Embedded Workbench IDE Seles File Edit View Project Tools Window Help Da Eg ST gR oml 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 In the Project menu select Rebuild All to compile your project 14 48 Doc ID 023558 Rev 1 SZ UM1562 Using IAR Embedded Workbench for ARM 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 none Link time 0 05 CPU 0 03 elapsed Total number of errors 0 Total number of warnings U 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 in the 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 an
41. ts Z STM32F3 Discovery KC VS TM32F3 Discovery Select Al Deselect All Refresh 4 Copy projects nto workspace Working pets Add project te working sets 6 Inthe Projects window select the STM32F3 Discovery Kit and click Finish 7 In the Project Explorer select the STM32F3 Discovery project Open the Project menu and click Build Project 8 If your project is compiled successfully the following window is displayed Figure 40 TASKING project successfully compiled i Problems WAA El Console E Properties 9 items Description Resource Path i build completed successfully STM32F3 Discoverv Doc ID 023558 Rev 1 33 48 Using TASKING UM1562 7 2 Debugging and running your TASKING project Figure 41 shows the first step for debugging and running your TASKING project From the project toolbar menu select Debug 5 Debug STM32F3 Discovery Demo Figure 41 TASKING debug window 8 TASKING Debug STM32F3 Discavery Dema User main c TASKING VX toolset for ARM Carte 1G Ife Fie Eot Source Refactor Nawigate Search Project Debug Window Hep hl a gt amp ic SG J mt R S Hn E y TASKING Debug R lt 9 a TASKING CIC Ki i LI bal TASK DGS Register E Debug 777 Diti vanabla 2 Sa Breakpo Fr ei a i idl 1c gt Group Core a FS PS 1 3 SIM3PF 3Dwenvery Demo TASA AO OD S a TASKING Debugger 9 15 11 Ri anan zog Thread S t ARM Susp RZ O 0023600 2 main main c7
42. ven in Section 8 2 Debugging and running your TrueS TUDIO project 9 46 48 Doc ID 023558 Rev 1 UM1562 Revision history 9 Revision history Table 2 Document revision history BENE INNEN NN 04 Sep 2012 Initial release AY Doc ID 023558 Rev 1 47 48 UM1562 Please Read Carefully Information in this documentis 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 STS T
43. ype Project name NewProject Use default location CtNewworkspacetewProjet Project type Toolchains B E Executable E Atollic ARM Tools Empty Project 2351132 C Project lL Makefile project Show project types and toolchains only if they are supported on the platform Cancel a 44 48 Doc ID 023558 Rev 1 UM1562 Using Atollic TrueSTUDIO 4 Inthe TrueSTUDIO Build Settings dialog box select STM32F3 Discovery as the Evaluation board configure the other settings as shown in Figure 58 and click Next Figure 58 TrueSTUDIOG Build Settings dialog box amp C Project TrueSTUDIO Build Settings Select hardware and build configuration Target Vendor STMicraeleckranics Evaluation board STM32F3 Discover Lll s s m c A Ren m HH cR OON Wen mo om oom m Microcontroller Family Microcontroller Floating point Software implementation Code location Instruction set Endianess Big endian JLiktle endian Optimization Remove unused code dead code removal Remove unused data dead data removal v pin rUT i PES 2 s Si T TI E T FIT IP E Pd Irt I zi EI rel b ML n 1 Note Choosing STM32F3DISCOVERY as the evaluation board will configure the project as follows Microcontroller STM32F303VCT6 Debug probe ST LINK Connection Serial Wire Debug SWD d Doc ID 023558 Rev 1 45 48 U
Download Pdf Manuals
Related Search
Related Contents
エレコム|6750| katalog 2009_1.indd Harbor Freight Tools 65549 Air Compressor User Manual Neumann.Berlin GFM 132 User's Manual EC500 Extension to Cellular Version 4.1 User`s Guide CP 343-1 ERPC - Service, Support ErgoXS Footrest Basic 951 manual_KD 9570_Manual_DF.qxd LaCie LaCinema Play HD User's Manual Copyright © All rights reserved.
Failed to retrieve file