F7: SAI 24 bit audio samples to SRAM via DMA in bytes?
Hello,
I'm trying to get some audio samples with 24 bit resolution from the SAI (RX, connected to an external ADC) into SRAM via DMA.
When DMA data sizes / alignments are set to WORD (32bit) for peripheral and memory everything works fine.
To save some SRAM (and later on bandwidth) I tried to get only the 3 bytes (24 bits) from the SAI output into SRAM, so I set the DMA data sizes / alignments to BYTE.
Now the data in SRAM is crap... (looks like some bytes from somewhere within the ADC data).
The F7 ref manual (RM0410) made me think that the DMA is smart enough to get data bytewise from the SAI FIFO, although the SAI writes only 3 bytes per sample to the FIFO.
My questions are:
1) Is it possible to get only the 3 bytes via DMA into SRAM?
2) If yes, then how?
