Visual Circuits H-DVP Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Servidores Visual Circuits H-DVP. Visual Circuits H-DVP User manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 385
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 0
April 2010 Doc ID 7705 Rev 11 1/385
UM0036
User Manual
ST Visual Develop
(STVD)
Introduction
Welcome to ST Visual Develop (STVD). STVD is a powerful, integrated development
environment for ST microcontrollers. This Windows-based environment provides interfaces
for all phases of application development, from building and debugging your application, to
programming your ST microcontroller.
New features described in this document are not present in earlier versions of STVD.
This document will help you get started developing your application with STVD. It includes:
Detailed descriptions of STVD’s user interface and features
Information about STVD features that are specific to your debugging hardware
Tutorials to help you learn to use STVD’s build, debug and program features
Features
For building your application, STVD supports ST Assembler-Linker, Cosmic C,
Raisonance C and Metrowerks C toolsets. Its graphics interface provides easy access to
a range of options when building your application for debugging or programming your
microcontroller.
For debugging your application, STVD supports a complete range of in-circuit
debugging, emulation hardware, and advanced debugging features, including advanced
breakpoints and trace recording that will make application development easy and fast. It
can also be used as a stand-alone tool, providing a software simulation of your
microcontroller’s behavior as it runs your application.
For programming, STVD provides a programming interface that is based on ST Visual
Programming (STVP) software and supports a complete range of hardware for in-circuit,
in-situ and socket programming.
www.st.com
Vista de página 0
1 2 3 4 5 6 ... 384 385

Resumo do Conteúdo

Página 1 - User Manual

April 2010 Doc ID 7705 Rev 11 1/385UM0036User ManualST Visual Develop(STVD)IntroductionWelcome to ST Visual Develop (STVD). STVD is a powerful, integr

Página 2 - Contents

List of tables UM003610/385 Doc ID 7705 Rev 11List of tablesTable 1. Debugging configurations and supported hardware . . . . . . . . . . . . . . . . .

Página 3 - Doc ID 7705 Rev 11 3/385

Project creation and build UM0036100/385 Doc ID 7705 Rev 11Figure 65. Cosmic C debug information viewIn this tab view, you can choose from the optimiz

Página 4 - 4/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 101/385Customizing Cosmic C compiler optimizationsTo further customize optimizations, select Custo

Página 5 - Doc ID 7705 Rev 11 5/385

Project creation and build UM0036102/385 Doc ID 7705 Rev 11Minimum number of bytes for activation of factorizationThis field allows you to enter an in

Página 6 - 6/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 103/385Figure 67. Cosmic C language viewIn this tab view, you can choose from the C language optio

Página 7 - Doc ID 7705 Rev 11 7/385

Project creation and build UM0036104/385 Doc ID 7705 Rev 11Customizing Cosmic C compiler listings To customize compiler listings, select Customize in

Página 8 - 8/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 105/385Customizing Cosmic C compiler preprocessor definitionsWhen the Category list box is set to

Página 9 - UM0036 Contents

Project creation and build UM0036106/385 Doc ID 7705 Rev 11Figure 70. Cosmic C compiler input viewThe input options are:● Treat Source files as C file

Página 10 - List of tables

UM0036 Project creation and buildDoc ID 7705 Rev 11 107/385 4.7.2 Cosmic C Assembler tabThe Assembler tab (see Figure 72) provides an interfa

Página 11

Project creation and build UM0036108/385 Doc ID 7705 Rev 11The Category list box allows you to access a general view for easy access to standard setti

Página 12 - List of figures

UM0036 Project creation and buildDoc ID 7705 Rev 11 109/385 Customizing Cosmic Assembler language settingsThe assembler language settings allo

Página 13 - Doc ID 7705 Rev 11 13/385

UM0036 List of tablesDoc ID 7705 Rev 11 11/385Table 52. Metrowerks C compiler language options. . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 14 - 14/385 Doc ID 7705 Rev 11

Project creation and build UM0036110/385 Doc ID 7705 Rev 11 4.7.3 Cosmic C linker tabThe Linker tab provides an interface for setting the opt

Página 15 - Doc ID 7705 Rev 11 15/385

UM0036 Project creation and buildDoc ID 7705 Rev 11 111/385General settings for Cosmic linkerWith the category set to General, you can access the foll

Página 16 - 16/385 Doc ID 7705 Rev 11

Project creation and build UM0036112/385 Doc ID 7705 Rev 11The Startup File list box allows you to choose to use one of the provided startup files. Th

Página 17 - Doc ID 7705 Rev 11 17/385

UM0036 Project creation and buildDoc ID 7705 Rev 11 113/385<BEGIN OBJECT_FILES>, <END OBJECT_FILES><BEGIN LIBRARY_FILES>, <END LI

Página 18 - 1 Introduction

Project creation and build UM0036114/385 Doc ID 7705 Rev 11● Protect - Protects the selected code section from optimization. Adds the -k option to the

Página 19

UM0036 Project creation and buildDoc ID 7705 Rev 11 115/385Figure 76. Cosmic linker output viewIn this view, the options listed in Ta ble 41 are avail

Página 20 - ICD configuration

Project creation and build UM0036116/385 Doc ID 7705 Rev 114.8 Customizing build settings for Raisonance C toolsetThe Project Settings window for bui

Página 21 - 1.5 Associated documentation

UM0036 Project creation and buildDoc ID 7705 Rev 11 117/385Figure 77. Standard optionsTo further customize options, select a category in the Category

Página 22 - 1.6 Conventions

Project creation and build UM0036118/385 Doc ID 7705 Rev 114.8.1 Raisonance C compiler tabThe C Compiler tab provides an interface for setting the op

Página 23 - 2 Getting started with STVD

UM0036 Project creation and buildDoc ID 7705 Rev 11 119/385General settings for the Raisonance toolsetWith the category set to General, you can access

Página 24 - 2.2.1 Create a new workspace

List of figures UM003612/385 Doc ID 7705 Rev 11List of figuresFigure 1. New Workspace window. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 25 - Doc ID 7705 Rev 11 25/385

Project creation and build UM0036120/385 Doc ID 7705 Rev 11When the category is set to General, the standard optimization options are:● Default optimi

Página 26 - 26/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 121/385Customizing Raisonance C compiler optimizationsOn the C Compiler tab of the Project Setting

Página 27

Project creation and build UM0036122/385 Doc ID 7705 Rev 11 As you select each option, you can see the changes in the command line in the Comm

Página 28 - 2.4 Build your application

UM0036 Project creation and buildDoc ID 7705 Rev 11 123/385In the C Language field, you can choose:● Default: compiler default language options● Ansi

Página 29 - Doc ID 7705 Rev 11 29/385

Project creation and build UM0036124/385 Doc ID 7705 Rev 11From the Listings field, you can choose:● None: all options are grayed out.● Default listin

Página 30 - 30/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 125/385Adding preprocessor definitionsWhen entering a preprocessor definition, you must specify th

Página 31

Project creation and build UM0036126/385 Doc ID 7705 Rev 11The category list box gives you access to the following views:● General, see General settin

Página 32 - 2.6 Debug your application

UM0036 Project creation and buildDoc ID 7705 Rev 11 127/3854.8.3 Raisonance C linker tabThe Linker tab of the Project Settings window provides an int

Página 33 - Doc ID 7705 Rev 11 33/385

Project creation and build UM0036128/385 Doc ID 7705 Rev 11General settings for Raisonance linkerWhen the category is set to General, you can access t

Página 34 - 34/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 129/385Customizing Raisonance linker input settingsOn the Linker tab of the Project Settings windo

Página 35 - Status bar

UM0036 List of figuresDoc ID 7705 Rev 11 13/385Figure 49. Adding custom commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 36 - Edit menu

Project creation and build UM0036130/385 Doc ID 7705 Rev 11Figure 87. Raisonance linker output viewThe following options are available in this view:●

Página 37 - Project menu

UM0036 Project creation and buildDoc ID 7705 Rev 11 131/3854.9 Customizing build settings for Metrowerks C toolsetThe Project Settings window for bui

Página 38 - Tools menu

Project creation and build UM0036132/385 Doc ID 7705 Rev 11Using the Project Settings interfaceThe tabs (C Compiler, Assembler and Linker) have a comm

Página 39 - Help menu

UM0036 Project creation and buildDoc ID 7705 Rev 11 133/385Figure 89. Customizing options4.9.1 Metrowerks C Compiler tabThe C Compiler tab provides a

Página 40 - 3.3 View windows

Project creation and build UM0036134/385 Doc ID 7705 Rev 11The Category list box provides a choice of standard options to choose from. For description

Página 41 - 3.4 Workspace window

UM0036 Project creation and buildDoc ID 7705 Rev 11 135/385Message DisplayWith the Category list box set to General, you can choose what types of mess

Página 42 - Workspace contextual menus

Project creation and build UM0036136/385 Doc ID 7705 Rev 11When the Category list box is set to General, the standard listing options are: ● C and Ass

Página 43 - 3.5 Editor windows

UM0036 Project creation and buildDoc ID 7705 Rev 11 137/385User-defined options This field allows you to enter the command for an option that you have

Página 44 - Supported file types

Project creation and build UM0036138/385 Doc ID 7705 Rev 11Customizing Metrowerks C compiler inputThe compiler input settings allow you to specify the

Página 45 - Doc ID 7705 Rev 11 45/385

UM0036 Project creation and buildDoc ID 7705 Rev 11 139/385Figure 92. Metrowerks C compiler input viewIn this view, you can choose from the optimizati

Página 46 - Margin features

List of figures UM003614/385 Doc ID 7705 Rev 11Figure 101. Customizing Metrowerks linker output view . . . . . . . . . . . . . . . . . . . . . . . . .

Página 47 - Doc ID 7705 Rev 11 47/385

Project creation and build UM0036140/385 Doc ID 7705 Rev 11Extra include filesThis field allows you to enter multiple files to include when compiling

Página 48 - Editor window positioning

UM0036 Project creation and buildDoc ID 7705 Rev 11 141/385 In addition, this view includes an Encryption field that allows you to enable and

Página 49 - 3.5.2 Editing features

Project creation and build UM0036142/385 Doc ID 7705 Rev 11Figure 94. Metrowerks C compiler listing viewIn this view, you choose from the listing opti

Página 50 - Parameter information

UM0036 Project creation and buildDoc ID 7705 Rev 11 143/385Customizing Metrowerks C compiler language settingsIn the C Compiler tab, select C Language

Página 51 - Indentation

Project creation and build UM0036144/385 Doc ID 7705 Rev 11Figure 96. Metrowerks Assembler general viewThe Category list box allows you to access a ge

Página 52 - Find features

UM0036 Project creation and buildDoc ID 7705 Rev 11 145/385Message displayWith the category set to General, you can choose what types of messages the

Página 53 - Find pull-down list

Project creation and build UM0036146/385 Doc ID 7705 Rev 11You can type the path name. When you begin typing, the -I for this compiler option is autom

Página 54 - Find in files

UM0036 Project creation and buildDoc ID 7705 Rev 11 147/385 Customizing Metrowerks Assembler listingsIf you choose Customize in the Listings l

Página 55 - Regular expressions

Project creation and build UM0036148/385 Doc ID 7705 Rev 114.9.3 Metrowerks linker tabThe Linker tab provides an interface for customizing the comman

Página 56 - 3.6 Output window

UM0036 Project creation and buildDoc ID 7705 Rev 11 149/385Output filename optionsAllows you to specify the name for the output file. It appears in th

Página 57 - Doc ID 7705 Rev 11 57/385

UM0036 List of figuresDoc ID 7705 Rev 11 15/385Figure 153. Define a periodic signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 58 - 3.6.4 Console tab

Project creation and build UM0036150/385 Doc ID 7705 Rev 11“Do not use environment” option (-NoEnv)This checkbox enables and disables the no environme

Página 59 - Doc ID 7705 Rev 11 59/385

UM0036 Project creation and buildDoc ID 7705 Rev 11 151/385Customizing Metrowerks linker optimization settingsTo further customize optimizations, sele

Página 60

Project creation and build UM0036152/385 Doc ID 7705 Rev 11Customizing Metrowerks linker output settingsTo further customize the linker output, select

Página 61

UM0036 Project creation and buildDoc ID 7705 Rev 11 153/385 Configuring the Metrowerks linker PRM fileThe Linker PRM file tab provides an inte

Página 62 - Edit/Debug tab

Project creation and build UM0036154/385 Doc ID 7705 Rev 11Note: If you specified to output in Hiware format in the Compiler or Assembler tabs, you mu

Página 63

UM0036 Project creation and buildDoc ID 7705 Rev 11 155/385You can also modify the memory type for any segment. Right-click on the Type cell for any s

Página 64

Project creation and build UM0036156/385 Doc ID 7705 Rev 114.10 Configuring folder and file settingsSTVD’s folder and file settings allow you to confi

Página 65 - 3.7.2 Customizing toolbars

UM0036 Project creation and buildDoc ID 7705 Rev 11 157/385When settings are available you can configure the following:● Always use custom build step:

Página 66 - Moving toolbars

Project creation and build UM0036158/385 Doc ID 7705 Rev 114.11 Specifying dependencies between projectsBecause a project may use an element or object

Página 67 - 3.7.3 Adding custom commands

UM0036 Project creation and buildDoc ID 7705 Rev 11 159/385 Once you have built your application for the selected microcontroller you are read

Página 68 - 68/385 Doc ID 7705 Rev 11

List of figures UM003616/385 Doc ID 7705 Rev 11Figure 205. Code coverage and profiling analysis: functions/instructions view . . . . . . . . . . . . .

Página 69 - 3.8 Tooltips

Basic debugging features UM0036160/385 Doc ID 7705 Rev 115 Basic debugging featuresOnce you have built your application for debugging, you can choose

Página 70 - Generate support file

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 161/3855.1 Selecting the debug instrumentYour choice of target microcontroller and debugging hardwa

Página 71 - Doc ID 7705 Rev 11 71/385

Basic debugging features UM0036162/385 Doc ID 7705 Rev 113. If the selected debug instrument is SWIM RLink or SWIM STice, then you can optionally ena

Página 72 - 7 steps to full migration

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 163/385Figure 104. Add an Ethernet connectionFor USB connections, either:● Enter the number for the

Página 73

Basic debugging features UM0036164/385 Doc ID 7705 Rev 11This returns you to the Debug Instrument Settings window. The new connection option has been

Página 74

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 165/385For most target MCUs, you may modify the following types of memory zone: RAM, ROM, Reserved a

Página 75 - 4 Project creation and build

Basic debugging features UM0036166/385 Doc ID 7705 Rev 11Figure 107. Specifying a new memory zone5.2.2 On-chip peripheralsThe Options tab of the MCU C

Página 76 - Toolset path information

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 167/3855.3 Running an applicationAn application loaded into the STVD may be run using the commands

Página 77 - Opening a .stw workspace

Basic debugging features UM0036168/385 Doc ID 7705 Rev 11The commands Go To PC, Run to Cursor and Set PC are also available in the Editor contextual m

Página 78 - Create an empty workspace

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 169/3855.3.3 Program and STVD status bar displayFigure 109. Debugger status on status bar● The left

Página 79 - Doc ID 7705 Rev 11 79/385

UM0036 List of figuresDoc ID 7705 Rev 11 17/385Figure 257. Emulator update window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 80 - 4.3.2 Creating new projects

Basic debugging features UM0036170/385 Doc ID 7705 Rev 11For debugging, the Editor's active window may contain either a C-language or an Assembly

Página 81 - Doc ID 7705 Rev 11 81/385

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 171/385Watch pop-upWhen a variable is selected in the active Editor window (the mouse pointer paused

Página 82 - 82/385 Doc ID 7705 Rev 11

Basic debugging features UM0036172/385 Doc ID 7705 Rev 115.4.1 Editor debug marginThe left margin of an Editor window is a special area for placing de

Página 83 - Adding files

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 173/385Note: A breakpoint and a bookmark may be placed together at the same position.● Breakpoint ic

Página 84 - 84/385 Doc ID 7705 Rev 11

Basic debugging features UM0036174/385 Doc ID 7705 Rev 11Figure 113. Call Stack frame indicatorThis highlighted line is the source for the instruction

Página 85 - 4.5.1 General settings tab

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 175/385Figure 114. QuickWatch windowQuickWatch functions are:● Recalculate: Recalculates the value o

Página 86 - 4.5.3 MCU selection tab

Basic debugging features UM0036176/385 Doc ID 7705 Rev 11Figure 116. PC in editor windowThe Disassembly window provides a disassembly of the selected

Página 87 - 4.5.4 Pre-link settings tab

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 177/385Figure 117. Program halted at breakpointNote: The information appearing in the Disassembly wi

Página 88 - 88/385 Doc ID 7705 Rev 11

Basic debugging features UM0036178/385 Doc ID 7705 Rev 11This simply means that the PC is placed in the middle of an instruction, rather than at the b

Página 89 - 4.6.1 ST ASM tab

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 179/3851. Select the address (so that it is highlighted in blue) at which you want to begin your ass

Página 90 - 4.6.2 ST Link tab

Introduction UM003618/385 Doc ID 7705 Rev 111 IntroductionThis chapter summarizes the features that are detailed later in this manual.1.1 Building an

Página 91 - Libraries

Basic debugging features UM0036180/385 Doc ID 7705 Rev 114. Click Assemble. The disassembly window will be refreshed as the new instruction is loaded

Página 92 - 4.6.3 ST Post-Link tab

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 181/385The search and edit options Find, Find Next and Replace may be used in the Memory window, to

Página 93 - Doc ID 7705 Rev 11 93/385

Basic debugging features UM0036182/385 Doc ID 7705 Rev 11Figure 126. Fill Memory dialog boxNote: Memory may also be modified directly by typing over t

Página 94 - 94/385 Doc ID 7705 Rev 11

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 183/385To restore a previously saved memory layout:a) Select File>Restore layout from the context

Página 95 - 4.7.1 Cosmic C compiler tab

Basic debugging features UM0036184/385 Doc ID 7705 Rev 115.8.2 Viewing the instruction breakpointsTo open the Instruction Breakpoints window, either c

Página 96

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 185/385If a breakpoint is set at the beginning of function f, such that:● The breakpoint condition i

Página 97 - Debug information

Basic debugging features UM0036186/385 Doc ID 7705 Rev 115.9 Data breakpointsNote: Data breakpoints are not available on the STVD EMU3 version. Howeve

Página 98 - Compiler messages display

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 187/385Figure 131. Inserting write data breakpointNote: Only read data breakpoints can be inserted t

Página 99

Basic debugging features UM0036188/385 Doc ID 7705 Rev 11Figure 132. Data breakpoints window (EMU2)Figure 133. Data breakpoints window (DVP and Simula

Página 100 -

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 189/385Figure 134. Call stack window and interaction with other debug windowsNow, if you want to ste

Página 101

UM0036 IntroductionDoc ID 7705 Rev 11 19/3851.2 Programming your microcontrollerWhen you are ready to program your application to your microcontroller

Página 102

Basic debugging features UM0036190/385 Doc ID 7705 Rev 11Figure 135. Stepping backwards in call stack5.11 Local variables windowThe Local Variables w

Página 103

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 191/3855.12 Watch windowIn addition to the Watch window description, this section provides informati

Página 104

Basic debugging features UM0036192/385 Doc ID 7705 Rev 11Modifying valuesVariable values can be modified directly in the Watch window. Double-click in

Página 105 - Doc ID 7705 Rev 11 105/385

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 193/385Interrupts (IT), and for the Simulator version only, the Simulator Time registers and the Sim

Página 106 - 106/385 Doc ID 7705 Rev 11

Basic debugging features UM0036194/385 Doc ID 7705 Rev 115.14 MSCI tools windowWhen developing applications that use the ST7 Mass Storage Communicati

Página 107 - 4.7.2 Cosmic C Assembler tab

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 195/385MSCI registers tabThe MSCI Registers tab displays the MSCI internal registers memeory and the

Página 108 - 108/385 Doc ID 7705 Rev 11

Basic debugging features UM0036196/385 Doc ID 7705 Rev 11In the resulting listing, there are three fields: File, which is the filename in which the sy

Página 109

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 197/385This allows you to check the value of the peripheral registers at any breakpoint in the debug

Página 110 - 4.7.3 Cosmic C linker tab

Basic debugging features UM0036198/385 Doc ID 7705 Rev 11Peripheral registers display optionsUsing the display options in the contextual menu, you can

Página 111 - Doc ID 7705 Rev 11 111/385

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 199/3855.18 Online commandsAn online command is a single line of input that you can use to control t

Página 112 - 112/385 Doc ID 7705 Rev 11

Contents UM00362/385 Doc ID 7705 Rev 11Contents1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 113 - Doc ID 7705 Rev 11 113/385

Introduction UM003620/385 Doc ID 7705 Rev 11ST7-DVP series emulator– Output signals triggered by advanced breakpoints– Trace recording and trace filte

Página 114 - 114/385 Doc ID 7705 Rev 11

Basic debugging features UM0036200/385 Doc ID 7705 Rev 115.18.4 The symbol-file commandsymbol-file filename [-readnow ] [ -mapped ]You can override th

Página 115

UM0036 Basic debugging featuresDoc ID 7705 Rev 11 201/385Limitations are documented in the current STVD Release Notes. When possible, workaround proce

Página 116

Simulator features UM0036202/385 Doc ID 7705 Rev 116 Simulator featuresIn addition to debugging with emulation hardware and in-circuit debugging devic

Página 117 - Doc ID 7705 Rev 11 117/385

UM0036 Simulator featuresDoc ID 7705 Rev 11 203/3854. To view/change the configuration settings, click on the Conf... button.The configuration setup

Página 118 - 118/385 Doc ID 7705 Rev 11

Simulator features UM0036204/385 Doc ID 7705 Rev 11signal while your application is not running, the signal is taken into account, or the countdown fo

Página 119 - Optimizations

UM0036 Simulator featuresDoc ID 7705 Rev 11 205/385Trigger a periodic binary signal with or without a time delay1. Select View>I/O Stimulation from

Página 120 - Program model (STM8 only)

Simulator features UM0036206/385 Doc ID 7705 Rev 11Trigger a binary signal on-the-fly1. Select View>I/O Stimulation from the main menu bar.The I/O

Página 121 - Doc ID 7705 Rev 11 121/385

UM0036 Simulator featuresDoc ID 7705 Rev 11 207/385 In the same stimuli file you can script inputs for multiple pins and different types of in

Página 122 - Generate only small objects

Simulator features UM0036208/385 Doc ID 7705 Rev 11format. Exported items can be quickly and easily imported into later simulations, facilitating comp

Página 123

UM0036 Simulator featuresDoc ID 7705 Rev 11 209/3851. Click on an item to select it. 2. Click on Add Item, or double-click on the item that you want t

Página 124

UM0036 IntroductionDoc ID 7705 Rev 11 21/3851.4 Getting assistanceFor more information, application notes, FAQs and software updates on all the ST mic

Página 125 - Doc ID 7705 Rev 11 125/385

Simulator features UM0036210/385 Doc ID 7705 Rev 11Figure 156. View plotted elementsThe following sections explain in greater detail how to use the pl

Página 126

UM0036 Simulator featuresDoc ID 7705 Rev 11 211/385 In the display area, value changes for selected items are displayed as:● Bus – a bar conta

Página 127

Simulator features UM0036212/385 Doc ID 7705 Rev 11cannot be sorted or moved. They remain in their initial order with the first level item that contai

Página 128 - 128/385 Doc ID 7705 Rev 11

UM0036 Simulator featuresDoc ID 7705 Rev 11 213/385Figure 157. No information to plotYou can also right-click in the row for an item to get the contex

Página 129 - Doc ID 7705 Rev 11 129/385

Simulator features UM0036214/385 Doc ID 7705 Rev 11Scroll features include a scroll bar with integrated scaling control, precision scrolling and fast

Página 130 - ● User defined options

UM0036 Simulator featuresDoc ID 7705 Rev 11 215/385The Previous / Next Change buttons allow you to navigate from one value change to another for the s

Página 131 - Doc ID 7705 Rev 11 131/385

Simulator features UM0036216/385 Doc ID 7705 Rev 11 Table 68. Plotter tab management commandsCommand DescriptionIn the Project MenuAdd New Tab

Página 132 - 132/385 Doc ID 7705 Rev 11

UM0036 Simulator featuresDoc ID 7705 Rev 11 217/385Modifying item display characteristicsTo improve the readability of your plot, you can modify the d

Página 133 - Doc ID 7705 Rev 11 133/385

Simulator features UM0036218/385 Doc ID 7705 Rev 11the simulation (time=0). Entering a value a value greater than zero shifts the start point to the r

Página 134 - Compiler memory models

UM0036 Simulator featuresDoc ID 7705 Rev 11 219/3852. Select the items you want to export. To select all the items in a display tab, place a checkmar

Página 135 - Debug info

Introduction UM003622/385 Doc ID 7705 Rev 111.6 ConventionsThe following conventions are used in the documentation:● Bold text highlights key terms an

Página 136 - Preprocessor definitions

Simulator features UM0036220/385 Doc ID 7705 Rev 11Figure 160. Select items for printing2. Select the items that you want to print. To select all the

Página 137

UM0036 Simulator featuresDoc ID 7705 Rev 11 221/385Figure 161. Memory and Watch windows with Read/Write on the flyNote that when you scroll in the Mem

Página 138

Simulator features UM0036222/385 Doc ID 7705 Rev 11Create and load a stimuli file on page 206 to trigger a signal on an interrupt request pseudo pin.T

Página 139 - Extra include paths

UM0036 In-circuit debuggingDoc ID 7705 Rev 11 223/3857 In-circuit debuggingIn-circuit debugging (ICD) allows you to debug an application in its final

Página 140 - Extra include files

In-circuit debugging UM0036224/385 Doc ID 7705 Rev 11When you enter a debugging session, the SWIM entry sequence activates the communication channel o

Página 141

UM0036 In-circuit debuggingDoc ID 7705 Rev 11 225/385For more information about setting up this hardware connection for STice, refer to the STice adva

Página 142

In-circuit debugging UM0036226/385 Doc ID 7705 Rev 11STVD attempts to connect to the microcontroller on your application board. If the connection fail

Página 143

UM0036 In-circuit debuggingDoc ID 7705 Rev 11 227/385 Caution: For XFlash devices, if write protection is enabled, the XFlash memory behaves l

Página 144

In-circuit debugging UM0036228/385 Doc ID 7705 Rev 11Figure 163. Setting the option byte valuesNote: After changing an option byte setting that is not

Página 145 - Message display

UM0036 In-circuit debuggingDoc ID 7705 Rev 11 229/385Note: ST7 MCUs with XFlash memory do not allow software breakpoints in memory sector 0. This sect

Página 146

UM0036 Getting started with STVDDoc ID 7705 Rev 11 23/3852 Getting started with STVDOnce you have installed and launched ST Visual Develop (STVD), th

Página 147

In-circuit debugging UM0036230/385 Doc ID 7705 Rev 117.2.3 Setting advanced breakpointsDepending on your target microcontroller and its debug modules,

Página 148

UM0036 In-circuit debuggingDoc ID 7705 Rev 11 231/385Figure 165. Disable instruction breakpoints promptDisable instruction breakpoints by clicking on

Página 149 - Strip debug information

In-circuit debugging UM0036232/385 Doc ID 7705 Rev 117.2.4 Advanced breakpoint optionsIn each debug module tab, you can program the following breakpoi

Página 150 - Library paths

UM0036 In-circuit debuggingDoc ID 7705 Rev 11 233/385occurrence of a data access at a specified address. (The addresses specified for each instance ca

Página 151

In-circuit debugging UM0036234/385 Doc ID 7705 Rev 111. Power up the STice box/RLink/STLink, depending on the hardware that you are using.2. Connect

Página 152

UM0036 In-circuit debuggingDoc ID 7705 Rev 11 235/385TRAP instruction limitation (ICC only)The TRAP interrupt vector is reserved for the ICC monitor d

Página 153

In-circuit debugging UM0036236/385 Doc ID 7705 Rev 11SWIM debugger limitationWhile the microcontroller is executing either a "Halt", "W

Página 154

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 237/3858 DVP and EMU2 (HDS2) emulator featuresThis section explains how to use the fea

Página 155 - Vector file name field

DVP and EMU2 (HDS2) emulator features UM0036238/385 Doc ID 7705 Rev 11The EMU2 Emulator version and the DVP versions are slightly different in the way

Página 156 - ● Build commands

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 239/385From this contextual menu, you can:● Refresh: Updates the window.● New Hardware

Página 157 - 4.10.2 Custom build tab

Getting started with STVD UM003624/385 Doc ID 7705 Rev 11Note: Workspace files for previous versions of STVD (.wsp) can be opened in STVD 3.0 and late

Página 158 - 4.12 Build commands

DVP and EMU2 (HDS2) emulator features UM0036240/385 Doc ID 7705 Rev 11Figure 169. Hardware event settings window for DVP2If you are using a Developmen

Página 159 - Table 57. Build commands

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 241/385Figure 171. Hardware events window (DVP2 emulators)– Right-click the mouse. The

Página 160 - 5 Basic debugging features

DVP and EMU2 (HDS2) emulator features UM0036242/385 Doc ID 7705 Rev 11To set a hardware event on a line of code1. Open the Hardware Events window.2.

Página 161 - ● and Add communication ports

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 243/385Figure 174. Trace contextual menuShow/hide columnsColumns may be disabled if the

Página 162

DVP and EMU2 (HDS2) emulator features UM0036244/385 Doc ID 7705 Rev 11Move columnsColumns may be also shifted right or left for convenience of use. Pi

Página 163 - Doc ID 7705 Rev 11 163/385

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 245/385Figure 178. Save Trace Contents dialog box8.3.2 Viewing trace contentsThe Trace

Página 164 - 5.2.1 Memory map

DVP and EMU2 (HDS2) emulator features UM0036246/385 Doc ID 7705 Rev 11Figure 179 and Figure 180 show all of the trace columns for each STVD version. Y

Página 165

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 247/385Figure 181. Hardware Test dialog box (DVP version)The Hardware Test dialog box s

Página 166 - 5.2.2 On-chip peripherals

DVP and EMU2 (HDS2) emulator features UM0036248/385 Doc ID 7705 Rev 118.5 Logical analyser (EMU2 emulators only)You can access the Logical Analyser w

Página 167 - 5.3 Running an application

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 249/385If the condition you define with the Logical Analyser consists of a single event

Página 168 - 5.3.2 Stepping modes

UM0036 Getting started with STVDDoc ID 7705 Rev 11 25/3852.2.2 Create a project in your workspaceFigure 2. New project windowIn the New Project windo

Página 169 - 5.4 Editor debug actions

DVP and EMU2 (HDS2) emulator features UM0036250/385 Doc ID 7705 Rev 11set to 0 or 1 except in the case of the Read/Write signal, where for clarity&apo

Página 170 - Editor contextual menu

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 251/385Figure 186. Event 1 as programmed8.5.2 Advanced breaks using the logical analys

Página 171 - Watch pop-up

DVP and EMU2 (HDS2) emulator features UM0036252/385 Doc ID 7705 Rev 11Figure 187. Defining an advanced breakpointYou can continue to apply break condi

Página 172 - Margin icons

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 253/385previous event condition recordings are completed (for example, Event 2 conditio

Página 173 - Doc ID 7705 Rev 11 173/385

DVP and EMU2 (HDS2) emulator features UM0036254/385 Doc ID 7705 Rev 11Figure 190. Trace filtering event schematics8.6 Stack control window (DVP emula

Página 174 - 5.4.2 QuickWatch window

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 255/385Figure 192. Configuration setup window5. Click on OK when you have set up the St

Página 175 - 5.5 Disassembly window

DVP and EMU2 (HDS2) emulator features UM0036256/385 Doc ID 7705 Rev 11an external measurement instrument, such as an oscilloscope. When a user-defined

Página 176 - 176/385 Doc ID 7705 Rev 11

UM0036 DVP and EMU2 (HDS2) emulator featuresDoc ID 7705 Rev 11 257/385Figure 194. DVP1 trigger settingsWorking with trace filtering (DVP2 and DVP3 onl

Página 177 - Doc ID 7705 Rev 11 177/385

STice features UM0036258/385 Doc ID 7705 Rev 119 STice featuresThe STice advanced emulation tool used in conjunction with STVD supports all of the fea

Página 178 - 5.6 Online assembler

UM0036 STice featuresDoc ID 7705 Rev 11 259/385Figure 196. STice trace windowFigure 196 shows most of the trace columns. You can preselect which of th

Página 179 - Doc ID 7705 Rev 11 179/385

Getting started with STVD UM003626/385 Doc ID 7705 Rev 11Figure 3. MCU selection dialog boxNote: If necessary, you can change the MCU selection later

Página 180 - 5.7 Memory window

STice features UM0036260/385 Doc ID 7705 Rev 11window (all others are hidden). The record number and timestamp are not recalculated when lines are rem

Página 181 - 5.7.2 Viewing features

UM0036 STice featuresDoc ID 7705 Rev 11 261/385wide. As a result, the read value may be 1, 2 or 3-bytes long. These data bytes are constants or part o

Página 182 - 182/385 Doc ID 7705 Rev 11

STice features UM0036262/385 Doc ID 7705 Rev 11events when a Discontinuity message occurs between them. However, the relative time elapsed between two

Página 183 - 5.8 Instruction breakpoints

UM0036 STice featuresDoc ID 7705 Rev 11 263/385Figure 198. Trace Display Filter dialog box● Filter lines: Trace records can be filtered using the Trac

Página 184 - 184/385 Doc ID 7705 Rev 11

STice features UM0036264/385 Doc ID 7705 Rev 11● Goto Source, Goto Disassembly: You may use these commands in the contextual menu to jump to either an

Página 185 - 5.8.4 Showing breakpoints

UM0036 STice featuresDoc ID 7705 Rev 11 265/385select Column Display in the Trace contextual menu. This opens a list of all the columns available in t

Página 186 - 5.9 Data breakpoints

STice features UM0036266/385 Doc ID 7705 Rev 11window (via the BEM)—but doing so disables the Trace On/Off command in the Trace Contextual menu. 9.2

Página 187 - Doc ID 7705 Rev 11 187/385

UM0036 STice featuresDoc ID 7705 Rev 11 267/385There are three counter sizes:● Small 15-bit occurrence counters with a maximum value of 32767● Large 3

Página 188 - 5.10 Call stack window

STice features UM0036268/385 Doc ID 7705 Rev 11Figure 202. Data coverage and occurrence profiling settings windowFigure 203. Code coverage and profili

Página 189 - Doc ID 7705 Rev 11 189/385

UM0036 STice featuresDoc ID 7705 Rev 11 269/3853. If you have selected Code coverage and profiling in the Time Profiling section, select the Time rec

Página 190

UM0036 Getting started with STVDDoc ID 7705 Rev 11 27/385 2.3 Add source files (.asm, .c, .s) to your projectSource files (.asm, .c, .s) cont

Página 191 - 5.12 Watch window

STice features UM0036270/385 Doc ID 7705 Rev 11Figure 204. Code coverage and profiling settings windowYou can select the frequency of the profiler tim

Página 192 - 5.13 Core registers window

UM0036 STice featuresDoc ID 7705 Rev 11 271/385have chosen two small counters to record read and write operations separately, the maximum value may be

Página 193 - Doc ID 7705 Rev 11 193/385

STice features UM0036272/385 Doc ID 7705 Rev 111. In the main window, from the Debug Instrument menu, select Profiling Session Start.2. Start executi

Página 194 - 5.14 MSCI tools window

UM0036 STice featuresDoc ID 7705 Rev 11 273/385● Contextual percentageIndicates the time spent executing code in the function as a percentage of the t

Página 195 - 5.15 Symbols browser

STice features UM0036274/385 Doc ID 7705 Rev 11It is possible to sort the columns according to alphabetical order for Function, Interrupt and Source f

Página 196 - 196/385 Doc ID 7705 Rev 11

UM0036 STice featuresDoc ID 7705 Rev 11 275/385● Read (Yes/No)Indicates whether the variable was read or not.● Write (Yes/No)Indicates whether the var

Página 197 - Doc ID 7705 Rev 11 197/385

STice features UM0036276/385 Doc ID 7705 Rev 11Figure 208. Data coverage and profiling analysis: source viewThe green spot in the margin identifies th

Página 198 - 5.17 Memory trace window

UM0036 STice featuresDoc ID 7705 Rev 11 277/385Caution: Code that is not executed because it is not properly covered in the validation test plan can b

Página 199 - 5.18 Online commands

STice features UM0036278/385 Doc ID 7705 Rev 11Figure 210. Source view of test suiteFigure 211. Coverage and Profiling Analysis of test suite after a

Página 200 - 5.18.6 The help command

UM0036 STice featuresDoc ID 7705 Rev 11 279/385Detecting dead codeWhen you run a coverage and profiling session, the areas of code that are not execut

Página 201 - General debug limitations

Getting started with STVD UM003628/385 Doc ID 7705 Rev 11Figure 6. Workspace windowCaution: When building with ST Assembler Linker, your application s

Página 202 - 6 Simulator features

STice features UM0036280/385 Doc ID 7705 Rev 11Optimizing variablesUnused variables: The results of a coverage and profiling session can help you exam

Página 203 - Doc ID 7705 Rev 11 203/385

UM0036 STice featuresDoc ID 7705 Rev 11 281/3854. Expand each code block in turn.Expand successively the most time-consuming functions and instructio

Página 204 - 204/385 Doc ID 7705 Rev 11

STice features UM0036282/385 Doc ID 7705 Rev 11Figure 216. Bottleneck detection: bottom levelstatic unsigned int result=0;unsigned int Speed = 100;uns

Página 205 - Periodic signal example

UM0036 STice featuresDoc ID 7705 Rev 11 283/385Assessing the performance of time-critical codeTime-critical sections of code are those that are execut

Página 206 - 206/385 Doc ID 7705 Rev 11

EMU3 emulator features UM0036284/385 Doc ID 7705 Rev 1110 EMU3 emulator featuresThis section explains how to use the features that are specific to th

Página 207 - Using your stimuli file

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 285/385Figure 217. EMU3 trace windowFigure 217 shows most of the trace columns. You can preselect whic

Página 208 - 208/385 Doc ID 7705 Rev 11

EMU3 emulator features UM0036286/385 Doc ID 7705 Rev 11The event column serves chiefly to allow you to filter out the hardware cycles of interest usin

Página 209 - 6.3.2 Plotter window

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 287/385Figure 218. Trace contextual menuFilter linesTrace records can be filtered using the Trace Disp

Página 210 - Display tabs

EMU3 emulator features UM0036288/385 Doc ID 7705 Rev 11Figure 219. Trace Display Filter dialog box● Display Source Lines: This option includes the sou

Página 211 - Name column

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 289/385Previous Code Fetch, Next Code Fetch commandsIf you highlight a trace record of an opcode fetch

Página 212 - Value column

UM0036 Getting started with STVDDoc ID 7705 Rev 11 29/385Figure 7. Project configurations window3. To view the project settings that have been applie

Página 213 - Navigating in the plot

EMU3 emulator features UM0036290/385 Doc ID 7705 Rev 11Figure 221. Show/hide columnsColumns may also be shifted right or left for convenience of use.

Página 214

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 291/385Figure 223. Setting timestamp clockThe timestamp clock frequency determines the granularity of

Página 215

EMU3 emulator features UM0036292/385 Doc ID 7705 Rev 11Actions that may be performed upon the occurrence of the defined event or sequence of events ca

Página 216

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 293/385Each level can incorporate up to four events. The level defines the relationship between these

Página 217 - Modifying expressions

EMU3 emulator features UM0036294/385 Doc ID 7705 Rev 11When you click on the IF button in the Programmable Level portion of the window, as shown in Fi

Página 218 - 218/385 Doc ID 7705 Rev 11

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 295/385Figure 226. Defining Level 1, Event 1An event may incorporate any of the following:–A Memory Ev

Página 219 - Printing a plot

EMU3 emulator features UM0036296/385 Doc ID 7705 Rev 11Figure 227. Then window9. Continue defining the level using the remaining Else If and Then com

Página 220 - 220/385 Doc ID 7705 Rev 11

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 297/385Figure 228. Memory eventsAn event may be defined as one of the following types of memory access

Página 221 - 6.5 Forcing interrupts

EMU3 emulator features UM0036298/385 Doc ID 7705 Rev 11Figure 230. Memory Access with Data dialog boxThe dialog box at right is the same as for the Me

Página 222

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 299/385Figure 231. Opcode Fetch dialog box● Opcode Fetch with Data: An opcode fetch of a specified val

Página 223

UM0036 ContentsDoc ID 7705 Rev 11 3/3853.6.2 Find in Files 1 & Find in Files 2 tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . 583.6.3

Página 224 - 224/385 Doc ID 7705 Rev 11

Getting started with STVD UM003630/385 Doc ID 7705 Rev 112.5 Select and connect to your debug instrumentSTVD allows you to debug your application usi

Página 225 - 7.1.2 Selecting your MCU

EMU3 emulator features UM0036300/385 Doc ID 7705 Rev 11Figure 232. Opcode Fetch with Data dialog boxNote: When Any Memory Access or Opcode Fetch is se

Página 226 - Options tab

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 301/385that shows how to specify a value with selected bits masked, is given in Section 10.5.1 on page

Página 227

EMU3 emulator features UM0036302/385 Doc ID 7705 Rev 11Figure 235. Advanced breakpoints configuration summary10.2.7 Synoptic representation of advance

Página 228

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 303/385Programmed and unused levels are differentiated by color coding. The currently active Level is

Página 229 - 7.2.2 Hardware breakpoints

EMU3 emulator features UM0036304/385 Doc ID 7705 Rev 11Figure 238. Configuration disabled10.2.8 Saving and loading advanced breakpointsYou can store

Página 230 - 230/385 Doc ID 7705 Rev 11

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 305/3851. From the main menu, select Debug Instrument > Advanced Breakpoints.2. In the Advanced Bre

Página 231 - Doc ID 7705 Rev 11 231/385

EMU3 emulator features UM0036306/385 Doc ID 7705 Rev 11Figure 241. Programming Then6. Check the Enable Configuration box at the top left corner of the

Página 232 - 232/385 Doc ID 7705 Rev 11

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 307/385 Example 2—Break on memory access with data maskingThis example is an elaboration of th

Página 233 - Doc ID 7705 Rev 11 233/385

EMU3 emulator features UM0036308/385 Doc ID 7705 Rev 11Figure 243. Programming memory access with data4. In the Level 1 tab, click Then and set the de

Página 234 - Stack limitation (ICC only)

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 309/385 The Configuration Summary of the Advanced Breakpoints window should appear as shown in

Página 235 - ST72F325 FF00 - FFDF

UM0036 Getting started with STVDDoc ID 7705 Rev 11 31/385Figure 10. Debug instrument target port selectionThe SWIM debugger has two additional paramet

Página 236 - SWIM debugger limitation

EMU3 emulator features UM0036310/385 Doc ID 7705 Rev 11Example 1—Trace ON inside a functionThis example shows you how to program the Advanced Breakpoi

Página 237 - 8.2 Using hardware events

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 311/3851. Open the Advanced Breakpoints window.2. Configure your Advanced Breakpoints window as summar

Página 238 - 238/385 Doc ID 7705 Rev 11

EMU3 emulator features UM0036312/385 Doc ID 7705 Rev 11Example 5—Measuring long time periods between eventsThe trace recording includes a Timestamp fi

Página 239 - Doc ID 7705 Rev 11 239/385

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 313/3851. Open the Trace window.2. Right-click the mouse in the Trace window and select Show/Hide Col

Página 240 - 240/385 Doc ID 7705 Rev 11

EMU3 emulator features UM0036314/385 Doc ID 7705 Rev 11Figure 247. Output trigger action modes10.4.1 Trigger programming examplesThe following exampl

Página 241 - Doc ID 7705 Rev 11 241/385

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 315/385 The Advanced Breakpoints window should appear as shown in Figure 248.Figure 248. Progr

Página 242 - 8.3 Trace recording

EMU3 emulator features UM0036316/385 Doc ID 7705 Rev 11Figure 249. Programming level 1Example 3: Setting the trigger output high or lowIn the previous

Página 243 - Show/hide columns

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 317/385 Yo u r Advanced Breakpoints window should appear as shown in Figure 250.Figure 250.

Página 244 - Saving trace to file

EMU3 emulator features UM0036318/385 Doc ID 7705 Rev 11Figure 251. Defining events using Analyzer probe signalsAs shown in Figure 251, you can provide

Página 245 - 8.3.2 Viewing trace contents

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 319/385Example 2—Setting an advanced breakpoint on an input probe valueThis program allows you to make

Página 246 - 8.4 Using hardware testing

Getting started with STVD UM003632/385 Doc ID 7705 Rev 11Figure 12. Restart with SWIM off option2.6 Debug your applicationIn the Debug context, STVD p

Página 247 - Doc ID 7705 Rev 11 247/385

EMU3 emulator features UM0036320/385 Doc ID 7705 Rev 11Figure 253. Performance Analysis dialog boxIn this dialog box, you must specify the following:●

Página 248 - 248/385 Doc ID 7705 Rev 11

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 321/385number of passes executed are reset to zero and a new record is made, starting from the Program

Página 249 - To define an event:

EMU3 emulator features UM0036322/385 Doc ID 7705 Rev 11● Statistics for one pass through portion of code: These values concern timing data for the sel

Página 250 - 250/385 Doc ID 7705 Rev 11

UM0036 EMU3 emulator featuresDoc ID 7705 Rev 11 323/385● Show All modifies the scale of the graph to include the whole record in the visible area.● Pr

Página 251 - To define an advanced break:

EMU3 emulator features UM0036324/385 Doc ID 7705 Rev 1110.8 Performing automatic firmware updatesYour emulation hardware contains programmable logic

Página 252 - 252/385 Doc ID 7705 Rev 11

UM0036 ProgramDoc ID 7705 Rev 11 325/38511 ProgramOnce you have finished debugging your application and have built the final version, you can program

Página 253 - Doc ID 7705 Rev 11 253/385

Program UM0036326/385 Doc ID 7705 Rev 11Depending on your target microcontroller you will be able to configure the following:● The programming hardwar

Página 254 - Setting the stack control

UM0036 ProgramDoc ID 7705 Rev 11 327/385ICP mode with Option Bytes Disabled is a safe programming mode that allows you to start your MCU while ignorin

Página 255 - Doc ID 7705 Rev 11 255/385

Program UM0036328/385 Doc ID 7705 Rev 11Unlock deviceThe Unlock Device option is only available for specific Flash devices. If you check this option,

Página 256 - 256/385 Doc ID 7705 Rev 11

UM0036 ProgramDoc ID 7705 Rev 11 329/3851. Select a memory area from the Memory Area list box. 2. Click on the Add button to open a browse window. 3.

Página 257 - Doc ID 7705 Rev 11 257/385

UM0036 Getting started with STVDDoc ID 7705 Rev 11 33/385Figure 13. Programmer windowFrom this window, you have interfaces that allow you to:● Select

Página 258 - 9 STice features

Program UM0036330/385 Doc ID 7705 Rev 111. Right-click in the option byte’s Description field to see the pop-up list of possible settings.2. Click on

Página 259 - Doc ID 7705 Rev 11 259/385

UM0036 ProgramDoc ID 7705 Rev 11 331/385To start the programing sequence, click on the Start button. The Programmer connects to your target MCU and be

Página 260 - 260/385 Doc ID 7705 Rev 11

STM8 C tutorial UM0036332/385 Doc ID 7705 Rev 1112 STM8 C tutorialThe STM8 tutorial illustrates some of the main features of STVD by guiding you thro

Página 261 - Doc ID 7705 Rev 11 261/385

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 333/38512.1 SetupIn this lesson you will learn how to setup the workspace environment so that you can build,

Página 262 - 9.1.2 Trace contextual menu

STM8 C tutorial UM0036334/385 Doc ID 7705 Rev 1112.1.2 Create a workspaceBefore you can build or debug an application with STVD, you must create a wo

Página 263 - Doc ID 7705 Rev 11 263/385

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 335/3851. In the main menu bar, select Project>Add New Project to Workspace.2. In the New Project window,

Página 264 - 264/385 Doc ID 7705 Rev 11

STM8 C tutorial UM0036336/385 Doc ID 7705 Rev 11Figure 265. MCU selection8. Save your workspace; select File>Save Workspace.RESULT: <toolset>

Página 265 - 9.1.3 Emulator commands

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 337/385The working directory contains the following:● three files: main.c, and– for Cosmic: cosmic.stp, stm8_

Página 266 - 9.2 Coverage and profiling

STM8 C tutorial UM0036338/385 Doc ID 7705 Rev 11Figure 267. Project with source file and dependenciesRESULT:Your project workspace now contains the ap

Página 267 - Doc ID 7705 Rev 11 267/385

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 339/38512.2 BuildIn this lesson you will learn how to configure project settings and build the application fo

Página 268 - STice features UM0036

Your STVD graphical environment UM003634/385 Doc ID 7705 Rev 113 Your STVD graphical environmentThese sections describe the layout of STVD: the vario

Página 269 - Doc ID 7705 Rev 11 269/385

STM8 C tutorial UM0036340/385 Doc ID 7705 Rev 11Figure 268. Select the MCU4. Click on the name of the MCU (STM8S208MB), then click on the Select butt

Página 270

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 341/385Note that STVD automatically fills in the Additional include directories when you add files to your pr

Página 271 - Doc ID 7705 Rev 11 271/385

STM8 C tutorial UM0036342/385 Doc ID 7705 Rev 11Figure 270. C compiler options for Cosmic12.2.3 Change build settings for a specific fileIn addition

Página 272 - Functions/Instructions View

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 343/385Figure 271. Exclude the makefile from buildNote: At the file level the Project Settings window only di

Página 273 - Doc ID 7705 Rev 11 273/385

STM8 C tutorial UM0036344/385 Doc ID 7705 Rev 1112.3 Start debuggingIn this lesson you will learn how to start a debugging session and run the applica

Página 274 - Data View

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 345/385Activate a featureYou can enable and disable some debug options. For this session we want to use the W

Página 275 - Source View

STM8 C tutorial UM0036346/385 Doc ID 7705 Rev 111. If it is not already open, double-click on timer.c to open the source file in an Editor window.2. S

Página 276 - 276/385 Doc ID 7705 Rev 11

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 347/385Figure 275. Step over line 242 to line 2431. Select Debug>Step Over to step over the reset_bug_coun

Página 277 - Doc ID 7705 Rev 11 277/385

STM8 C tutorial UM0036348/385 Doc ID 7705 Rev 1112.4.1 Set an instruction breakpoint1. If it is not already open, double-click on timer.c to open the

Página 278

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 349/385Figure 277. Instruction breakpoints5. Select Debug>Continue to run the application from line 107 to

Página 279 - Monitoring stack space usage

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 35/385Figure 14. Main application windowStatus barThe status bar in the lower frame of the ST

Página 280 - Optimizing variables

STM8 C tutorial UM0036350/385 Doc ID 7705 Rev 1112.4.3 Set a condition on an instruction breakpoint1. In the Instruction Breakpoints window double-cl

Página 281 - Doc ID 7705 Rev 11 281/385

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 351/38512.5 View executionIn this lesson you will learn the STVD features that allow you to view the applicat

Página 282 - 282/385 Doc ID 7705 Rev 11

STM8 C tutorial UM0036352/385 Doc ID 7705 Rev 11Figure 282. QuickWatch window7. In the Editor window place the cursor over the count variable, a pop-

Página 283 - UM0036 STice features

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 353/385Figure 284. Watch window6. In the Editor window, click to place the cursor on line 123.7. Click on De

Página 284 - 10 EMU3 emulator features

STM8 C tutorial UM0036354/385 Doc ID 7705 Rev 11Figure 285. Memory and Watch windows12. In the Watch window right-click to display the Watch window co

Página 285 - Doc ID 7705 Rev 11 285/385

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 355/38512.6 Perform memory mappingMemory mapping is the process of defining which areas of memory can be acce

Página 286 - 10.1.2 Trace contextual menu

STM8 C tutorial UM0036356/385 Doc ID 7705 Rev 11Figure 287. MCU configuration9. Click on OK in the error message box. In the MCU Configuration window

Página 287 - Filter lines

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 357/38512.7.1 View program execution historyThe Trace window is used to view the contents of the trace buffe

Página 288 - Goto Source, Goto Disassembly

STM8 C tutorial UM0036358/385 Doc ID 7705 Rev 11Figure 289. Saving trace contentsThe last 100 records are saved to file where they can be read using a

Página 289 - Column display

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 359/385Figure 290. Memory and Watch windows6. In the Editor window, locate the bugCountDown variable, select

Página 290 - 10.1.3 Emulator commands

Your STVD graphical environment UM003636/385 Doc ID 7705 Rev 113.2 The main menus and their commandsSTVD’s menus provide a range of common commands f

Página 291 - Doc ID 7705 Rev 11 291/385

STM8 C tutorial UM0036360/385 Doc ID 7705 Rev 1112.7.3 Set an advanced breakpointThe Advanced Breakpoints window gives access to a powerful function

Página 292 - 292/385 Doc ID 7705 Rev 11

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 361/3856. The Configuration Summary field shows the logic structure, event definitions and actions to take fo

Página 293 - Doc ID 7705 Rev 11 293/385

STM8 C tutorial UM0036362/385 Doc ID 7705 Rev 118. In the Advanced Breakpoints window click on the Synoptic tab. This tab displays a block diagram of

Página 294 - 294/385 Doc ID 7705 Rev 11

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 363/38515. From the Trace contextual menu select Column Display... Click on Uncheck all, then check the foll

Página 295 - Doc ID 7705 Rev 11 295/385

STM8 C tutorial UM0036364/385 Doc ID 7705 Rev 11Figure 296. Setting up a performance analysis4. Click on Apply and then Run.5. When the program execu

Página 296 - 10.2.2 Memory access events

UM0036 STM8 C tutorialDoc ID 7705 Rev 11 365/385To make the trap interrupt occur more frequently: 1. Restart the application.2. Locate the state vari

Página 297 - Doc ID 7705 Rev 11 297/385

ST Assembler/Linker build tutorial UM0036366/385 Doc ID 7705 Rev 1113 ST Assembler/Linker build tutorialThis build tutorial takes you through the ste

Página 298 - 298/385 Doc ID 7705 Rev 11

UM0036 ST Assembler/Linker build tutorialDoc ID 7705 Rev 11 367/385RESULT:The Workspace window now contains the workspace my_workspace.stw. Note, howe

Página 299 - Doc ID 7705 Rev 11 299/385

ST Assembler/Linker build tutorial UM0036368/385 Doc ID 7705 Rev 11To do this:1. First, enter the name realtime in the Project Filename field2. Enter

Página 300 - 10.2.3 Other types of events

UM0036 ST Assembler/Linker build tutorialDoc ID 7705 Rev 11 369/385Adding source files to the project1. Selecting Project>Insert Files Into Project

Página 301 - Doc ID 7705 Rev 11 301/385

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 37/385View menuThe commands in the View menu open the Workspace, Output and Instruction Break

Página 302 - 302/385 Doc ID 7705 Rev 11

ST Assembler/Linker build tutorial UM0036370/385 Doc ID 7705 Rev 115. Drag the file st72311n4.inc to the Include Files folder.6. You can save your w

Página 303 - Doc ID 7705 Rev 11 303/385

UM0036 ST Assembler/Linker build tutorialDoc ID 7705 Rev 11 371/385The application source contains a routine under the #ifdef DEBUG_IT (lines 153-155

Página 304 - 304/385 Doc ID 7705 Rev 11

ST Assembler/Linker build tutorial UM0036372/385 Doc ID 7705 Rev 11Figure 303. Exclude file from buildTo do this:1. In the field on the left side of t

Página 305 - Doc ID 7705 Rev 11 305/385

UM0036 ST Assembler/Linker build tutorialDoc ID 7705 Rev 11 373/385RESULT:The commands invoked, error messages and warnings that occur during the buil

Página 306 - 306/385 Doc ID 7705 Rev 11

ST Assembler/Linker build tutorial UM0036374/385 Doc ID 7705 Rev 11Figure 304. Change the build configurationTo change the build configuration:1. From

Página 307

UM0036 ST Assembler/Linker build tutorialDoc ID 7705 Rev 11 375/385Entering a user-defined commandUser-defined commands such as those applied in the P

Página 308

ST Assembler/Linker build tutorial UM0036376/385 Doc ID 7705 Rev 117. Type a space then the pathname for the folder where you want to save the copy o

Página 309

UM0036 Product supportDoc ID 7705 Rev 11 377/385Appendix A Product supportIf you experience any problems with this product, or if you need spare part

Página 310

Product support UM0036378/385 Doc ID 7705 Rev 11A.3 Getting prepared before you callCollect the following information about the product before contac

Página 311

UM0036 Revision historyDoc ID 7705 Rev 11 379/385Revision history Table 87. Document revision historyDate Revision Changes1 Initial release.1-

Página 312

Your STVD graphical environment UM003638/385 Doc ID 7705 Rev 11Build menuThe Build menu contains the commands that allow you to set the configuration

Página 313

Revision history UM0036380/385 Doc ID 7705 Rev 1122-Nov-2007 6Added section What’s new with STVD 4.0.1 on page 24.Deleted Section 6.4: Trace recording

Página 314

Index UM0036381/385 Doc ID 7705 Rev 11IndexAadvanced breakpoints . . . . . . . . . . . . . . . . . . .19EMU3analyzer input signals . . . . . . . .

Página 315

Index UM0036382/385 Doc ID 7705 Rev 11between files . . . . . . . . . . . . . . . . . . . . . . . .157between projects . . . . . . . . . . . . . . . .

Página 316

Index UM0036383/385 Doc ID 7705 Rev 11console . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58go to . . . . . . . . . . . . . . . . . . .

Página 317

Index UM0036384/385 Doc ID 7705 Rev 11Ssimulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202read/write on the fly . . . . . . . . . .

Página 318

UM0036Doc ID 7705 Rev 11 385/385 Please Read Carefully:Information in this document is provided solely in connection with ST products. STMicr

Página 319 - 10.6 Performance analysis

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 39/385 Window menuThis menu gives you access to commands for arranging and navigating

Página 320 - 320/385 Doc ID 7705 Rev 11

Contents UM00364/385 Doc ID 7705 Rev 114.8.1 Raisonance C compiler tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1184.8.2 Rai

Página 321 - 10.6.3 Viewing results

Your STVD graphical environment UM003640/385 Doc ID 7705 Rev 11For details about these features, refer to Help and support features on page 70.Contex

Página 322 - 322/385 Doc ID 7705 Rev 11

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 41/385Docking view windowsAll of the View windows (the windows accessible from the View menu

Página 323 - 10.7 Read/write on the fly

Your STVD graphical environment UM003642/385 Doc ID 7705 Rev 11Figure 16. Workspace window tabsThe project file contains the target file name, the set

Página 324 - 324/385 Doc ID 7705 Rev 11

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 43/385Depending on the element that you select in the Workspace window (workspace, project, f

Página 325 - 11 Program

Your STVD graphical environment UM003644/385 Doc ID 7705 Rev 11This section provides a description of Editor window features, including: ● Editor wind

Página 326 - The programming mode

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 45/385File display and editing featuresThe Editor window has a number of advanced features to

Página 327 - RC Calibration values

Your STVD graphical environment UM003646/385 Doc ID 7705 Rev 11File foldingThis feature allows you to hide or display sections of C source code. Folds

Página 328 - Unlock device

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 47/385Figure 20. Left margin featuresBookmarks are particularly useful when editing large fil

Página 329 - Doc ID 7705 Rev 11 329/385

Your STVD graphical environment UM003648/385 Doc ID 7705 Rev 11Editor status bar informationThe status information for each file in the Editor window

Página 330 - 330/385 Doc ID 7705 Rev 11

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 49/3853.5.1 Editor window contextual menuBy right-clicking in any Editor window, you can acc

Página 331 - UM0036 Program

UM0036 ContentsDoc ID 7705 Rev 11 5/3855.8.3 Setting counters and conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1845.8.4 Show

Página 332 - 12 STM8 C tutorial

Your STVD graphical environment UM003650/385 Doc ID 7705 Rev 11Note: To edit source files during a debugging session, ensure that the Read-only source

Página 333 - 12.1 Setup

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 51/385If you have just created a new Assembler source file, the parameter information feature

Página 334 - 12.1.3 Create a project

Your STVD graphical environment UM003652/385 Doc ID 7705 Rev 11Brace matchingWhen viewing and navigating in source code, brace matching highlights mat

Página 335 - Doc ID 7705 Rev 11 335/385

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 53/385FindYou can select the string for a search by placing the cursor anywhere in the string

Página 336 - 336/385 Doc ID 7705 Rev 11

Your STVD graphical environment UM003654/385 Doc ID 7705 Rev 11Figure 31. Find/replace windowIn addition to common find options (Match whole word, Mat

Página 337 - 12.1.4 Add the source files

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 55/385The results of your search are displayed in the Output window, by default in the Find i

Página 338 - 338/385 Doc ID 7705 Rev 11

Your STVD graphical environment UM003656/385 Doc ID 7705 Rev 11These are just a few of the regular expressions that you might use to search your files

Página 339 - 12.2 Build

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 57/385The tabs located at the bottom of the Output window area are used to flip through the d

Página 340 - 340/385 Doc ID 7705 Rev 11

Your STVD graphical environment UM003658/385 Doc ID 7705 Rev 11Figure 39. Parser error selection optionsOnce a parser is selected, you can use the Par

Página 341 - Doc ID 7705 Rev 11 341/385

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 59/385to enter commands directly. However, in Section 5.18: Online commands on page 199, you

Página 342 - 342/385 Doc ID 7705 Rev 11

Contents UM00366/385 Doc ID 7705 Rev 117.1.3 Ignoring option bytes (ICC only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2267.1.4 Con

Página 343 - 12.2.4 Build the application

Your STVD graphical environment UM003660/385 Doc ID 7705 Rev 113.7 Customizing your work environmentSTVD offers a flexible working environment for de

Página 344 - 12.3 Start debugging

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 61/385The Customize window (Tools>Customize) provides an interface for creating your own c

Página 345 - Activate a feature

Your STVD graphical environment UM003662/385 Doc ID 7705 Rev 11Edit/Debug tabUse the Edit/Debug tab to enable/disable and configure editor features re

Página 346 - 346/385 Doc ID 7705 Rev 11

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 63/385Debug allows you to access the debugging options described in Table 20 . Long L

Página 347 - 12.4 Instruction breakpoints

Your STVD graphical environment UM003664/385 Doc ID 7705 Rev 11When you open a file with end of line characters that are different from the default li

Página 348 - 348/385 Doc ID 7705 Rev 11

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 65/3853.7.2 Customizing toolbarsA number of predefined relocatable toolbars are present by de

Página 349 - Doc ID 7705 Rev 11 349/385

Your STVD graphical environment UM003666/385 Doc ID 7705 Rev 11Moving toolbarsToolbars can be transformed to independent always-on-top windows, by pla

Página 350 - 350/385 Doc ID 7705 Rev 11

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 67/385Rearranging toolbar icons1. From the main menu select Tools>Options. 2. Select the C

Página 351 - 12.5 View execution

Your STVD graphical environment UM003668/385 Doc ID 7705 Rev 11For example, imagine that you want to add a command that would link directly to an exte

Página 352 - 352/385 Doc ID 7705 Rev 11

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 69/3856. In the Initial Directory field, you can specify the directory from which you want th

Página 353 - Doc ID 7705 Rev 11 353/385

UM0036 ContentsDoc ID 7705 Rev 11 7/3859.2.3 Reading coverage and profiling results . . . . . . . . . . . . . . . . . . . . . . . . 2729.2.4 Typical

Página 354 - 354/385 Doc ID 7705 Rev 11

Your STVD graphical environment UM003670/385 Doc ID 7705 Rev 11Figure 52. Tool description3.9 Help and support featuresFrom the Help menu you can acc

Página 355 - 12.6 Perform memory mapping

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 71/385– Start.log– Contains the target debug and STVD version information. Old information is

Página 356 - \tutorial_cosmic\

Your STVD graphical environment UM003672/385 Doc ID 7705 Rev 11 For a full migration of your project, follow the 7 steps outlined in this sect

Página 357 - Doc ID 7705 Rev 11 357/385

UM0036 Your STVD graphical environmentDoc ID 7705 Rev 11 73/385 Note: Most options for the supported toolsets can be set in the Project Settin

Página 358 - 358/385 Doc ID 7705 Rev 11

Your STVD graphical environment UM003674/385 Doc ID 7705 Rev 11Note: Metrowerks We recommend that users working with the Hiware format migrate their w

Página 359 - Doc ID 7705 Rev 11 359/385

UM0036 Project creation and buildDoc ID 7705 Rev 11 75/3854 Project creation and buildSTVD provides a build interface that allows you to control the

Página 360 - 360/385 Doc ID 7705 Rev 11

Project creation and build UM003676/385 Doc ID 7705 Rev 11Toolset path informationUpon installation, STVD will attempt to identify the toolsets and th

Página 361

UM0036 Project creation and buildDoc ID 7705 Rev 11 77/385Opening a .stw workspaceTo load a workspace (*.stw) created by STVD7 3.0 or later versions,

Página 362

Project creation and build UM003678/385 Doc ID 7705 Rev 11Note: If a pop-up message appears indicating that your makefile was not found, click on OK a

Página 363 - Doc ID 7705 Rev 11 363/385

UM0036 Project creation and buildDoc ID 7705 Rev 11 79/385Create a workspace by wrapping an executableYou can create a workspace for an executable fil

Página 364 - 364/385 Doc ID 7705 Rev 11

Contents UM00368/385 Doc ID 7705 Rev 1112 STM8 C tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33212

Página 365 - Doc ID 7705 Rev 11 365/385

Project creation and build UM003680/385 Doc ID 7705 Rev 115. Select the MCU for you application and then click on OK.Your workspace is created and na

Página 366 - 366/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 81/385Add a project (.stp) to your workspaceClick on the New Project icon and then OK. This launch

Página 367 - Doc ID 7705 Rev 11 367/385

Project creation and build UM003682/385 Doc ID 7705 Rev 11Create a project from an existing executableTo create a project from an executable (.abs, .e

Página 368 - 368/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 83/3854.3.3 Adding and removing folders and filesProjects contain the files that you will use to

Página 369 - Doc ID 7705 Rev 11 369/385

Project creation and build UM003684/385 Doc ID 7705 Rev 11saved as Build Configurations so that you can easily switch between two or more configuratio

Página 370 - 13.5 Project settings

UM0036 Project creation and buildDoc ID 7705 Rev 11 85/385Some aspects of this interface are common to all toolsets, these common tabs are described i

Página 371 - Doc ID 7705 Rev 11 371/385

Project creation and build UM003686/385 Doc ID 7705 Rev 114.5.2 Debug settings tabThis tab allows you to specify common settings for debugging your a

Página 372 - 372/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 87/385The current microcontroller setting is displayed in the gray Selected MCU field at the botto

Página 373

Project creation and build UM003688/385 Doc ID 7705 Rev 114.6 Customizing build settings for ST Assembler/Linker toolsetThe ST Assembler/Linker tools

Página 374 - Applying project settings

UM0036 Project creation and buildDoc ID 7705 Rev 11 89/385link and Post-Build) and three tabs that contain options and settings that are specific to S

Página 375 - Doc ID 7705 Rev 11 375/385

UM0036 ContentsDoc ID 7705 Rev 11 9/38513.4 Creating a folder to organize files in the project . . . . . . . . . . . . . . . . . . . 37013.5 Project

Página 376 - 376/385 Doc ID 7705 Rev 11

Project creation and build UM003690/385 Doc ID 7705 Rev 11Include pathsThe Include path field introduces the -I option in the command line. This optio

Página 377 - Appendix A Product support

UM0036 Project creation and buildDoc ID 7705 Rev 11 91/385The source file with the segment declarations (default is mapping.asm) is regenerated each t

Página 378 - 378/385 Doc ID 7705 Rev 11

Project creation and build UM003692/385 Doc ID 7705 Rev 11 4.6.3 ST Post-Link tabThe ST Post-Link tab allows you to view any instructions that

Página 379 - Revision history

UM0036 Project creation and buildDoc ID 7705 Rev 11 93/3854.7 Customizing build settings for Cosmic C toolsetsThe Project Settings window for buildin

Página 380 - Revision history UM0036

Project creation and build UM003694/385 Doc ID 7705 Rev 11Figure 62. Standard optionsTo further customize options, select a category in the Category l

Página 381 - 381/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 95/3854.7.1 Cosmic C compiler tabThe C Compiler tab provides an interface for setting the options

Página 382 - 382/385 Doc ID 7705 Rev 11

Project creation and build UM003696/385 Doc ID 7705 Rev 11General settings for Cosmic toolsetWith the category set to General, you can access the foll

Página 383 - 383/385 Doc ID 7705 Rev 11

UM0036 Project creation and buildDoc ID 7705 Rev 11 97/385 Debug informationThe Debug Info settings allow you to choose the debug information

Página 384 - 384/385 Doc ID 7705 Rev 11

Project creation and build UM003698/385 Doc ID 7705 Rev 11When the category is set to General, the standard optimization options for ST7 are:● Default

Página 385 - Doc ID 7705 Rev 11 385/385

UM0036 Project creation and buildDoc ID 7705 Rev 11 99/385ListingsThe Listing settings allow you to generate a listing file and log errors to a file.L

Comentários a estes Manuais

Sem comentários