This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ti 6657 DDR write and read fails

Hi 

I have a program which performs a simple DDR memory check.

#define DDR_TEST_START 0x80000000
#define DDR_TEST_END 0x800FFFF0

int val = 0;
 uint32_t i;
 uint32_t readVal;

for (i = DDR_TEST_START; i < DDR_TEST_END; i += 4,val++){
         *(uint32_t *)i = val;
 }
 val=0;
 for (i = DDR_TEST_START; i < DDR_TEST_END; i += 4,val++){
           readVal = *(uint32_t *)i;


      if(readVal != val)
                 break;

}

I can never get to the DDR_TEST_END address value.

Also, while I'm running the program multiple times, the last reachable DDR address for me is always incremented by 0x40.

So in the beginning of the program the value returned from the function which runs this code is 0x80000040 , then 0x80000080 , then 0x800000c0, then 0x80000100  and so on.

It increments by 0x40 each time.

When I restart the program it starts from the beginning all over again.

I want to be able to write and read the values all the way to DDR_TEST_END in one a function call.

What settings should I apply ?

Thanks, Roee