Loading...
 
Skip to main content

System Workbench for STM32


STM32F4 HAL: Undefined Reference to HAL_WWDT_Start();

Hi Nipri,


I just played a bit with the wwdg this morning and after a few googling, I came at the same conclusion that the wwdg is started "automatically" when calling HAL_WWDG_Init function. Looking at the new code compared to the old one,

Previously HAL_WWDG_START was calling HAL_WWDGE_ENABLE(hwwdg) which is just a macro to set the WWDG_CR_WDGA bit in the watchdog handle

Now, it's done directly in the watchdog init function (HAL_WWDG_Init)

WRITE_REG(hwwdg->Instance->CR, (WWDG_CR_WDGA | hwwdg->Init.Counter));

So no need to call HAL_WWDG_START anymore.

About you're issue, could it be that you're refreshing the watchdog too quickly? Given that it's a windowed watchdog, if you're too quick or too slow compared to your configured timings, you will get a reset.

And just for advise, I think it's best to ask questions regarding hal issues directly in the st's forum (community.st.com). Moderators are directly in communication with hal developpers there so it helps them to solve bugs in some cases.

Regards,
Zoyhar.

 
Collapse/expand modules below