Brown Out Detection
I am using STM32F779NI for my project. My use case is I want to detect brown out reset after brownout occurs and system restarts.
I am checking brownout reset flag using
if (__HAL_RCC_GET_FLAG(RCC_FLAG_BORRST). But the problem is this flag is shared/common between Power On Reset and Brown Out Reset i.e POR/PDR or BOR .
Also for POR/PDR, there is an explicit RCC flag i.e RCC_FLAG_PORRST which is also set at every Power ON. So even though there is no brownout reset i.e normal POR/PDR, both the flags will set.
Please suggest me the possible ways to detect only brownout reset.
