AnsweredAssumed Answered

declaring array of constants in ROM

Question asked by Steve Church on May 2, 2013
Latest reply on May 2, 2013 by Steve Church


I'm using a 9S08QE8 and wish to declare an array of constant ints into ROM and be able to reference them from another module.

I have used :

const static unsigned int page_table[] = {.........};

in the .h files with

extern unsigned int page_table[31];

to declare it to other modules.


I get linker error L1823 as well as an out of RAM error (because it has put it in RAM).


Can someone point me in the right direction. I have spent all afternnon trying to get this right. It sounds simple enough.