[sdiy] STM32G4 SAI problems
Vladimir Pantelic
vladoman at gmail.com
Sat Jul 15 23:41:46 CEST 2023
I just fired up Cube MX, using a 12.288MHz Xtal for HSE and selecting 48kHz in
SAI, I see a "Real audio frequency" of 48kHz and 0% error for a "Master with
Master Clock out" on SAI A and I see 0kHz/0% for a "synchronous Slave" on SAI B
Clock tree is set up to feed 49.152 MHz PLLQ to the SAI1 block. SYSCLK is at
147.456 MHz
On 7/15/23 22:36, rburnett at richieburnett.co.uk wrote:
> Anyone using STM32G4 with STM32CubeIDE and managed to get the SAI codec
> interface working?
>
> I've been banging my head against a brick wall here for the past two days trying
> to configure the SAI peripheral of a Nucleo-G474RE using the CubeIDE graphical
> config tool (MX?), and still no signs of life on the relevant pins! It asks me
> what "Audio Frequency" I want from a drop down menu of the usual suspects (32k,
> 44.1k, 48k, 96k, etc.) but the "Real Audio Frequency" and "Error" both stay
> stubbornly stuck at zero and greyed out. The clock source shows as "SAI PLL
> Clock" but is greyed out (and can't be changed,) and I've tried all possible
> options for the SAI clock MUX in the actual clock config tool anyway, including
> an external I2S clock input. Still no luck.
>
> Why does this have to be so difficult!? And why do chip vendors always provide
> working examples for every peripheral except SAI / I2S ! (>.<)
>
> I have managed to get a LED blinking, and send "Hello World!" to a terminal via
> UART though, so not entirely fruitless.
>
> -Richie,
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy
> Selling or trading? Use marketplace at synth-diy.org
More information about the Synth-diy
mailing list