Part Number:TMS320F28377DOther Parts Discussed in Thread: C2000WARE
Hello,
I am trying to retrieve data from FRAM(FM25W256G) using the TMS320F28377D's SPI and DMA.
SPIA as the spi master, FRAM as the spi slave. I configured transmission of bit for SPITXBUF as 8 and receipt of bit for SPIRXBUF as 8. DMA word size is 16 bit.
I am not seeing the correct data in the Rx Buffer after the SPI Rx DMA's transfer complete interrupt occurs. I can see the data in SPIRXBUF which is the same as the low 8 bit data from SPITXBUF. So I think transmission happenned in the low 8 bit of data from txData[].
Transmit data: sdata[]
Receive data: rdata[]
When I modified transmission of bit for both SPITXBUF and SPIRXBUF as 16, all of receipt data are 0.
So what should I do to make DMA transfer working correctly to receive the data in its entirety?Any kind of help would be appreciated.
Thanks!
Alice:
您好,
c2000ware中F28388D有SPI DMA的示例,请参考
spi (ti.com)
下面帖子讨论了类似问题,请参考。
TMS320F28377D: SPI RX DMA does not transfer data to receive buffer – C2000 microcontrollers forum – C2000︎ microcontrollers – TI E2E support forums
TMS320F28379D: DMA SPI: Not receiving correct data…Only 1 byte is non-zero – C2000 microcontrollers forum – C2000︎ microcontrollers – TI E2E support forums
TMS320F28379D: SPI DMA support 16 bit or 32 bit. – C2000 microcontrollers forum – C2000︎ microcontrollers – TI E2E support forums
TMS320F28388D: Problem with DMA + SPI reception buffer – C2000 microcontrollers forum – C2000︎ microcontrollers – TI E2E support forums