Skip to main content
Explorer II
May 10, 2023
Question

How to detect external reset reason through NRST in stm8?

  • May 10, 2023
  • 1 reply
  • 1326 views

Hello all. There are 9 sources of reset possible in STM8AF52xx according to the reference manual.

They are :

External reset through the NRST pin

• Power-on reset (POR)

• Brown-out Reset (BOR)

• Independent watchdog reset (IWDG)

• Window watchdog reset (WWDG)

• Software reset

• SWIM reset

• Illegal opcode reset

• EMC reset: generated if critical registers are corrupted or badly loaded

Except for external reset throguh NRST pin, all others are said to be internal reset.

There are flags available to check the reset reason for internal resets except POR and BOR in the RST_SR register.

How to distinguish between External reset, POR and BOR?

Could anyone share a strategy on how this is possible?

    This topic has been closed for replies.

    1 reply

    ST Employee
    May 12, 2023

    Hi Raja

    Your question has been routed to the online support team. A case has been created and you'll be contacted shortly.

    Kind Regards

    Joe WILLIAMS

    STMicro Support