EmbeddedStudio_manual.pdf

(2725 KB) Pobierz
Embedded Studio Reference Manual
Version: 3.10c
Copyright 2014-2016 SEGGER Microcontroller GmbH & Co. KG
Copyright 1997-2016 Rowley Associates Ltd.
Embedded Studio Reference Manual
2
Embedded Studio Reference Manual
Contents
Contents
Introduction
............................................................................................................................................................................................... 23
What is SEGGER Embedded Studio?
................................................................................................................................. 24
What we don't tell you
........................................................................................................................................................... 26
Getting Started
........................................................................................................................................................................... 27
Text conventions
....................................................................................................................................................................... 28
Release notes
.............................................................................................................................................................................. 30
SEGGER Embedded Studio User Guide
.......................................................................................................................................... 35
SEGGER Embedded Studio standard layout
................................................................................................................. 36
Menu bar
........................................................................................................................................................................ 37
Title bar
........................................................................................................................................................................... 38
Status bar
....................................................................................................................................................................... 39
Editing workspace
...................................................................................................................................................... 41
Docking windows
....................................................................................................................................................... 42
Dashboard
...................................................................................................................................................................... 43
SEGGER Embedded Studio help and assistance
.......................................................................................................... 44
Creating and managing projects
....................................................................................................................................... 46
Solutions and projects
.............................................................................................................................................. 47
Creating a project
....................................................................................................................................................... 50
Adding existing files to a project
........................................................................................................................ 51
Adding new files to a project
................................................................................................................................ 52
Removing a file, folder, project, or project link
............................................................................................. 53
Building your application
...................................................................................................................................................... 54
Creating variants using configurations
............................................................................................................ 56
3
Embedded Studio Reference Manual
Contents
Project options
............................................................................................................................................................. 58
Configurations and project options
................................................................................................................... 60
Project macros
............................................................................................................................................................. 62
Dependencies and build order
............................................................................................................................. 64
Linking and section placement
............................................................................................................................ 65
Using source control
................................................................................................................................................................ 68
Source control capabilities
..................................................................................................................................... 69
Configuring source-control providers
............................................................................................................... 70
Connecting to the source-control system
....................................................................................................... 71
File source-control status
........................................................................................................................................ 72
Source-control operations
...................................................................................................................................... 73
Adding files to source control
.............................................................................................................................. 74
Updating files
............................................................................................................................................................... 75
Committing files
.......................................................................................................................................................... 76
Reverting files
............................................................................................................................................................... 77
Locking files
.................................................................................................................................................................. 78
Unlocking files
.............................................................................................................................................................. 79
Removing files from source control
................................................................................................................... 80
Showing differences between files
..................................................................................................................... 81
Source-control properties
....................................................................................................................................... 82
Subversion provider
.................................................................................................................................................. 83
CVS provider
................................................................................................................................................................. 85
Package management
............................................................................................................................................................ 87
Exploring your application
................................................................................................................................................... 91
Project explorer
........................................................................................................................................................... 92
Source navigator window
....................................................................................................................................... 97
References window
.................................................................................................................................................... 99
Symbol browser window
...................................................................................................................................... 100
Memory usage window
......................................................................................................................................... 105
Bookmarks window
................................................................................................................................................. 108
Editing your code
................................................................................................................................................................... 109
Basic editing
............................................................................................................................................................... 110
Moving the insertion point
................................................................................................................... 111
Adding text
................................................................................................................................................... 113
Deleting text
................................................................................................................................................ 114
Using the clipboard
.................................................................................................................................. 115
Undo and redo
............................................................................................................................................ 116
Drag and drop
............................................................................................................................................. 117
Searching
....................................................................................................................................................... 118
Advanced editing
..................................................................................................................................................... 119
Indenting source code
............................................................................................................................. 120
4
Embedded Studio Reference Manual
Contents
Commenting out sections of code
..................................................................................................... 122
Adjusting letter case
................................................................................................................................ 123
Using bookmarks
...................................................................................................................................................... 124
Find and Replace window
.................................................................................................................................... 126
Clipboard Ring window
......................................................................................................................................... 128
Mouse-click accelerators
....................................................................................................................................... 130
Regular expressions
................................................................................................................................................ 132
Debugging windows
............................................................................................................................................................. 134
Locals window
........................................................................................................................................................... 134
Globals window
........................................................................................................................................................ 136
Watch window
........................................................................................................................................................... 138
Register window
....................................................................................................................................................... 141
Memory window
....................................................................................................................................................... 144
Breakpoints window
............................................................................................................................................... 148
Call Stack window
.................................................................................................................................................... 152
Threads window
....................................................................................................................................................... 155
Execution Profile window
..................................................................................................................................... 159
Execution Trace window
....................................................................................................................................... 160
Debug file search editor
........................................................................................................................................ 161
Breakpoint expressions
........................................................................................................................................................ 163
Debug expressions
................................................................................................................................................................. 164
Command-line options
....................................................................................................................................................................... 165
-D (Define macro)
................................................................................................................................................................... 166
-noclang (Disable Clang support)
.................................................................................................................................... 167
-packagesdir (Specify packages directory)
.................................................................................................................. 168
-permit-multiple-studio-instances (Permit multiple studio instances)
........................................................... 169
-rootuserdir (Set the root user data directory)
.......................................................................................................... 170
-save-settings-off (Disable saving of environment settings)
............................................................................... 171
-set-setting (Set environment setting)
.......................................................................................................................... 172
-templatesfile (Set project templates path)
................................................................................................................ 173
Uninstalling SEGGER Embedded Studio
..................................................................................................................................... 175
ARM target support
............................................................................................................................................................................. 179
Target startup code
............................................................................................................................................................... 181
Startup code
.............................................................................................................................................................................. 183
Section Placement
.................................................................................................................................................................. 186
C Library User Guide
............................................................................................................................................................................ 189
Floating point
........................................................................................................................................................................... 190
Single and double precision
................................................................................................................................ 191
Multithreading
......................................................................................................................................................................... 193
Thread safety in the SEGGER Embedded Studio library
.......................................................................... 194
Implementing mutual exclusion in the C library
........................................................................................ 195
5
Zgłoś jeśli naruszono regulamin