Previous
Up
Next
SEGGER Embedded Studio Reference Manual
SEGGER Embedded Studio for ARM
Introduction
What is SEGGER Embedded Studio for ARM?
What we don't tell you
Getting Started
Text conventions
Release notes
SEGGER Embedded Studio User Guide
SEGGER Embedded Studio standard layout
Menu bar
Title bar
Status bar
Editing workspace
Docking windows
Dashboard
SEGGER Embedded Studio help and assistance
Creating and managing projects
Solutions and projects
Creating a project
Adding existing files to a project
Adding new files to a project
Removing a file, folder, project, or project link
Building your application
Creating variants using configurations
Project options
Configurations and project options
Project macros
Dependencies and build order
Linking and section placement
Using source control
Source control capabilities
Configuring source-control providers
Connecting to the source-control system
File source-control status
Source-control operations
Adding files to source control
Updating files
Committing files
Reverting files
Locking files
Unlocking files
Removing files from source control
Showing differences between files
Source-control properties
Subversion provider
CVS provider
Package management
Exploring your application
Project explorer
Source navigator window
References window
Symbol browser window
Stack usage window
Memory usage window
Bookmarks window
Code Outline Window
Editing your code
Basic editing
Moving the insertion point
Adding text
Deleting text
Using the clipboard
Undo and redo
Drag and drop
Searching
Advanced editing
Indenting source code
Commenting out sections of code
Adjusting letter case
Using bookmarks
Find and Replace window
Clipboard Ring window
Mouse-click accelerators
Regular expressions
Debugging windows
Locals window
Globals window
Watch window
Register window
Memory window
Breakpoints window
Call Stack window
Threads window
Execution Profile window
Execution Trace window
Debug file search editor
Debug Terminal window
Breakpoint expressions
Debug expressions
Utility windows
Terminal emulator window
Command-line options
-D (Define macro)
-noclang (Disable Clang support)
-noload (Disable loading of last project)
-packagesdir (Specify packages directory)
-permit-multiple-studio-instances (Permit multiple studio instances)
-rootuserdir (Set the root user data directory)
-save-settings-off (Disable saving of environment settings)
-set-setting (Set environment setting)
-templatesfile (Set project templates path)
Uninstalling SEGGER Embedded Studio for ARM
ARM target support
Target startup code
Startup code
Section Placement
Using the SEGGER Assembler
SEGGER Assembler User Guide
Using the SEGGER Linker
SEGGER Linker User Guide
Using the SEGGER Runtime Library
SEGGER Runtime Library User Guide
SEGGER Floating-point Library User Guide
C Library User Guide
Floating point
Multithreading
Thread safety in the SEGGER Embedded Studio for ARM library
Implementing mutual exclusion in the C library
Input and output
Customizing putchar
Locales
Unicode, ISO 10646, and wide characters
Multi-byte characters
The standard C and POSIX locales
Additional locales in source form
Installing a locale
Setting a locale directly
Complete API reference
<assert.h>
__assert
assert
<complex.h>
cabs
cabsf
cacos
cacosf
cacosh
cacoshf
carg
cargf
casin
casinf
casinh
casinhf
catan
catanf
catanh
catanhf
ccos
ccosf
ccosh
ccoshf
cexp
cexpf
cimag
cimagf
clog
clogf
conj
conjf
cpow
cpowf
cproj
cprojf
creal
crealf
csin
csinf
csinh
csinhf
csqrt
csqrtf
ctan
ctanf
ctanh
ctanhf
<ctype.h>
isalnum
isalnum_l
isalpha
isalpha_l
isblank
isblank_l
iscntrl
iscntrl_l
isdigit
isdigit_l
isgraph
isgraph_l
islower
islower_l
isprint
isprint_l
ispunct
ispunct_l
isspace
isspace_l
isupper
isupper_l
isxdigit
isxdigit_l
tolower
tolower_l
toupper
toupper_l
<debugio.h>
debug_abort
debug_break
debug_clearerr
debug_enabled
debug_evaluate
debug_exit
debug_fclose
debug_feof
debug_ferror
debug_fflush
debug_fgetc
debug_fgetpos
debug_fgets
debug_filesize
debug_fopen
debug_fprintf
debug_fprintf_c
debug_fputc
debug_fputs
debug_fread
debug_freopen
debug_fscanf
debug_fscanf_c
debug_fseek
debug_fsetpos
debug_ftell
debug_fwrite
debug_getargs
debug_getch
debug_getchar
debug_getd
debug_getenv
debug_getf
debug_geti
debug_getl
debug_getll
debug_gets
debug_getu
debug_getul
debug_getull
debug_kbhit
debug_loadsymbols
debug_perror
debug_printf
debug_printf_c
debug_putchar
debug_puts
debug_remove
debug_rename
debug_rewind
debug_runtime_error
debug_scanf
debug_scanf_c
debug_system
debug_time
debug_tmpfile
debug_tmpnam
debug_ungetc
debug_unloadsymbols
debug_vfprintf
debug_vfscanf
debug_vprintf
debug_vscanf
<errno.h>
EDOM
EILSEQ
EINVAL
ENOMEM
ERANGE
errno
<float.h>
DBL_DIG
DBL_EPSILON
DBL_MANT_DIG
DBL_MAX
DBL_MAX_10_EXP
DBL_MAX_EXP
DBL_MIN
DBL_MIN_10_EXP
DBL_MIN_EXP
DECIMAL_DIG
FLT_DIG
FLT_EPSILON
FLT_EVAL_METHOD
FLT_MANT_DIG
FLT_MAX
FLT_MAX_10_EXP
FLT_MAX_EXP
FLT_MIN
FLT_MIN_10_EXP
FLT_MIN_EXP
FLT_RADIX
FLT_ROUNDS
<iso646.h>
and
and_eq
bitand
bitor
compl
not
not_eq
or
or_eq
xor
xor_eq
<limits.h>
CHAR_BIT
CHAR_MAX
CHAR_MIN
INT_MAX
INT_MIN
LLONG_MAX
LLONG_MIN
LONG_MAX
LONG_MIN
MB_LEN_MAX
SCHAR_MAX
SCHAR_MIN
SHRT_MAX
SHRT_MIN
UCHAR_MAX
UINT_MAX
ULLONG_MAX
ULONG_MAX
USHRT_MAX
<locale.h>
lconv
localeconv
setlocale
<math.h>
acos
acosf
acosh
acoshf
asin
asinf
asinh
asinhf
atan
atan2
atan2f
atanf
atanh
atanhf
cbrt
cbrtf
ceil
ceilf
copysign
copysignf
cos
cosf
cosh
coshf
erf
erfc
erfcf
erff
exp
exp2
exp2f
expf
expm1
expm1f
fabs
fabsf
fdim
fdimf
floor
floorf
fma
fmaf
fmax
fmaxf
fmin
fminf
fmod
fmodf
fpclassify
frexp
frexpf
hypot
hypotf
ilogb
ilogbf
isfinite
isgreater
isgreaterequal
isinf
isless
islessequal
islessgreater
isnan
isnormal
isunordered
ldexp
ldexpf
lgamma
lgammaf
llrint
llrintf
llround
llroundf
log
log10
log10f
log1p
log1pf
log2
log2f
logb
logbf
logf
lrint
lrintf
lround
lroundf
modf
modff
nearbyint
nearbyintf
nextafter
nextafterf
pow
powf
remainder
remainderf
remquo
remquof
rint
rintf
round
roundf
scalbln
scalblnf
scalbn
scalbnf
signbit
sin
sinf
sinh
sinhf
sqrt
sqrtf
tan
tanf
tanh
tanhf
tgamma
tgammaf
trunc
truncf
<setjmp.h>
longjmp
setjmp
<stdarg.h>
va_arg
va_copy
va_end
va_start
<stddef.h>
NULL
max_align_t
offsetof
ptrdiff_t
size_t
<stdio.h>
getchar
gets
printf
putchar
puts
scanf
snprintf
sprintf
sscanf
vprintf
vscanf
vsnprintf
vsprintf
vsscanf
<stdlib.h>
EXIT_FAILURE
EXIT_SUCCESS
MB_CUR_MAX
RAND_MAX
abs
atexit
atof
atoi
atol
atoll
bsearch
calloc
div
div_t
exit
free
itoa
labs
ldiv
ldiv_t
llabs
lldiv
lldiv_t
lltoa
ltoa
malloc
mblen
mblen_l
mbstowcs
mbstowcs_l
mbtowc
mbtowc_l
qsort
rand
realloc
srand
strtod
strtof
strtol
strtoll
strtoul
strtoull
ulltoa
ultoa
utoa
<string.h>
memccpy
memchr
memcmp
memcpy
memcpy_fast
memmove
mempcpy
memset
strcasecmp
strcasestr
strcat
strchr
strcmp
strcpy
strcspn
strdup
strerror
strlcat
strlcpy
strlen
strncasecmp
strncasestr
strncat
strnchr
strncmp
strncpy
strndup
strnlen
strnstr
strpbrk
strrchr
strsep
strspn
strstr
strtok
strtok_r
<time.h>
asctime
asctime_r
clock_t
ctime
ctime_r
difftime
gmtime
gmtime_r
localtime
localtime_r
mktime
strftime
time_t
tm
<wchar.h>
WCHAR_MAX
WCHAR_MIN
WEOF
btowc
btowc_l
mbrlen
mbrlen_l
mbrtowc
mbrtowc_l
mbsrtowcs
mbsrtowcs_l
msbinit
wchar_t
wcrtomb
wcrtomb_l
wcscat
wcschr
wcscmp
wcscpy
wcscspn
wcsdup
wcslen
wcsncat
wcsnchr
wcsncmp
wcsncpy
wcsnlen
wcsnstr
wcspbrk
wcsrchr
wcsspn
wcsstr
wcstok
wcstok_r
wctob
wctob_l
wint_t
wmemccpy
wmemchr
wmemcmp
wmemcpy
wmemmove
wmempcpy
wmemset
wstrsep
<wctype.h>
iswalnum
iswalnum_l
iswalpha
iswalpha_l
iswblank
iswblank_l
iswcntrl
iswcntrl_l
iswctype
iswctype_l
iswdigit
iswdigit_l
iswgraph
iswgraph_l
iswlower
iswlower_l
iswprint
iswprint_l
iswpunct
iswpunct_l
iswspace
iswspace_l
iswupper
iswupper_l
iswxdigit
iswxdigit_l
towctrans
towctrans_l
towlower
towlower_l
towupper
towupper_l
wctrans
wctrans_l
wctype
<xlocale.h>
duplocale
freelocale
localeconv_l
newlocale
C++ Library User Guide
Standard template library
Subset API reference
<new> - memory allocation
operator delete
operator new
set_new_handler
Utilities Reference
SEGGER Toolchain Release Notes
SEGGER Assembler User Guide
SEGGER Linker User Guide
SEGGER Runtime Library User Guide
SEGGER Floating-point Library User Guide
Compiler driver
File naming conventions
Command-line options
-allow-multiple-definition (Allow multiple symbol definition)
-ansi (Warn about potential ANSI problems)
-ar (Archive output)
-arch (Set ARM architecture)
-be (Big Endian)
-builtins (Use Builtins)
-c (Compile to object code, do not link)
-clang (Use clang compiler/assembler)
-cmselib (Create CMSE import library)
-codec (Set file codec)
-common (Allocate globals in common)
-cpu (Set ARM cpu core)
-d (Define linker symbol)
-debugio (Define debugio implementation)
-depend (Generate dependency file)
-D (Define macro symbol)
-emit-relocs (Emit relocations)
-e (Set entry point symbol)
-exceptions (Enable C++ Exception Support)
-E (Preprocess)
-fill (Fill gaps)
-fabi (Floating Point Code Generation)
-fpu (Set ARM FPU)
-framepointer (Enable generation of framepointer)
-F (Set output format)
-g (Generate debugging information)
-hascmse (Generate cmse instructions)
-hascrc (Generate crc instructions)
-hascrypto (Generate crypto instructions)
-hasdsp (Generate dsp instructions)
-hasidiv (Generate integer divide instructions)
-hassmallmultiplier (Do not generate multiply instructions)
-help (Display help information)
-instrument (Instrument functions)
-I (Define user include directories)
-I- (Exclude standard include directories)
-J (Define system include directories)
-kasm (Keep assembly code)
-kldscript (Keep linker script)
-kpp (Keep preprocessor output)
-K (Keep linker symbol)
-l- (Do not link standard libraries)
-longcalls (Generate long calling sequences)
-lto (Enable link time optimization)
-L (Set library directory path)
-memorymap (Memory map file)
-memorymapmacros (Memory map macros)
-M (Display linkage map)
-n (Dry run, no execution)
-nointerwork (No interwork code for v4t)
-nowarn-mismatch (No warning on architecture mismatch)
-nowarn-enumsize (No warning on enum size mismatch)
-nowarn-wcharsize (No warning on wide character size mismatch)
-nostderr (No stderr output)
-O (Optimize output)
-o (Set output file name)
-patch (Run patch command)
-placement (Section placement file)
-placementmacros (Section placement macros)
-placementsegments (Section placement segments)
-printf (Select printf capability)
-rtti (Enable C++ RTTI Support)
-R (Set section name)
-scanf (Select scanf capability)
-segger (Use SEGGER assembler/compiler/linker)
-shortenums (Minimal sized enums)
-shortwchar (16-bit wide chars)
-simd (Generate vector processing code)
-std (Select language standard)
-strip (Strip symbols from executable)
-symbols (Link symbols)
-thumb (Generate thumb code)
-T (Supply linker script)
-U (Undefine macro symbol)
-unwindtables (Generate unwind tables)
-v (Verbose execution)
-vectorize (Generate vector processing code)
-w (Suppress warnings)
-we (Treat warnings as errors)
-W (Pass option to tool)
-x (Specify file types)
Command-Line Project Builder
Building with a SEGGER Embedded Studio project file
Building without a SEGGER Embedded Studio project file
Command-line options
-batch (Batch build)
-config (Select build configuration)
-clean (Remove output files)
-D (Define macro)
-echo (Show command lines)
-file (Build a named file)
-packagesdir (Specify packages directory)
-project (Specify project to build)
-property (Set project property)
-rebuild (Always rebuild)
-show (Dry run, don't execute)
-solution (Specify solution to build)
-studiodir (Specify SEGGER Embedded Studio directory)
-template (Specify project template)
-time (Time the build)
-threadnum (Specify number of build threads)
-type (Specify project type)
-verbose (Show build information)
Command-Line Simulator
Command-line options
file (Elf executable file)
-segments (Specify memory segments)
args (User arguments)
Command-Line Scripting
Command-line options
-define (Define global variable)
-help (Show usage)
-load (Load script file)
-define (Verbose output)
emScript classes
Example uses
Embed
Header file generator
Using the header generator
Command line options
-regbaseoffsets (Use offsets from peripheral base)
-nobitfields (Inhibit bitfield macros)
Linker script file generator
Command-line options
-check-segment-overflow
-disable-missing-runin-error
-memory-map-file
-memory-map-macros
-no-check-unplaced-sections
-section-placement-file
-section-placement-macros
-symbols
Package generator
Appendices
Legal
Copyright, disclaimer, and trademarks
SEGGER's Friendly License
SEGGER's Commercial-use License
3rd-PARTY SOFTWARE AND LICENSES
Technical
File formats
Memory Map file format
Section Placement file format
Project file format
Project Templates file format
Property Groups file format
Package Description file format
External Tools file format
Debugger Type Interpretation file format
Environment Options
Building Environment Options
Debugging Environment Options
IDE Environment Options
Programming Language Environment Options
Source Control Environment Options
Text Editor Environment Options
Windows Environment Options
Project Options
Code Options
Debug Options
Macros
System Macros
Build Macros
Script classes
BinaryFile
CWSys
Debug
ElfFile
TargetInterface
WScript