Is I2S PLL clock configuration missing? #10266
Unanswered
jgpeiro
asked this question in
STM32 / Pyboard
Replies: 1 comment 1 reply
-
Thank you for identifying the issue with I2S SCK frequency. The present MicroPython I2S implementation uses the default I2S PLL configuration and relies on the I2S HAL implementation to set the I2S SCK frequency (by calculating Can I ask you to submit a Github Issue? I'll make a PR to fix the frequency problem. Again, thanks for taking the time to report this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had some issues with I2S data reception cause the clock wasnt perfect (47.8KHz instead of 48KHz). Checking the machine_i2s.c I saw that there is no configuration of the PLLI2S, so I simply added my custom HAL_I2S_Msp function to configure it and now it works perfectly. (This function is called internally from the ST HAL. If not defined, a "weak" version is provided by ST)
Im wondering if someone knows how machine_i2s.c performs the clock configurationn and if this funcion that I added is really needed.
Im not sure this module was made by @miketeachman
Note: Im using a Blackpill board, based on STM32F411 that uses a 25MHz crystal.
Beta Was this translation helpful? Give feedback.
All reactions