ARM Technical Support Knowledge Articles

IMPORTING HEX FILE INTO XDATA MEMORY

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

I have an Intel HEX file that contains an image for xdata memory. Is there a way to load the HEX file into xdata memory in the uVision debugger?

ANSWER

Yes, the uVision simulator can load Intel HEX file contents into xdata memory. You must add the following extended Intel HEX-386 address record as first line to the Intel HEX file so the uVision debugger "knows" to load the file into xdata memory.

:020000040100F9

The SAVE command may be used to save xdata memory contents in a HEX-386 file. For example, the following command saves the xdata contents from X:0x0000-0x7FFF into a file. This file may be loaded in subsequent debug sessions to restore the xdata contents.

SAVE MyXdata.HEX X:0, X:0x7FFF

SEE ALSO

Article last edited on: 2006-06-21 10:22:32

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential