EmbeddedStudio_v412_manual.pdf

(3019 KB) Pobierz
Embedded Studio for
ARM Reference Manual
Version: 4.12
Copyright 2014-2018 SEGGER Microcontroller GmbH
Copyright 1997-2018 Rowley Associates Ltd.
Embedded Studio for ARM Reference Manual
2
Embedded Studio for ARM Reference Manual
Contents
Contents
Introduction
............................................................................................................................................................................................... 25
What is SEGGER Embedded Studio for ARM?
............................................................................................................... 26
What we don't tell you
........................................................................................................................................................... 28
Getting Started
........................................................................................................................................................................... 29
Text conventions
....................................................................................................................................................................... 30
Release notes
.............................................................................................................................................................................. 32
SEGGER Embedded Studio User Guide
.......................................................................................................................................... 51
SEGGER Embedded Studio standard layout
................................................................................................................. 52
Menu bar
........................................................................................................................................................................ 53
Title bar
........................................................................................................................................................................... 54
Status bar
....................................................................................................................................................................... 55
Editing workspace
...................................................................................................................................................... 57
Docking windows
....................................................................................................................................................... 58
Dashboard
...................................................................................................................................................................... 59
SEGGER Embedded Studio help and assistance
.......................................................................................................... 60
Creating and managing projects
....................................................................................................................................... 62
Solutions and projects
.............................................................................................................................................. 63
Creating a project
....................................................................................................................................................... 66
Adding existing files to a project
........................................................................................................................ 67
Adding new files to a project
................................................................................................................................ 68
Removing a file, folder, project, or project link
............................................................................................. 69
Building your application
...................................................................................................................................................... 70
Creating variants using configurations
............................................................................................................ 72
3
Embedded Studio for ARM Reference Manual
Contents
Project options
............................................................................................................................................................. 74
Configurations and project options
................................................................................................................... 76
Project macros
............................................................................................................................................................. 78
Dependencies and build order
............................................................................................................................. 80
Linking and section placement
............................................................................................................................ 81
Using source control
................................................................................................................................................................ 84
Source control capabilities
..................................................................................................................................... 85
Configuring source-control providers
............................................................................................................... 86
Connecting to the source-control system
....................................................................................................... 87
File source-control status
........................................................................................................................................ 88
Source-control operations
...................................................................................................................................... 89
Adding files to source control
.............................................................................................................................. 90
Updating files
............................................................................................................................................................... 91
Committing files
.......................................................................................................................................................... 92
Reverting files
............................................................................................................................................................... 93
Locking files
.................................................................................................................................................................. 94
Unlocking files
.............................................................................................................................................................. 95
Removing files from source control
................................................................................................................... 96
Showing differences between files
..................................................................................................................... 97
Source-control properties
....................................................................................................................................... 98
Subversion provider
.................................................................................................................................................. 99
CVS provider
............................................................................................................................................................... 101
Package management
.......................................................................................................................................................... 103
Exploring your application
................................................................................................................................................. 107
Project explorer
......................................................................................................................................................... 108
Source navigator window
.................................................................................................................................... 113
References window
................................................................................................................................................. 115
Symbol browser window
...................................................................................................................................... 116
Stack usage window
............................................................................................................................................... 121
Memory usage window
......................................................................................................................................... 122
Bookmarks window
................................................................................................................................................. 125
Code Outline Window
............................................................................................................................................ 126
Editing your code
................................................................................................................................................................... 127
Basic editing
............................................................................................................................................................... 128
Moving the insertion point
................................................................................................................... 129
Adding text
................................................................................................................................................... 131
Deleting text
................................................................................................................................................ 132
Using the clipboard
.................................................................................................................................. 133
Undo and redo
............................................................................................................................................ 134
Drag and drop
............................................................................................................................................. 135
Searching
....................................................................................................................................................... 136
4
Embedded Studio for ARM Reference Manual
Contents
Advanced editing
..................................................................................................................................................... 137
Indenting source code
............................................................................................................................. 138
Commenting out sections of code
..................................................................................................... 140
Adjusting letter case
................................................................................................................................ 141
Using bookmarks
...................................................................................................................................................... 142
Find and Replace window
.................................................................................................................................... 144
Clipboard Ring window
......................................................................................................................................... 146
Mouse-click accelerators
....................................................................................................................................... 148
Regular expressions
................................................................................................................................................ 150
Debugging windows
............................................................................................................................................................. 152
Locals window
........................................................................................................................................................... 152
Globals window
........................................................................................................................................................ 154
Watch window
........................................................................................................................................................... 156
Register window
....................................................................................................................................................... 159
Memory window
....................................................................................................................................................... 162
Breakpoints window
............................................................................................................................................... 166
Call Stack window
.................................................................................................................................................... 170
Threads window
....................................................................................................................................................... 173
Execution Profile window
..................................................................................................................................... 177
Execution Trace window
....................................................................................................................................... 178
Debug file search editor
........................................................................................................................................ 179
Breakpoint expressions
........................................................................................................................................................ 181
Debug expressions
................................................................................................................................................................. 182
Utility windows
........................................................................................................................................................................ 183
Terminal emulator window
................................................................................................................................. 183
Command-line options
....................................................................................................................................................................... 185
-D (Define macro)
................................................................................................................................................................... 186
-noclang (Disable Clang support)
.................................................................................................................................... 187
-packagesdir (Specify packages directory)
.................................................................................................................. 188
-permit-multiple-studio-instances (Permit multiple studio instances)
........................................................... 189
-rootuserdir (Set the root user data directory)
.......................................................................................................... 190
-save-settings-off (Disable saving of environment settings)
............................................................................... 191
-set-setting (Set environment setting)
.......................................................................................................................... 192
-templatesfile (Set project templates path)
................................................................................................................ 193
Uninstalling SEGGER Embedded Studio for ARM
................................................................................................................... 195
ARM target support
............................................................................................................................................................................. 199
Target startup code
............................................................................................................................................................... 201
Startup code
.............................................................................................................................................................................. 203
Section Placement
.................................................................................................................................................................. 206
Using the SEGGER Assembler
.......................................................................................................................................................... 209
Using the SEGGER Linker
................................................................................................................................................................... 211
5
Zgłoś jeśli naruszono regulamin