AnsweredAssumed Answered

How to send the same value repeated times using SPI and DMA

Question asked by Tobias Lifschitz on Feb 24, 2019
Latest reply on Feb 25, 2019 by Jing Pan

Hi everyone!


I am using Kinetis K64 and it's SDK. I need to send a value (16 bit in this case) repeated times (N) using SPI and DMA. Creating a buffer of N and filling it with the value and then using the "DSPI_MasterTransferEDMA" API would work, but I want to avoid it (creating the buffer).


I know that setting the correct values in the TCD of DMA it is possible to copy N times the same value (using a -2 minor loop offset for example), but I can't find the way to access the TCD using the SPI DMA driver (fsl_dspi_edma). 


Is there a straightforward way of doing this sticking to the transactional api mechanism?


Thank you very much!