Hi!
XDATA is not working properly in P89v664 microcontroller.It is compiling well but in target board not showing result. but same program (using XDATA)working for p89v51rd .
Here we are using Flash magic version 4.24
Please suggest me to solve this problem.
with regards, mani
Somebody please don't nag.
You haven't shown enough code.
Does your function printlcd() expect a pointer to xdata text or exactly what pointer type does it expect?
If you think your LCD code is secret, or too much noise to present: Create a small sample without the LCD code then - for example a dummy printlcd() function that computes the length and checksum of the string it receives. If your real printlcd() function fails with xdata, then such a dummy function should also fail. In this case, we can't see how your printlcd() function is declared, or how it uses the pointer it receives as a parameter.
Have you separated the two cases where you have the pointer stored in xdata, and when it points to text stored in xdata?
Hi Per Westermark!
my printlcd code:
void printlcd(unsigned char *str) { while(*str) //till string ends write(*str++,1); //send characters one by one }