I have an STM32F051R8 on a custom board and use the HAL library, and much of the code is based on the generated code from CubeMX. The problem I see is that about 1 out of every 10 times when I go to STOP mode the HSI is not configured as the current ...