This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Declare an initialized array at an absolute pos

Hi,

The following code does not work:
static code BYTE InitArray[] _at_ 0x1234 =
{
0x01, 0x02, 0x03, 0x04
};

Is there a way to put an initialized array at an absolute position in memory?

Second similar question: I need to word-align several constants in memory (a DMA transfer need word-aligned addresses). The code of the previous question could help but I would like a more elegant solution...

Thanks

0