Reply
Highlighted
Posts: 11
Registered: ‎06-13-2017
Accepted Solution

Name convention for enabling watchdog timer?

Hello

I have recently migrate the project from EmberZNet 5.9 to EmberZNet 5.10. I noticed that the macro for enabling watchdog timer in HAL Library changed from 

HAL_WDOG_ENABLE

to 

HAL_ENABLE_WATCHDOG

in halConfigInit():

 

#if (HAL_ENABLE_WATCHDOG)
  halInternalEnableWatchDog();
#endif

 

As a result, no matter what configuration is applied to HAL Configuration module in application configurator, the watchdog timer is always disabled. 

 

I wonder if it is an intended feature or a bug in the code?

 

 

 

Posts: 147
Registered: ‎11-06-2014

Re: Name convention for enabling watchdog timer?

[ Edited ]

Hi eamars,

 

Thanks for alerting us. This is a bug and we will fix it in the next release. Meanwhile please make this change in halConfigInit():

 

#if (HAL_WDOG_ENABLE)
  halInternalEnableWatchDog();
#endif

Best regards,

Yuping Xiao