I define a 2 x 64 buffer in __xdata. I fill it with 0xAA Then in debug I look at the contents of xdata memory for my pattern which I do not see.
.
Using a watch box on audioOut[0][i] I see the data is somewhat random which is why there is no pattern in memory..
What am I I missing? Why is the data random?
IAR Workbench - The optimizer is off. i increments correctly
Code summary:
#define AF_BUF_SIZE 0x40
unsigned short __xdata audioOut [2] [AF_BUF_SIZE];
int main(void)
for (i=0; i < AF_BUF_SIZE; i++)
{
audioOut[0][i] = audioOut[1][i] = 0xAA; // I tried = 0 in place of 0xAA, it did not work either
}
