We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How can one locate a table of constants at a certain address in C ?
I am new to C, and perhaps this is why I don't quite understand you. Please tell me what is the trouble with the 'at' keyword.
There is no trouble if it is external flash accessed as external DATA. In this case just use:
unsigned char xdata table1[size_1] _at_ address_1; unsigned char xdata table2[size_2] _at_ address_2;
But if it is PROGRAM memory (CODE segment) then you should use linker options because it is not possible to do something like:
unsigned char code table_1[size_1] _at_ address_1 = "blabla";
"Please tell me what is the trouble with the 'at' keyword" Note that the keyword is '_at_' - complete with the underscores! Did you read the description in the Manual, in particular the two restrictions stated at the foor of the page? That answers your question