<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I don't know of your problem, but note that the SAI interface in the G series isn't the same as the one in the F series. It may be nobody bothered to tell CubeIDE this :-)<br>
</div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size: 11pt; color: rgb(0, 0, 0);" face="Calibri, sans-serif"><b>From:</b> Synth-diy <synth-diy-bounces@synth-diy.org> on behalf of rburnett@richieburnett.co.uk <rburnett@richieburnett.co.uk><br>
<b>Sent:</b> 15 July 2023 21:36<br>
<b>To:</b> Synth Diy <synth-diy@synth-diy.org><br>
<b>Subject:</b> [sdiy] STM32G4 SAI problems</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Anyone using STM32G4 with STM32CubeIDE and managed to get the SAI codec
<br>
interface working?<br>
<br>
I've been banging my head against a brick wall here for the past two <br>
days trying to configure the SAI peripheral of a Nucleo-G474RE using the <br>
CubeIDE graphical config tool (MX?), and still no signs of life on the <br>
relevant pins! It asks me what "Audio Frequency" I want from a drop <br>
down menu of the usual suspects (32k, 44.1k, 48k, 96k, etc.) but the <br>
"Real Audio Frequency" and "Error" both stay stubbornly stuck at zero <br>
and greyed out. The clock source shows as "SAI PLL Clock" but is greyed <br>
out (and can't be changed,) and I've tried all possible options for the <br>
SAI clock MUX in the actual clock config tool anyway, including an <br>
external I2S clock input. Still no luck.<br>
<br>
Why does this have to be so difficult!? And why do chip vendors always <br>
provide working examples for every peripheral except SAI / I2S ! (>.<)<br>
<br>
I have managed to get a LED blinking, and send "Hello World!" to a <br>
terminal via UART though, so not entirely fruitless.<br>
<br>
-Richie,<br>
_______________________________________________<br>
Synth-diy mailing list<br>
Synth-diy@synth-diy.org<br>
<a href="http://synth-diy.org/mailman/listinfo/synth-diy" data-auth="NotApplicable">http://synth-diy.org/mailman/listinfo/synth-diy</a><br>
Selling or trading? Use marketplace@synth-diy.org<br>
</div>
</span></font></div>
</body>
</html>