cancel
Showing results for 
Search instead for 
Did you mean: 

Watchdog restarting issue in STM32MP157.

Srikanth1
Senior

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

1 REPLY 1
PatrickF
ST Employee

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'

In order 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.