This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530 TIMAC far model

Other Parts Discussed in Thread: TIMAC, CC2530

Hello,

I am having an issue with the IAR 8051 8.20.2 with TI CC2530 with TIMAC.
In my project I want to declare a far pointer to access the internal flash like this:
const __far EventLog*  gpEvLog = (__far EventLog*)0x15000;

and to use this pointer in a function like:

Flash_Read(&gpEvLog->page[i].pageHead, (uint8*)&pageHead, sizeof(EventPageHeader));
Now I have plain/banked/large/XData code model and without __far the pointer only stores the 16 LSB (eg 0x5000).
What is the data model to use in my case and what other setting do I need? If I use far data model I cannot compile the TIMAC code anymore because is says that:

the keyword "__xdata" is not available with the current settings. __xdata memory attribute is not supported when data model far or far_generic is used

Thanks