User manual

Contents UM0036
2/385 Doc ID 7705 Rev 11
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1.1 Building and debugging applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1.2 Programming your microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.3 Advanced debugging features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.4 Getting assistance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.5 Associated documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.6 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2 Getting started with STVD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.1 Set the toolset and path information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.2 Create a workspace with a new project . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.2.1 Create a new workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.2.2 Create a project in your workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.2.3 Specify a target MCU for your project . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.3 Add source files (.asm, .c, .s) to your project . . . . . . . . . . . . . . . . . . . . . . 27
2.4 Build your application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.4.1 Configuring project settings for Debug or Release . . . . . . . . . . . . . . . . 28
2.4.2 Build commands and output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.5 Select and connect to your debug instrument . . . . . . . . . . . . . . . . . . . . . 30
2.6 Debug your application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.7 Program your application to your microcontroller . . . . . . . . . . . . . . . . . . . 32
3 Your STVD graphical environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.1 The main application window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.2 The main menus and their commands . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3.3 View windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.4 Workspace window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.5 Editor windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.5.1 Editor window contextual menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.5.2 Editing features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.6 Output window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3.6.1 Build tab and Tools tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57