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.

spi传输,重新启动spi时会丢失数据

spi依次传输8组数据a[],b[]...h[];edma接收存储,第一次传输时顺序正确,但是传输到一定字节,关闭spi,处理完以后再次启动spi_edma,传输数据的顺序就变成g[],h[],a[],b[],c[],d[],e[],f[];这个应该是再次开启spi时丢失了前面6个数据吧?这个怎么解决呢?

看了下SPI block diagram,很有可能是关闭spi后Rx shift reg,rxbuf,spibuf寄存器还有值,下次打开又传输进来了,多了两个数据,但是奇怪为什么是两个不是三个?

在重启spi之前,已经复位spi并且重新配置,结果还是一样