- Page 1:
CrossWorks for ARMUser GuideRowley
- Page 4 and 5:
38 The status bar40 The editing wor
- Page 6 and 7:
Chapter 16 173 CrossStudio menu sum
- Page 8 and 9:
Part VIAppendicesChapter 35 337 Fil
- Page 11 and 12:
1IntroductionThis guide is divided
- Page 13 and 14:
•Integrated Debugger The debugger
- Page 15 and 16:
After purchasing CrossWorksWhen you
- Page 17 and 18:
•Sequences which may be repeated
- Page 19 and 20:
Part IICrossStudio ReferenceThis se
- Page 21 and 22:
2CrossStudio TutorialCrossStudio al
- Page 23 and 24:
The Links to system files group sho
- Page 25 and 26:
•In the Project Explorer, right c
- Page 27 and 28:
•Select the main.c file.•Click
- Page 29 and 30:
Building projectsNow that the proje
- Page 31 and 32:
Project code and data sizesDevelope
- Page 33 and 34:
Displaying the Symbol BrowserTo dis
- Page 35 and 36:
Printing Symbol Browser contentsYou
- Page 37 and 38:
•Type F5.The workspace will chang
- Page 39 and 40:
Setting up againWhat we'll now do i
- Page 41 and 42:
Stopping and starting debuggingYou
- Page 43 and 44:
3OverviewThis section introduces th
- Page 45 and 46:
The menu barThe menu bar conatins d
- Page 47 and 48:
PanelCaret positionCaps lock status
- Page 49 and 50:
Changing to Multiple Document Works
- Page 51 and 52:
4Project managementCrossWorks has a
- Page 53 and 54:
•Combining — a project that can
- Page 55 and 56:
•In the New Project dialog, selec
- Page 57 and 58:
•Click on the project item to rem
- Page 59 and 60:
There is a special configuration na
- Page 61 and 62:
Project dependencies and build orde
- Page 63 and 64:
•Click on the Project tab.•Sele
- Page 65 and 66:
5Building projectsCrossStudio provi
- Page 67 and 68:
•From the Build menu, select Buil
- Page 69 and 70:
6Source code controlCrossWorks supp
- Page 71 and 72:
—or—•In the Project Explorer,
- Page 73 and 74:
7Debug expressionsThe debugger can
- Page 75 and 76:
8Basic editingCrossStudio has a bui
- Page 77 and 78:
KeystrokeLeftRightHomeEndPageUpPage
- Page 79 and 80:
—or—•From the Edit menu, clic
- Page 81 and 82:
•Either click somewhere in the do
- Page 83 and 84:
To cut whole lines from the current
- Page 85 and 86:
•From the Edit menu, click Advanc
- Page 87 and 88:
•Set the Indent Closing Brace pro
- Page 89 and 90:
•Select Edit | Insert File menu i
- Page 91 and 92:
•If the search will be carried ou
- Page 93 and 94:
Advanced editor featuresCode Templa
- Page 95 and 96:
•Select Edit > Advanced > Uncomme
- Page 97 and 98:
9Memory map editorMemory map files
- Page 99 and 100:
•Input Section Names. The optiona
- Page 101 and 102:
10Package managementCrossWorks can
- Page 103 and 104:
11Linking and Section placementExec
- Page 105 and 106:
The startup code will need to copy
- Page 107 and 108:
12CrossStudio WindowsThis section i
- Page 109 and 110:
•Repeatedly type Ctrl+Shift+V to
- Page 111 and 112:
•Enable, disable and delete exist
- Page 113 and 114:
Editing a breakpointTo edit the pro
- Page 115 and 116:
—or—•From the Breakpoints win
- Page 117 and 118:
—or—•On the Debug tool bar, c
- Page 119 and 120:
—or—•On the Debug Location to
- Page 121 and 122:
Globals tool barButtonDescriptionDi
- Page 123 and 124:
Locals tool barButtonDescriptionDis
- Page 125 and 126:
Memory window updatesThe memory win
- Page 127 and 128:
Showing the Registers windowTo disp
- Page 129 and 130:
clicking on one of the entries in t
- Page 131 and 132:
Watch tool barButtonDescriptionDisp
- Page 133 and 134:
Expressions you can watchHelp windo
- Page 135 and 136:
Output windowThe Output window cont
- Page 137 and 138:
The Project Explorer tool barButton
- Page 139 and 140:
Source navigator windowOne of the b
- Page 141 and 142:
—or—•On the Source Navigator
- Page 143 and 144:
variables, the range is the range o
- Page 145 and 146:
Grouping symbols by source fileWhen
- Page 147 and 148:
•In the Symbol Browser, right cli
- Page 149 and 150:
—or—•In the Targets window, c
- Page 151 and 152:
Controlling target connectionsReset
- Page 153 and 154:
13Target interfacesA target interfa
- Page 155 and 156:
•Parallel Port Address The base a
- Page 157 and 158:
•Identify Target Specifies whethe
- Page 159 and 160:
•Processor Stop Time The timeout
- Page 161 and 162:
14ARM Target SupportWhen a target s
- Page 163 and 164:
•fiq_handler - This is the defaul
- Page 165 and 166:
There is a Heap Size linker project
- Page 167 and 168:
Target script fileThe target interf
- Page 169 and 170:
efore the debugger starts accessing
- Page 171 and 172:
DescriptionTargetInterface.peekByte
- Page 173 and 174:
DescriptionTargetInterface.setICEBr
- Page 175 and 176:
•Fast Comms Channel Loader — Th
- Page 177 and 178:
15DialogsDebug file search editorWh
- Page 179 and 180:
•Show full path in title bar. Ena
- Page 181 and 182:
16CrossStudio menu summaryThe follo
- Page 183 and 184:
Menu command Keystroke DescriptionR
- Page 185 and 186:
Menu command Keystroke DescriptionC
- Page 187 and 188:
Menu command Keystroke DescriptionP
- Page 189 and 190:
The Edit Selection menuEdit Selecti
- Page 191 and 192:
Advanced menuThe Advanced menu prov
- Page 193 and 194:
Menu command Keystroke DescriptionL
- Page 195 and 196:
The Browser menuBrowser commandsMen
- Page 197 and 198: Search menu commandsMenu command Ke
- Page 199 and 200: The Build menuBuild menu commandsMe
- Page 201 and 202: Menu command Keystroke DescriptionS
- Page 203 and 204: Debug Control commandsMenu command
- Page 205 and 206: The Debug Windows menuDebug Windows
- Page 207 and 208: Menu command Keystroke DescriptionD
- Page 209 and 210: The Help menuHelp menu commandsMenu
- Page 211 and 212: Part IIITasking Library TutorialThi
- Page 213 and 214: 17OverviewThe CTL enables your appl
- Page 215 and 216: Timer supportIf your application ca
- Page 217 and 218: 18TasksEach task has a correspondin
- Page 219 and 220: #include void task1(void *p){// tas
- Page 221 and 222: 19Event setsAn event set is a means
- Page 223 and 224: ctl_events_set_clear(&e1, 1, 0);}vo
- Page 225 and 226: 20SemaphoresA semaphore is a counte
- Page 227 and 228: }}ctl_semaphore_signal(&s1);/* reso
- Page 229 and 230: 21Message queuesA message queue is
- Page 231 and 232: void task2(void){void *msg;…ctl_m
- Page 233 and 234: 22Byte queuesA byte queue is a stru
- Page 235 and 236: {…ctl_byte_queue_init(&m1,queue,
- Page 237 and 238: 23Global interrupts controlThe Cros
- Page 239 and 240: 24Timer supportThe current time is
- Page 241 and 242: 25Programmable interrupt handlingTh
- Page 243 and 244: 26Low-level interrupt handlingIf yo
- Page 245 and 246: 27Memory areasMemory areas provide
- Page 247: Part IVLibrary ReferenceLibrary Ref
- Page 251 and 252: - Character handlingThe header dec
- Page 253 and 254: isdigitSynopsisDescriptionPortabili
- Page 255 and 256: Descriptiontolower converts an uppe
- Page 257 and 258: Long long integer minimum and maxim
- Page 259 and 260: SCHAR_MINSynopsisDescriptionPortabi
- Page 261 and 262: Classification functionsisfiniteisi
- Page 263 and 264: Remainder functionsfmodfmodfmodfmod
- Page 265 and 266: DescriptionFast math librarybehavio
- Page 267 and 268: Fast math librarybehaviorIEC 60559
- Page 269 and 270: ceilfSynopsis#include float ceilf(f
- Page 271 and 272: IEC 60559 mathlibrary behaviorPorta
- Page 273 and 274: fmodSynopsisDescriptionFast math li
- Page 275 and 276: DescriptionIEC 60559 mathlibrary be
- Page 277 and 278: log10Synopsis#include double log10(
- Page 279 and 280: If x < -1 or 1 < x, and y = +Infini
- Page 281 and 282: sinSynopsis#include double sin(doub
- Page 283 and 284: Portabilitysqrtf conforms to ISO/IE
- Page 285 and 286: longjmpSynopsisDescriptionImportant
- Page 287 and 288: char ch = (char)va_arg(ap, int);Por
- Page 289 and 290: vprintfvsnprintfvsprintfWrite forma
- Page 291 and 292: have been promoted according to the
- Page 293 and 294: •‘p’. The argument is a point
- Page 295 and 296: selected the correct library in the
- Page 297 and 298: getsSynopsisDescription#include cha
- Page 299 and 300:
If n is zero, nothing is written, a
- Page 301 and 302:
vscanf returns the value of the mac
- Page 303 and 304:
- General utilitiesThe header file
- Page 305 and 306:
Portabilityatoi conforms to ISO/IEC
- Page 307 and 308:
NotesPortabilityIf ptr does not mat
- Page 309 and 310:
If val is negative and radix is 10,
- Page 311 and 312:
Portabilitysrand conforms to ISO/IE
- Page 313 and 314:
First, strtol decomposes the input
- Page 315 and 316:
strtoll returns the converted value
- Page 317 and 318:
The subject sequence is defined as
- Page 319 and 320:
strncpyCopy string up to a maximum
- Page 321 and 322:
Portabilitymemmove conforms to ISO/
- Page 323 and 324:
strerrorSynopsisDescriptionPortabil
- Page 325 and 326:
Portabilitystrrchr conforms to ISO/
- Page 327:
Part VCommand Line ToolsCommand Lin
- Page 330 and 331:
If you want to build a specific sol
- Page 332 and 333:
Usage-noverify-nodownload-nodisconn
- Page 334 and 335:
326 Chapter 30 CrossLoad
- Page 336 and 337:
#define AIC_SMR0 (*(volatile unsign
- Page 338 and 339:
You can add or replace a file into
- Page 340 and 341:
332 Chapter 33 GCC Online Documenta
- Page 342 and 343:
334 Chapter 34 BINUTILS Online Docu
- Page 345 and 346:
35File formatsMemory Map file forma
- Page 347 and 348:
access="ReadOnly" >The filename att
- Page 349 and 350:
Note that each entry has a Name att
- Page 351 and 352:
The files to be in the project are
- Page 353 and 354:
36Property ReferenceBuild Propertie
- Page 355 and 356:
Property Type Save NameFile Type En
- Page 357 and 358:
Property Type Save NameOutput Direc
- Page 359 and 360:
Assembler and Compiler OptionsPrope
- Page 361 and 362:
Property Name Type Save NameARM Cor
- Page 363 and 364:
Property Name Type Save NameEndian
- Page 365 and 366:
Property Name Type Save NameLong Ca
- Page 367 and 368:
Preprocessor OptionsProperty Type S
- Page 369 and 370:
Section OptionsProperty Type Save N
- Page 371 and 372:
External Build OptionsProperty Type
- Page 373 and 374:
Property Type Save NameStart Addres
- Page 375 and 376:
Linker PropertiesThese properties a
- Page 377 and 378:
Property Type Save NamePrintf Width
- Page 379 and 380:
Linker OptionsProperty Type Save Na
- Page 381 and 382:
Property Type Save NameEntry PointE
- Page 383 and 384:
Property Type Save NameKeep Symbols
- Page 385 and 386:
Property Type Save NameSection Plac
- Page 387 and 388:
Staging And Combining Project Prope
- Page 389 and 390:
Property Type Save NameStage Comman
- Page 391 and 392:
Property Type Save NameCombine Comm
- Page 393 and 394:
Property Type Save NameStop ScriptS
- Page 395 and 396:
Property Type Save NameDebug Handle
- Page 397 and 398:
Property Type Save NameJTAG Data Bi
- Page 399 and 400:
Property Type Save NameJTAG Instruc
- Page 401 and 402:
Property Type Save NameFirst Loader
- Page 403 and 404:
Property Type Save NameLoader File
- Page 405 and 406:
Property Type Save NameLoader Param
- Page 407 and 408:
37Code editor command summaryThe fo
- Page 409 and 410:
Keystrokes Menu DescriptionCtrl+CCt
- Page 411 and 412:
Keystrokes Menu DescriptionFile | S
- Page 413 and 414:
38Binary editor command summaryThe
- Page 415 and 416:
39GlossaryThe following terms are i