Forum Discussion
Memory Conflicts in onchip ram
Hi,
I'm not able to complete in one run as well. Because some of the address locations require different data length or format and they're all mixed.
May be try to read first those address locations which got memory conflicts to know the data format and try to run in separate trial.
Btw, possible to provide your code for testing out on my platform?
Thanks,
Best Regards,
sheng
- ggxnd3 years ago
New Contributor
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.