rt1060 spi dma Synchronize

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

rt1060 spi dma Synchronize

1,144 Views
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?

Labels (1)
0 Kudos
Reply
2 Replies

1,140 Views
2548903578
Contributor III

 

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

0 Kudos
Reply

1,090 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @2548903578 ,

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

 

Regards,

Jing

0 Kudos
Reply