Skip to main content
rammit
Senior
September 4, 2020
Question

The reset source identification register (RCC->RSR) of the STM32H7 is zero after a watchdog reset.

  • September 4, 2020
  • 1 reply
  • 1500 views

After causing a watchdog reset RCC->RSR is showing as 0. I didn't think that was a valid value unless a jump was performed. I check RSR first thing so nothing should be clearing the bits by setting RMVF bit. Other types of reset seem to work. I haven't tried the IWDG yet.

int main(void)

{

 u32 RSR = RCC->RSR;

This topic has been closed for replies.

1 reply

rammit
rammitAuthor
Senior
September 9, 2020

In my JumptToApplication() fn, I had a call to HAL_RCC_DeInit() which clears the RSR at the very end.

Oops.

Strange thing is that a software reset would show up as non-zero which was throwing me off,