Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 219073

Forum Post: RE: TMS320F28388D: EMIF getting unexpected data.

$
0
0
Hi QJ, I'm the customer who met this issue. The SD Timer registers you means are below reg? we configurated them according to the datasheet. emif11.enableSyncSelfrefresh = true; emif11.cs0Refresh = 750; emif11.cs0tRFC = 6; emif11.cs0tRP = 2; emif11.cs0tRAS = 5; emif11.cs0tWR = 2; emif11.cs0tRRD = 2; BTW, the test code is: uint16_t readWriteSyncMemory(uint32_t memSize) { uint32_t memWdl; // // Fill far memory buffer with data. // for(i=0; i < 0x400; i++) { for(j=0; j < Seg_Len; j++) { memWdl = 0x0; for(k=0; k < memSize; k++) { extSDRAMBuf[i<<5+j][k] = memWdl; memWdl += 0x00050001; } } vTaskDelay(1); } // // Read far memory buffer into local buffer and verify data. // for (i = 0; i < 0x400; i++) { for (j = 0; j < Seg_Len; j++) { memWdl = 0x0; for (k = 0; k < memSize; k++) { localRAMBuf[k] = extSDRAMBuf[i<<5+j][k]; // // Return error if read data is incorrect. // if (localRAMBuf[k] != memWdl) { return (k?k:1); } memWdl += 0x00050001; } } vTaskDelay(1); } return(0); } We put it in the freeRTOS task before for(;;), the code is refer the TI's example SDRAM program. This issue is critical for us, looking forward to get the feedback ASAP, thanks!

Viewing all articles
Browse latest Browse all 219073

Trending Articles