ARM Technical Support Knowledge Articles

INITIALIZING XDATA MEMORY

Applies to: AX51 Macro Assembler

Answer


Information in this article applies to:


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

SEE ALSO

Article last edited on: 2007-01-10 10:36:23

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