i'm using AnalogDevicesuC 812. If i'm don't mistake, I have an external memory on this ev. board. I try do based use in this xdata but don't succsess.
memcpy (data_buffer, "DATA Buffer....", sizeof (data_buffer)); memcpy (xdata_buffer, "XDATA Buffer....", sizeof (xdata_buffer)); printf(data_buffer); printf(xdata_buffer);
data_buffer has been ok, but xdata_buffer printed garbage...
maybe I need do some change in my ADuC812 board or do a change in keil propities?
The core problem here is a buffer overrun. Check how much memory your strings actually consume, and how big your arrays are. Your string written to xdata lacks the terminating '\0'. Bad mojo.
And two more things: don't use printf() where fputs() would suffice, and absolutely don't use it without a format string.