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

W77IE58 On Chip XRAM Problem

Hi All,

I am using Winbond W77IE58 chip. When i am using xdata variable as global variable, i am getting some junk data. (i.e) I have declared a char array unsigned char xdata test[] = "TEST CHARACTERS" as global variable.

Then when, i am trying to send the same data to the serial port, i am not getting the same data. It is giving different data.

If i removed xdata, then im getting correct data.

But if i declare some array as local xdata variable, the iam getting correct data on the serial port. Only if i declared as global varible it is giving some different data.

I have enabled the DME0 bit also to enable on-chip XRAM.


Thanks in advance.

Parents
  • Are you including the static initializer startup code (INIT.A51) in your project?

    Strings constants are often kept in code memory to avoid having to copy them from ROM to RAM.

    Can you read and write these xdata locations from your debugger? That is, are you sure the hardware works?

Reply
  • Are you including the static initializer startup code (INIT.A51) in your project?

    Strings constants are often kept in code memory to avoid having to copy them from ROM to RAM.

    Can you read and write these xdata locations from your debugger? That is, are you sure the hardware works?

Children