2023-10-31 02:05 AM
I am trying to use the flags within the RCC CSR register to determine if my system has started due to a power-on or brownout reset. However, BORRSTF is set for both types of reset, and the G4 does not have a separate POR reset cause flag.
I have tried using PINRSTF as well, but it looks as if that is also always set.
I think my only option is to set the brownout level to generate a reset, and to use the PVD (set to a higher level) to give me a pre-warning of failure - but that is not ideal, as I want to be able to report a brownout even when the system resumes normal operation.
2023-11-02 08:44 AM
Hello @CTapp.1,
Thank you for your question.
The power-on reset (POR) / power-down reset (PDR) are coupled with a brown-out reset (BOR) circuitry. They are integrated together.
Q1 : "BORRSTF is set for both types of reset"
Q2 : "I want to be able to report a brownout even when the system resumes normal operation."
Best Regards,
Pierre
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.