Yes cpufreq module is in the source code, and it still seems worked…
As adviced, I used cubeMX for clock and i could define OMV_XCLK_FREQUENCY to define the good acquisition period for the sensor.
Unfortunately, i am still a bit lost between all the clock and voltage parameters to optimize the consumption.
I dont know when the micropython parameters acts.
I join a image with the different parameters i found and if someone can explain me how it works ?
MicroPython’s PLL settings are not used and system_stm32.c is not used either. We use our own system file and PLL dividers, you can find out which files are used from the Makefile(s). Note you need to make sure the sensor frequency is 9MHz (or change the sensor’s PLL settings to match XCLK). I tried cpufreq.CPUFREQ_168MHZ it seems to work. It’s really hard to find settings that works with everything (sensor, uart, USB etc…) I’d use CubeMX to verify all the frequencies.