Data acquisition from PDM microphones via SAI using DMA - problem with writing to PDM_buffer
I have configured the readout of 4 PDM microphones through the SAI interface. I am using 1 slot of 32 bits per frame.
I have enabled DMA.
Unfortunately, when reading PDM data, the first 6 and last 2 values of the array are filled with zeros. This happens regardless of the size of the PDM_buffer.
Do I have something misconfigured? What could be the cause?
Edit: If the PDM_buffer array is of type uint16_t, there are 2x more zeros (12+4 ), and in the case of uint8_t 4x more zeros (24+8).
