AX51: INITIALIZING XDATA MEMORY
Information in this article applies to:
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?
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
Last Reviewed: Wednesday, January 10, 2007
of your data.