STM32U5 Autonomous mode SPI for ADC interface
I'm trying to interface a TI ADC with an STM32U575ZI or STMU545RE (same issue on both Nucleo boards).
The ADC has a "data ready" pin that needs to trigger a fixed-size transfer of 32bytes over SPI. Given the overall sampling rate, only a few microseconds are available for overhead. Seems like a natural fit for the autonomous mode + DMA features on the STM32U micros, but I can't seem to figure out how this is supposed to go together.
I can get one transfer going no problem, sometimes two, but something always errors out. Currently getting a MODF flag, which makes no sense based on the documentation as the NSS system is set to "software" and always at 1.
Is there a document describing how the DMA and SPI modules interact under autonomous mode? I'm clearly missing something important here. Handshaking, what causes the TSIZE to reload the CTSIZE register, recommended DMA configs + trigger setups, anything?
Working on putting together an example for people to dissect, but this must surely be a common usecase?
Thanks for any input.
