2025-09-22 3:37 AM - last edited on 2025-09-25 1:35 AM by Andrew Neil
Hi,
After configured the GPIO pins via STM32CudeMX and generated the code, when I run the firmware, the "WWDG_IRQHhandler()" problem keep appearing from no way and hinder me from the rest of the development. Please see the attached screen shoot picture. Even after I commented out the customize codes the problem didn't go away. Same problem seen on the P-NUCLEO-DONGLE too. I configured the MCU to support "USB HID + Zigbee".
Any help?
Solved! Go to Solution.
2025-09-26 5:49 AM
You can view them in the SCR tab when debugging:
Take the VECTACTIVE number, subtract 16 and compare it to the IRQn_Type so see what the active interrupt is.
2025-09-22 5:32 AM
This is probably the default IRQ handler, which means you've enabled an interrupt that you haven't implemented in the code. Perhaps it's misspelled.
Look at VECTACTIVE bits in SCB to find out which interrupt it's actually in.
2025-09-23 2:28 AM
I see, OK I will check that. I will post here again if still facing the problem. Thanks.
2025-09-25 1:14 AM
Hi,
Based on your earlier reply, I can't find SCB register in the datasheet. What is the full name of SCB?
Can share with me the doc you have? By the way, when I reviewed the .ioc file via the CudeMX,
the WWDG wasn't select and used at all actually. Same code loaded into P-Nucleo-Dongle demo board also give me the same result.
2025-09-25 7:03 PM
Hi TDK,
I would like to know more on this "Look at VECTACTIVE bits in SCB to find out which interrupt it's actually in."
Can help to elaborate to me? Thanks.
2025-09-26 5:49 AM
You can view them in the SCR tab when debugging:
Take the VECTACTIVE number, subtract 16 and compare it to the IRQn_Type so see what the active interrupt is.
2025-09-28 9:06 PM
Hi TDK,
Thanks for the details guide. Below is the VECTACTIVE value from my board 0x3C (60).
After minus 16, I got 44 which is "IPCC_C1_RX_IRQn = 44" is it correct?
Then this "IPCC_C1_RX_IRQn" used by the function "void HW_IPCC_Init( void )".
From the CubeMX, when I select Zigbee, it requires IPCC enabled, so I'm lost now any suggestion what should I do next?
2025-09-29 1:20 AM
Hi,
I manage to handle the IRQ by adding the handler codes. Thanks for the help.
But however, after adding the code, it break my USB HID function which works all the time. Windows pop out "USB device not recognize". Any suggestion how to debug and fix this problem?
"
void IPCC_C1_TX_IRQHandler(void)
{
HW_IPCC_Tx_Handler();
return;
}
void IPCC_C1_RX_IRQHandler(void)
{
HW_IPCC_Rx_Handler();
return;
}
"
2025-10-06 2:13 PM
I'm not sure why that would break things. You can try assigning the USB as a higher priority interrupt (numerically lower value) to see if it helps.