cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U575 SAI - Best Way to Buffer Audio Passthrough from SAI 1A to SAI 2A?

luka_
Associate II

Hi all,

I'm working on an audio project with an STM32U575, where SAI 1A is receiving TDM data from an ADC and SAI 2A needs to take the data after processing and output it over I2S to a DAC.

The audio sample rate is 48 KHz in both cases, and both SAI blocks get their clocks from PLL2P at 12.288 MHz.

How should I buffer and process the data? I'm concerned about whether the SAI peripherals will drift apart from each other if I try to start a naive double-buffering system.

Thanks for any tips!

1 REPLY 1
MOBEJ
ST Employee

Hello @luka_ ,

I recommend checking the SAI audio example provided by ST for the STM32U575I-EV board. It demonstrates SAI configuration and audio streaming which could be very helpful for your project setup : 

STM32CubeU5 SAI AudioPlay Example on GitHub

This example shows how to configure SAI peripherals, manage DMA buffers, and handle audio data flow efficiently.

Br

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.