cancel
Showing results for 
Search instead for 
Did you mean: 

Clock Configuration Issue for Sound Acquisition with STM32G473VET6 and IMP34DT05TR

AiROT
Associate II

Hello,

I am currently working on a sound acquisition project using the STM32G473VET6 microcontroller and IMP34DT05TR microphone. I am encountering an issue while trying to configure the Serial Audio Interface (SAI) clock frequency. My target frequency is 2.048 MHz, but CubeMX is not allowing me to set this value. Currently, the clock frequency is set at 12 MHz.

I would appreciate any guidance on how to configure the SAI clock to 2.048 MHz or any potential workarounds to achieve this configuration.

Best,

AiROT

1 ACCEPTED SOLUTION

Accepted Solutions

Use the MCKDIV divider in SAI.

JW

 

View solution in original post

7 REPLIES 7

> My target frequency is 2.048 MHz, but CubeMX is not allowing me to set this value

Show.

JW

AiROT
Associate II

Here's the screenshots for the same!

Clock Frequency (1).jpegClock Frequency (2).jpeg

SAI uses integer divider. You can't divide 24MHz to 2.048MHz. 2MHz should be viable though.

JW

We are getting error "PLLQ output frequency is currently set to 2Mhz, must be >= 8Mhz and =<150Mhz." Please see the screenshot.

How do we modify this limit?

Error (2).jpegError (1).jpeg

Use the MCKDIV divider in SAI.

JW

 

Will try and update you!

AiROT
Associate II

@waclawek.jan thanks, it worked!