Skip to main content
JKott
Visitor II
August 10, 2018
Question

Why can't I get an Early Warning Interrupt from the WWDG?

  • August 10, 2018
  • 1 reply
  • 633 views

I am trying to use the WWDG EWI on the STM32F051. I can force the WWDG reset, but never seem to get the Early Warning Interrupt. I am setting EWIMode to WWDG_EWI_ENABLE when calling HAL_WWDG_Init(). I am trying to verify the interrupt by stopping the calls to HAL_WWDG_Refresh(). I see that the WWDG reset has happened but have no evidence of the EWI.

I have a HAL_WWDG_EarlyWakeupCallback() function in my code. I enable the IRQ and set the priority.

So what am I missing?

    This topic has been closed for replies.

    1 reply

    waclawek.jan
    Super User
    August 10, 2018

    Compiling as C++ and ISR name gets mangled?

    Check if the ISR has the same name as in the vector table (in startup file), and in the disassembled output check if the ISR's address was properly inserted into the vector table.

    JW