RT1170. Finishing eDMA SPI transfer with PCS

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

RT1170. Finishing eDMA SPI transfer with PCS

176 Views
FredrikP
Contributor I

Hi,

Dunno if this has been answered before...

I'm working on a LPSPI driver using eDMA configured as a slave for the RT1170 family of processors. using the SDK version 2.11.1

  • Using call to LPSPI_SlaveTransferEDMA function for transfer
  • Slave eDMA configured with transfer data size of: 64 bytes

Scenario:

  • b2b configuration.
  • Slave waiting for 64 bytes of data using LPSPI_SlaveTransferEDMA
  • kLPSPI_PcsActiveLow
  • Master sending only 27bytes using normal SPI transfer pulling PCS high when finished
  • When master have completed it's 27 bytes it sets PCS high 

Problem:

  • When the master is finished sending its 27bytes and PCS is high again. I want the eDMA to finish on the PCS going high and then calling the callback function.
  • It seems like the eDMA is waiting for the complete set of 64bytes before returning from the transfer and calling the callback function.

Question:

  • Is it possible to get it the eDMA to finish at the 27bytes and calling the callback function? 

Br

/Fredrik

 

 

 

0 Kudos
Reply
0 Replies