Skip to main content
Graduate
February 17, 2023
Question

Watchdog restarting issue in STM32MP157.

  • February 17, 2023
  • 1 reply
  • 894 views

Hello

We are implementing WWDG watchdog in our custom board to cortex-M4 core in cubeIDE tool.

We initialise the following registers

-> enable the clock to WWDG

-> In control register enable the Watchdog enable bit and watchdog counter.

-> In configuration register enabled Early wakeup interrupt and timer base , window value.

while updating the watchdog counter before reaching window value, code is working fine.

While not updating watchdog counter , After some time we are getting Early wakeup interrupt read in status register. In this case code has not restarted. May be what is the issue ?

Is this followed sequence ok/Not ?.

Help me in this regards.

regards

srikanth

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    March 16, 2023

    Hi @Srikanth​ 

    sorry for late answer.

    Maybe the debugger freeze the WWDG in debug state (See DBGMCU_APB1FZ1/2 registers)

    Are you sure your code is not restarted?

    It could be restarted but crashed ?

    Cortex-M4 could be in hold-boot (RCC_MP_GCR.BOOT_MCU=0)

    Regards,

    In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'