From the data sheet, it says the Atmel AT89C51CC03 has 256 bytes RAM and 2048 byte ERAM. When I use Keil compile my code, at the end, Keil says data = 105, xdata = 2285...
There is no other warning, but should xdata be less than 2048? I am just wondering if this is the root cause of my problem.
Thanks,
How can they you could have 64K of Xdata. just because the chip only has 2K does not mean you are using it. You could have an external RAM. They the warning would be annoying and wrong.
Indeed: you need to configure the Project to match your hardware - then you will get appropriate warnings!