Hello,
I use the watchdog in a project but when it expired it does not call the Handle_Watchdog_Expiry function. I'm using a MIMXRT1024CAG4B, the OS is MQXv5. The function used to create the watchdog is _watchdog_create_component(BSP_TIMER_INTERRUPT_VECTOR, Handle_Watchdog_Expiry) and
#define BSP_TIMER_INTERRUPT_VECTOR INT_PIT with
INT_PIT = PSP_VECTOR_TO_EXCEPTION(PIT_IRQn), /**< PIT interrupt */
The watchdog just does nothing, am I doing it correctly?
Best regards.
If you use INT_SysTick instead of PIT, can it work?
actually I used INT_SysTick instead of PIT but it doesn't work.
Note that I only changed the directive just below to 1 :
#if 0
#error DO NOT ENABLE - systick functionality not working
// The systick does not get properly disabled, and will cause erratic behaviour if enabled
#define BSP_SYSTIMER_DEV systick_devif
#define BSP_SYSTIMER_ID 0
#define BSP_SYSTIMER_SRC_CLK CM_CLOCK_SOURCE_CORE
#define BSP_SYSTIMER_ISR_PRIOR 2
#define BSP_TIMER_INTERRUPT_VECTOR INT_SysTick
#else
#define BSP_SYSTIMER_DEV pit_devif
#define BSP_SYSTIMER_ID HWTIMER_PIT(1,0)
#define BSP_SYSTIMER_SRC_CLK CM_CLOCK_SOURCE_PERCLK
#define BSP_SYSTIMER_ISR_PRIOR 2
#define BSP_TIMER_INTERRUPT_VECTOR INT_PIT
#endif
Hi @KhaledG
That's weird.
With classic MQX 4.2, there is a watchdog demo, it can work on my side.
C:\Freescale\Freescale_MQX_4_2\mqx\examples\watchdog
Since MQX v5 is under commercial license, I don't have source code to test it. I would suggest you contact mqxsales@nxp.com for further help.
Regards
Daniel
Regards
Daniel
Hello,
Thank you for your answer.
I will do that.
Regards