rt1060 spi dma Synchronize

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

rt1060 spi dma Synchronize

825件の閲覧回数
2548903578
Contributor III

Hardware Details
Device :MIMXRT1061

SDK Name:SDK_2.x_MIMXRT1061xxxxA
SDK Version :2.11.1 (563 2022-03-24)
Host OS :Windows
Toolchain :MCUXpresso IDE(11.5.0_7232)
Middleware  :FatFS, FreeRTOS

When I use spi dma to carry data, I found that when dma transfer is triggered, dma will read data from fifo, but the data conversion of spi is not completed at this time, so the data read by dma will be 0, and then proceed The read will not be read until the last conversion is completed. How should I deal with this problem.

 

QQ截图20220610164624.png

I am directly operating the send and receive registers of the spi. When the spi's dma transmission is completed, the spi's dma reception will be triggered, but at this time it will appear that the data has not been put into the fifo, and the dma has completed the operation of reading the fifo. Cause my data is not real time. How should it be solved?

ラベル(1)
0 件の賞賛
2 返答(返信)

821件の閲覧回数
2548903578
Contributor III

 

    Is there any way to let the spi rx dma transfer the data after the data update is completed?

0 件の賞賛

771件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @2548903578 ,

Can you give more detail of the problem? How is the problem now?

 

Regards,

Jing

0 件の賞賛