I'm using STM32u575ZI-Q Hardfault is triggering in debug mode when it hits a breakpoint. I'm facing this on implementing IWDG. May I know what might be the issue and resolution?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-08-26 6:58 AM
Here is my code for IWDG
LL_IWDG_EnableWriteAccess(IWDG);
// Set the prescaler value of 8 to the IWDG
LL_IWDG_SetPrescaler(IWDG, LL_IWDG_PRESCALER_8);
// Specify the IWDG down-counter reload value
LL_IWDG_SetReloadCounter(IWDG, 2000);
// Reloads IWDG counter with value defined in the reload register
LL_IWDG_ReloadCounter(IWDG);
// Start the Independent Watchdog
LL_IWDG_Enable(IWDG);
Labels:
- Labels:
-
DEBUG
-
IWDG-WWDG
-
STM32U5 series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-08-26 12:05 PM
Do you have your debugger configured to disable watchdog clocks while halted? If not, the IWDG will trigger while you are halted at a breakpoint.
