cancel
Showing results for 
Search instead for 
Did you mean: 

How to calibrate the MSIS hardware autocalibration of the stm32u5

leeus
Associate

 

 

Hi. I am currently using the stm32u545ret6q mcu.

 

Looking at the RCC of reference documentation(RM0456) it says that it has MSIS hardware autocalibration, but the example code(AN5676) only shows how to adjust the trimming value.

 

Do you have any example code that shows how to do hardware auto-calibration?

 
 
1 REPLY 1
mƎALLEm
ST Employee

Hello,

To my knowledge there is no example for MSIS hardware autocalibration. But from reference manual states the following:

mALLEm_0-1749480986847.png

So you need to use the PLL-mode hardware auto-calibration feature, ensure the LSE oscillator is connected and operational and configure the RCC_CR register to enable PLL-mode (MSIPLLEN and MSIPLLSEL bits).

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.