Keil Logo

µVISION DEBUGGER: LOGGING MEMORY CONTENTS TO A FILE


Information in this article applies to:

  • µVision Version 2.34
  • µVision Version 3.00

QUESTION

Can I read the contents of memory with the debugger and write it to a text file?

ANSWER

Yes. To do this, use the LOG command to tell the debugger to write everything displayed in the command window to a text file. For example, to create a file called memdump.log in the project directory, enter the following command in the debugger command window:

log >memdump

Next, use the DISPLAY command to read the data from memory and display it in the command window. For this example, we'll display bytes 1000(hex) to 1100(hex) in extended memory (XDATA).

d x:0x1000,x:0x1100

Then we'll stop writing to the log file.

log off

The memory contents display is available in the text file memdump.log.

MORE INFORMATION

  • Refer to the LOG and DISPLAY commands in the DBG51.CHM file located in the C:\Keil\C51\HLP directory.

Last Reviewed: Saturday, May 1, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.