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.

TMS570LS3137: Issues on EMIF, SPI and DMA

Part Number: TMS570LS3137

Hi,

Customer faced a serious issue on TMS570. 

Details are:

DMA+MIBSP are used to connect with external SD card.

1) When TMS570 internal RAM datas are sent to SD card through DMA+MIBSP, and then read again from SD card to internal RAM, all are OK, without any issues. 

2) When external data like SDRAM or MRAM (through EMIF) datas are sent to SD card thourgh DMA+MIBSP, and then read again from SD card and saved to SDRAM or MRAM, some datas are wrong. For example, 128 words are send and read, some times all datas are correct, sometimes 1 data is wrong, some times 10 are wrong. 

SPI: 25MHz, DMA with buffer size 128 words. 

EMIF: 75MHz

Some other tests are done:

1) Independent SDRAM or MRAM read/write through EMIF, 128 words one time, all are OK.

2) The wrong datas are very similiar to the higher SDRAM/MRAM address datas, or a mixed value. For example: 256 words are write to SDRAM, then they are sent to SD card. Each time, the first 128 words are read. If all of the first 128 words are 0x1020, and all of the second 128 words are 0xFEFE, the wrong data could be like 0x1E2E, 0xF0F0.  

3) All of the other app functions are disabled, the issue is still there. 

In summary, there's something wrong with the connection of EMIF, SPI and DMA. 

1) If SPI+DMA without EMIF, internal RAM datas are sent and read back from SD card, no issue.

2) If independent EMIF, the read and write of SDRAM and MRAM are all OK. 

3) But, when SDRAM or MRAM's data are read through EMIF, then sent to SD card through SPI+DMA; read back and saved to SDRAM or MRAM, issue happens. 

What could be the issue?

Will you help to take a look, please?

Thanks a lot.

Br, Jordan