How to keep HSI running in STOP mode?
Hello support team.
I'm using the STM32L011D4P, I configured the MCO output to repeat the HSI oscillator output divided by 16 and have a 1 MHz signal. With the help of an oscilloscope it is possible to identify a 1 MHz square wave.
In the datasheet, I discovered that it is possible to keep the HSI active even in STOP mode, activating the HSI16KERON bit in the RCC_CR register. I am using the LL_RCC_HSI_EnableInStopMode() function to activate HSI16KERON.
To enter low power mode, I am calling the function: HAL_PWR_EnterSTOPMode (PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI), but the 1 MHz signal from the MCO pin disappears.
In STOP mode is the HSI oscillator being turned off, or is only the MCO pin output being turned off?
I would like the 1 MHz signal to remain working during the low power phase (STOP).
Best Regards.