13.07.2015 Views

RealView Debugger User Guide - ARM Information Center

RealView Debugger User Guide - ARM Information Center

RealView Debugger User Guide - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Reading and Writing Memory, Registers, and Flash7.5.4 Comparing memory with file contentsTo verify a file:1. Ensure that you have downloaded a memory range into a file as described inDownloading memory to a file on page 7-14.2. Select Debug → Memory/Register Operations → Upload/DownloadMemory file... from the Code window main menu to display theUpload/Download file from/to Memory dialog box (see Figure 7-3 on page 7-14).3. Select Verify Memory and File.4. Specify the file to be compared.5. Specify the start address to be compared. This must be within the range specifiedin the memory file.6. Click Apply to compare the file contents with the specified memory block.7. Click on the Cmd tab in the Output pane and view the results, for example:verifyfile,ascii,gui "D:\<strong>ARM</strong>\RVD\Test_files\memory_file_3"Mismatch at Address 0x000088B6: 0x8E vs 0x8FThe first mismatch is identified and the location reported. Any mismatches afterthis location are not reported.8. Click Close to close the Upload/Download file from/to Memory dialog box.9. Double-click on the red marker disc to clear the breakpoint at line 301.7.5.5 Filling memory with a patternTo fill a specified area of memory with a predefined pattern:1. Select Target → Reload Image to Target to reload the image dhrystone.axf.2. Click on the Src tab to view the source file dhry_1.c.3. Set a default breakpoint by double-clicking on line 301.4. Click Run to start execution.5. Enter 5000 when asked for the number of runs.The program starts and then stops when execution reaches the breakpoint at line301. The red box marks the location of the PC when execution stops.6. Select View → Memory to display the Memory pane.7-16 Copyright © 2002-2005 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0153G

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

Saved successfully!

Ooh no, something went wrong!