I'm having trouble getting DMA transfers from the ADC to RAM to SPI2 to work properly. I've followed example 1 from App Note 2548 but can't seem to get the interrup from DMA channel 5 to fire properly. I need it to fire because my process of data transfer requires some smarts to reconfigure which external device I'm writing to every so often. Code from my DMA config function is below. Please let me know what I'm doing wrong.
My ADC DMA transfers appear to work, I just never get an interrupt (or even see flags) for the transfers on channel 5.
I did remember to enable the DMA clock, though failing to enable clocks has bitten me enough in the past.
After some more prodding around it turns out that since I didn't set the transfer to a circular mode I had to be sure to reload the buffer size register (CNDTRx) after each transfer.