2023-04-26 06:46 AM
Hello, I've been trying to calibrate the system clock of a Nucleo-64 board (STM32l152) using approach proposed in AN3300 to compensate the temperature error.
The proposed solution works fine with HSI clock running at 32MHz. At room temperature the optimal trimming bits are set to the default value 16, and when the temperature changes and the clock starts to drift, the trimmming bits are updated to minize the error.
Unfortunately, similar approach doesn't work with MSI neither at 4194KHz nor 2097KHz. The optimal trimming bits at room temperature vary in range [0, 78], which makes the MSI clock drift even more than prior to the calibration. Is there a way to fix the problem?
Thank you in advance
2023-04-26 07:56 AM
What are the measured frequencies for various trim values?
JW
2023-07-04 12:03 AM