11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

e<strong>for</strong>e the debugger starts accessing target memory. This is particularly useful whendebugging applications that have caches enabled as the script can disable and flush thecaches enabling the debugger to access the current memory state.See TargetInterface Object <strong>for</strong> a description of the TargetInterface object which is usedby the stop script to access the target hardware.Run ScriptThis Run Script property held in the Target project property group is used to define ascript that is executed when the target enters run state. This can be when theapplication is run <strong>for</strong> the first time or when the Debug | Go operation has been carriedout after the application has hit a breakpoint or been stopped using the Debug | Breakoperation. The aim of the run script is to carry out any target specific operations afterthe debugger has finished accessing target memory. This can be useful to re-enablecaches previously disabled by the stop script.See TargetInterface Object <strong>for</strong> a description of the TargetInterface object which is usedby the run script to access the target hardware.TargetInterface ObjectThe TargetInterface object is used to access the currently connected target interface.The following section describes the TargetInterface object's member functions.TargetInterface.beginDebugAccessSynopsisDescriptionTargetInterface.beginDebugAccess()Put target into debug state if it is not already in order to carry out a number of debugoperations. The idea behind beginDebugAccess and endDebugAccessis to minimizethe number of times the target enters and exits debug state when carrying out anumber of debug operations. Target interface functions that require the target to be indebug state (such as peek and poke) also use beginDebugAccessandendDebugAccess to get the target into the correct state. A nesting count is maintained,incremented by beginDebugAccess and decremented by endDebugAccess. Theinitial processor state is recorded on the first nested call to beginDebugAccessand thisstate is restored when the final endDebugAccess is called causing the count to returnto it initial state.TargetInterface.delaySynopsisDescriptionTargetInterface.delay(milliseconds)TargetInterface.delay waits <strong>for</strong> milliseconds millisecondsChapter 14Target script file161

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!