AnsweredAssumed Answered

Stm32 spi with triggered dma

Question asked by Roberto Marino on Nov 16, 2017
Latest reply on Nov 16, 2017 by KIC8462852 EPIC204278916

Dear community,
my setup is build on top of stm32f439 and ADS131e4 ADC connected through spi.
The adc is set in continuous mode, so it fires an impulse on a pin (DRDY) as soon as a new sample is ready.
The sample consists of 15 bytes, and I would likee to read the packet using DMA in double buffer/circular mode.
I have tried many solutions without success.
My first solution was to simply trigger on the SPI4_RX request.
SPI4_RX/TX dma requests are on DMA2 Stream0/1 Channel 4.
Once programmed I don't need the tx dma channel, only the rx.
Some questions:
At this moment I don't want to take care about the double buffer switch so: do I need an interrupt handler for sure?
Furthermore, I don't want to transmit: do I need to setup the tx dma channel as well?

Final question: If i want to trigger the dma reading from spi can I use a timer channel request?