Problem calibrating MSI clock using LSE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-26 6: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
- Labels:
-
RCC
-
STM32L1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-26 7:56 AM
What are the measured frequencies for various trim values?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-04 12:03 AM
I've measured the MSI frequency for the entire range of trimming bits. The results are not quite precise as the clock drifts. The table is attached
