Skip to main content
DMega.1
Associate II
July 5, 2023
Question

how do we differentiate between PowerON Reset vs External Watchdog Reset in STM8AF5288

  • July 5, 2023
  • 2 replies
  • 2141 views

How can we differentiate between Power ON Reset vs MCU Reset initiated by an external watchdog device?

I mean is there a Memory Area in STM8AF5288 MCU that retains state after MCU Reset compared to Power ON Reset?

I cannot find the source of the MCU Reset as the External Watchdog output is connected to the MCU Reset pin.

 

    This topic has been closed for replies.

    2 replies

    AA1
    Senior III
    July 5, 2023

    You can't. Use the internal watchdog 

    If you want to find the source of the MCU reset, disconnect the external watchdog.

    DMega.1
    DMega.1Author
    Associate II
    July 5, 2023

    Could we use the noinit ram section variables to distinguish between external watchdog applied MCU Reset versus Power ON Reset? Is it possible with STM8AF5288 MCU ?