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.

egister is a string describing the register to set and must be one of r0, r1, r2, r3, r4, r5,r6, r7, r8, r9, r10, r11, r12, r13 or sp, r14 or lr, r15 or pc, cpsr, r8_fiq, r9_fiq, r10_fiq,r11_fiq, r12_fiq, r13_fiq, r14_fiq, spsr_fiq, r13_svc, r14_svc, spsr_svc, r13_abt, r14_abt,spsr_abt, r13_irq, r14_irq, spsr_irq, r13_und, r14_und, spsr_und.Note that this function will only change the CPU register state if the CPU is stopped.TargetInterface.trstSynopsisDescriptionTargetInterface.trst()TargetInterface.trst per<strong>for</strong>ms a JTAG TAP reset.TargetInterface.waitForDebugStateSynopsisDescriptionTargetInterface.waitForDebugState(timeout)TargetInterface.waitForDebugState waits <strong>for</strong> the target to enter debug state with atimeout of timeout milliseconds. If the timeout period expires and exception is thrownwhich is caught by the debugger.Program loadingCrossStudio <strong>for</strong> <strong>ARM</strong> supports FLASH programming (and subsequent debugging) byloading a program into the RAM of the target and transmitting it the data to beprogrammed.The use of a target loader is determined by the value of the Loader File Path projectproperty defined <strong>for</strong> the appropriate configuration of the project. The Loader File Pathproperty specifies the location of the loader executable to use, if this is defined theloader executable will be downloaded onto the target an run prior to download of themain application.In addition to the Loader File Path property, the Loader File Type project propertymust be specified. This tells CrossStudio how to communicate with the loaderprogram. The various communication mechanisms available are explained in moredetail later. The Load File Typeproperty may be set to one of the following:•LIBMEM RPC Loader— Calls to LIBMEM library functions will be made directlyusing a remote prodedure call mechanism.•Comms Channel Loader — The <strong>ARM</strong> debug comms channel is used tocommunicate with the loader.166 Chapter 14 <strong>ARM</strong> Target Support

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

Saved successfully!

Ooh no, something went wrong!