0
\$\begingroup\$

The STM32 seems to be a nightmare... Just such weird issues constantly. Anyways, I'm trying to output Master I2S (with BCLK, no MCLK) at 16 kHz, but for some reason am getting a 1.027 MHz clock causing audio artifacts. Input clock is PLL2 or PLL3, doesn't make a difference at 2.048 MHz or 20.48 MHz, doesn't make a difference...

Any ideas?

enter image description here enter image description here enter image description here enter image description here

\$\endgroup\$
3
  • \$\begingroup\$ Again, same or different STM32H7 and if same then which is it again? And the rest of the clock settings? \$\endgroup\$
    – Justme
    Commented Oct 30, 2023 at 20:08
  • \$\begingroup\$ Show us your PLL configuration. \$\endgroup\$
    – brhans
    Commented Oct 30, 2023 at 20:29
  • \$\begingroup\$ @Justme, one is an ESP32 producing the correct clock and the problem is with the STM32... brhans, edited to include the clocks \$\endgroup\$ Commented Oct 30, 2023 at 22:07

1 Answer 1

0
\$\begingroup\$

So this ended up being the need to switch to the HSE clock on the STlink that's part of the nucleo board. The HSE is more accurate and combined with an updated clock tree, did the trick.

\$\endgroup\$
2
  • \$\begingroup\$ But it already is on HSE based on the screenshot? \$\endgroup\$
    – Justme
    Commented Oct 31, 2023 at 5:32
  • \$\begingroup\$ Yes and no... It needs to be changed in the STLink firmware utility to HSE, 25/3 Mhz. \$\endgroup\$ Commented Oct 31, 2023 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.