AnsweredAssumed Answered

Looking for an RT105x spi double buffer example

Question asked by Ryan Shuttleworth on Jan 16, 2018
Latest reply on Jan 17, 2018 by Ryan Shuttleworth

Hello, I am using IAR with an RT1050 SDK, version  2.3.0 (2017-11-16).  I have been looking through various eDMA examples but nothing quite fits what I am trying to achieve.  I am looking for an example of continuously reading the  lpspi RX register via. DMA, triggered when the FIFO hits a given watermark.  I then want the DMA to populate one buffer with this data until full, then switch to another and back again and so on, issuing an ISR on the filling of each buffer.  I would call this double buffering but I have seen it referred to as a ping-pong setup.  I have seen examples for other processors but I am looking for an RT105x specific example, perhaps an i.MX example would also suffice given the similarities. 

 

Thanks, no RTFM responses please.

Outcomes