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.

[参考译文] TMS570LC4357:TMS570LC43457 多缓冲器 SPI RX 不触发 RXDMA

Guru**** 2958090 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1656374/tms570lc4357-tms570lc43457-multi-buffer-spi-rx-not-triggering-rxdma

器件型号: TMS570LC4357

您好、


我尝试获得 RXDMAENA (DMACTRL[0]位 15) 以生成自动模式

当 MibSPI1 接收数据时由硬件触发的 DMA 请求、例如
TMS570 DMA 控制器将从 MibSPI1 RXRAM 接收到的数据复制到中
无 CPU 干预的应用 RAM (s_rx_buf)。

通过测试、我确认了软件 DMA 触发器会将数据从 RXRAM 传输到所需的缓冲区、但我似乎无法确定如何用 mibSPI->DMACTRL 导线来触发 RX DMA 传输(当我通过 SPI 在 RXRAM 中接收到 N 个字节时)。

我在测试代码中附上了详细的评论和我尝试过的东西、希望有人能向我指出正确的方向。  

这样做奏效后、目标是还使用 TXRAM + DMA 将数据从 SPI 中导出、同时使用 DMA 接收数据。  

感谢您的帮助。

mibspi_dma_testing.c