Keil™, An ARM® Company

Technical Support

µVISION DEBUGGER: IMPORTING HEX FILE INTO XDATA MEMORY


Information in this article applies to:

  • Cx51 Version 7

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 µVision debugger?

ANSWER

Yes, the µVision 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 µVision 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

FORUM THREADS

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

Last Reviewed: Wednesday, June 21, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure