Hi,
Yes. Is there any other way to address this issue? why the write data is not matching with the read data? Why the read function fails to read the write data? or Is there any memory limitations in onchip ram?
Code is similar to the one you modified.
int main() {
int i = 262144;
unsigned int addr;
unsigned int result;
for (addr =0; addr <=0x1FFFFF ; addr+=4) {
IOWR_32DIRECT(BASE_ADDRESS, addr, i);
i++;
}
for (addr = 0; addr <= 0x1FFFFF; addr+=4 ) {
printf("Address: 0x%x, Value: %d\n", BASE_ADDRESS+ addr, IORD_32DIRECT(BASE_ADDRESS, addr));
}
return 0;
}
Thanks.