Hello,
I just write and read 10 MByte to/from DDR3 memory as below.
Write:
for(i=0;i<(10*1024*1024);i=i+4)
{
*(volatile uint32_t *)(DDR3_START_ADDR + i) = data;
}
Read:
for(i=0;i<(10*1024*1024);i=i+4)
{
data = *(volatile uint32_t *)(DDR3_START_ADDR + i);
}
When I compared, the write and read data were same, but the wring/reading time took quit longer than I expected.
Writing 10MB took about 80ms, reading took about 257ms at 1.25GHz core clock is 1.25GHz and 667MHz DDR3 clock.
Questions are
1> Is it normal that reading time takes longer time than writing?
2> The time I measured reasonable?
3> How to improve reading/writing time.