Keil Logo

AX51: INITIALIZING XDATA MEMORY


Information in this article applies to:

  • C51 Version 8
  • AX51 Version 3

QUESTION

During manufacturing, we want to pre-initialize FLASH memory located in XDATA memory space. If this was CODE space I would use DB assembler statement to do this. How do I do this for XDATA memory?

ANSWER

With the AX51 Macro Assembler, you can use the DB assembler statement in the XDATA and HDATA memory space. For example:

?XD?MyInit   SEGMENT XDATA
             RSEG    ?XD?MyInit
Values:      DB      1,2,3,4

             END

To generate a HEX image, make sure you invoke OHX51 with the correct address range. For example:

OHX51 MyProject RANGE (X:0 - X:0xFFFF) H386

MORE INFORMATION

  • Refer to XCROM in the Cx51 User's Guide.

SEE ALSO

Last Reviewed: Wednesday, January 10, 2007


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.