2025-01-05 09:52 PM
Dear ST Community member,
I hope you all are doing well.
We are using STM32G473VET6 and IMP34DT05TR for Audio acquisition. The PDM Microphone needs a 2 MHz clock signal to operate properly. However, we are getting an error after configuring PLLQ at 2 MHz for SAI. Please let us know how to fix it. Thanks!
best regards,
Neeraj
Solved! Go to Solution.
2025-01-06 04:26 AM
This will not work with your settings:
If you solve the clock configuration problem in STM32CubeMX, this results in a PLLQ of 24MHz (PLLM=/2, PLLQ=x8/4), which you can easily divide to 2MHz with the MCKDIV contained in the SAI (RM0440, section 40.4.8). Your IOC contains a value of 11 for MCKDIV, which you only need to set to 12 at mentioned 24MHz.
You should also take the opportunity to upgrade to the new version of STM32CubeMX.
Regards
/Peter
2025-01-05 11:31 PM
Welcome @IOT_Dev, to the community!
Please post your IOC so that people can try to understand it.
Regards
/Peter
2025-01-06 01:00 AM
2025-01-06 04:26 AM
This will not work with your settings:
If you solve the clock configuration problem in STM32CubeMX, this results in a PLLQ of 24MHz (PLLM=/2, PLLQ=x8/4), which you can easily divide to 2MHz with the MCKDIV contained in the SAI (RM0440, section 40.4.8). Your IOC contains a value of 11 for MCKDIV, which you only need to set to 12 at mentioned 24MHz.
You should also take the opportunity to upgrade to the new version of STM32CubeMX.
Regards
/Peter
2025-01-06 06:08 AM
Hi Peter,
Thanks for your reply.
Is the parameter setting correct for 2 microphones in stereo mode?
regards,
Neeraj