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

problem with XDATA

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

Parents
  • 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?

Reply
  • 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?

Children