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

How can i write the memory

I'm using a MicroConverter ADuC812.and a 512K Flash memory with the space
0x0000--0x07FFFF,

I have the PK51 Professional Developer's Kit and have examined the example in the folder:

Keil\C51\EXAMPLES\FarMemory\16MB RAM on ADuC812. 

i configure the ?C?XPAGE1SFR and ?C?XPAGE1RST ,just the same as the .example

enabled under Project -> Options -> Device:
use LX51 instead of BL51
use AX51 instead of A51


enableed under Project->Option->Target:
'far' memory type support
Save address extension SFR in intertupt.


entered under Options for Target - LX51 Locate - User classes:

HDATA (X:0x000000-X:0x7FFFFF)


i want to write from 0x000000 to 0x07FFFF like this:
for(j=0;j<8;j++){
for(i=0;i<=0x0FFFF;i++){

FVAR(char,j*0x010000+i)=i;
}
but it can only write from 0x0000 to 0xFFFF
How can I do?

0