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.

Strange Memory Access... DDR

I am trying uart example.

but memory access is some strange...

memcpy is runing well but array acess is not correct.

I changed memory type of DM6473 EVM( MT74H32M16HR-37E  => MT74H32M16HR-3 )....

should I change some parameter of configuring register???

I compare both of them( MT74H32M16HR-37E , MT74H32M16HR-3 ) but almost parameter was same...

I changed just one CAS = 5 => CAS =6.

I tried this code.

   buf.addr = TestStringStart;

    buf.timeout = SYS_FOREVER;
    len = SIZEOF_UART_STRING_START;
     status = GIO_write(hUart_OUT, &buf, &len);

but terminal in PC there was some strange charactor. then I did some test as follow.

 memcpy(TestStringStart,"abcdefg01234567\r\n",SIZEOF_UART_STRING_START); 

=============>  In Memory view all data is correct.

 TestStringStart[0] = '9';
 TestStringStart[1] = '8' ;
 TestStringStart[2] = '7';
 TestStringStart[3] = '6';
 TestStringStart[4] = '5';

===============> but all data is not correct....strange..random

plz help me..

best regards pansu Jang.

 

 

 

 

  • Which particular UART example are you referring to?

    In general if your code runs (without crashing) and the data appears good from the view of CCS than your DDR is probably just fine. Since you mention this is a UART test and you are seeing bad data coming out of the UART my first thought would be to verify that the UART is configured correctly on both ends, it is very easy to see bad data if the settings do not match (i.e. same baud rate, etc.).