Hi Silvio.
Thank you for your answer.
I read the topics but I didn't find solution on my question.
I can do reading and writing EEPROM.
I need for method of initialization of EEPROM in compiling phase.
For example:
const char xdata STRING[] = "Hello, World!";
Array STRING will be locating and initializing in xdata segment.
How can I initialize the STRING in EEPROM?
You wrote:
How can I initialize the STRING in EEPROM?
Well, C compilers don't know about EEPROM or RAM or serial EEPROM. If are memory mapped you can access as stated by you:
const char xdata STRING[] = "Hello, World!";
On software the EEPROM space is accessed with MOVX opcode, exactly like for XDATA space. The only difference is that in your access routine you must first configuring the EEMEN bit. As you already did. Thus using a pointer to point to XDATA space (either EEPROM or SRAM) which holds and array it's easy for you.
However, I think the real problem is how your programer device will manage with the EEPROM contiguous stream of 2K hex data and 8K flash data, at burning time.