2025-06-14 8:38 AM
I'm using LL_RCC_DeInit within a boot loader so that the clocks are in the reset state when the application is launched. However, LL_RCC_DeInit also clears the reset cause flags as its last action:
/* Clear reset flags */
LL_RCC_ClearResetFlags();
The application needs to use the reset cause, so I will need to either:
Resetting the flags within LL_RCC_DeInit does not seem to be compatible with its stated behaviour ("Reset the RCC clock configuration to the default reset state"), as the flags could be seen as being part of that state.
For now, I will use one of the TAMP->BKP?R registers to capture and forward the state.