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

How to initialize an array at absolute location in code memory

Hi,

I've to modify a code previously written in Tasking compiler and at many places I find code like

_rom USIGN08 TempTable[CAL_TEMPERATURES] _at(0xf35c)=
{ 0x0F,0x28,0x51,0x7A,0x8F };

Here the TempTable array is to be located at code address 0xf35c and also to be initialized.

As per Keil compiler book, variables can be located at absolute location using _at_ but can not be initialized.

Is there a way to do this?

Thanks,

Rajesh

0