Keil Logo

ULINK: SAVE MEMORY CONTENTS TO A FILE


Information in this article applies to:

  • ULINK USB-JTAG Adapter
  • ULINK2 USB-JTAG Adapter

QUESTION

Is it possible to dump or save the contents of target memory using the ULINK with µVision? I have an application that modifies pieces of the memory and I need to verify if the modifications are done correctly by reading out the memory of my application.

ANSWER

Yes, it is possible using ULINK. To ensure that ULINK reads the memory contents of the target system, you need to disable all Cache Options under Project — Options for Target — ULINK Settings.

If you wish to check the memory contents before the program runs (its state after reset), under Project — Options for Target — 'Settings' tab uncheck Run to main().

To prevent the debugger from overwriting the program currently on the device, under Project — Options for Target — 'Utilities' tab make sure Update Target before Debugging is unchecked.

Make sure your ULINK settings are correctly configured, and start the debugger.

Depending on the type of output file desired, you may use the following µVision commands:

  • Use the SAVE command to store the memory content as a Intel HEX file...
  • Or use the LOG command to protocol the Output Window to a file. Then you may use the Display command with start/end address to get the content of the memory.

MORE INFORMATION

  • Refer to Display in the µVision3 User's Guide.
  • Refer to LOG in the µVision3 User's Guide.
  • Refer to SAVE in the µVision3 User's Guide.

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Tuesday, March 23, 2010


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.