12.07.2015 Views

ARM DS-5 Using the Debug Hardware Configuration Utilities

ARM DS-5 Using the Debug Hardware Configuration Utilities

ARM DS-5 Using the Debug Hardware Configuration Utilities

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.

Configuring debug hardware for GDB9.21 RVIahbload command syntaxRVIahbload uses an access port that is bridged to <strong>the</strong> system bus, which might be AdvancedHigh-performance Bus (AHB) or Advanced Extensible Interface (AXI). Although this directroute has speed improvements, <strong>the</strong>re are additional compliations to consider. For example,loading is performed in <strong>the</strong> physical memory map.You specify <strong>the</strong> files to load in <strong>the</strong> same way as for rviload, that is, by using -bin addr:binaryfile or you can specify ELF files which load to a fixed location (--elf file.elf). The debugunit to which you want to connect is specified by a .rvc file, and you cannot supply an addressor hostname as in <strong>the</strong> case of rviload. When <strong>the</strong> file has downloaded, you can use <strong>the</strong> -jumpoption to start <strong>the</strong> target executing. For this to succeed, however, <strong>the</strong> device must supportexecution.9.21.1 SyntaxRVIahbload [options]--bin address:fileLoad binary image file at specified (hex) address.Option synonym: -i address:file--bus busnumOverride <strong>the</strong> detected AHB bus to use for <strong>the</strong> download.Option synonym: -b busnum--config RVCfileProvides <strong>the</strong> full path of <strong>the</strong> .rvc config file to use.Option synonym: -f RVCfile--devnum deviceThe device to use for <strong>the</strong> download. Default 1.Option synonym: -d device--elf filenameElf file to load. Cannot be supplied at same time as -i.Option synonym: -e filename--helpDisplay <strong>the</strong> command help.Option synonym: -h--jump addressStart executing from this (hex) address after loading if supported by device.Option synonym: -j address9.21.2 ExamplesThe following are examples of how to use RVIahbload:RVIahbdownload -f rvi.rvc -i 8000:myprog.bin -d3 -b1 -j 0x8000This loads <strong>the</strong> binary file myprog.bin to address 0x8000 on device 3 using bus 1and starts executing it.<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 9-30ID021112Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!