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

Flash allocation and force variable locations

Hi!,

Two questions about memory allocation:

1.- How can I locate this expression in ROM Flash?:

char AUTOTEST [20+1]="=====SELFTESTING====";

There are any '_rom' tense?

2.- How can I locate a block of global variables on an specific address?

If I declare on 'VARIA.C':
unsigned char Log_On_OK[MAX_OK];

And this variable is used on 'LOGGER.C', on the '.map' archive berofe compiling, I see:
-----------------------------------------------------
logger.o(.data)

Log_On_OK 0x00000024 Data 12320
------------------------------------------------------
But I want to locate Log_On_OK where I want and that the compiler knows it, and asociate 'Log_On_OK' with 'varia.o'

Thanks!!!

0