watchdog does not call the Handle_Watchdog_Expiry function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

watchdog does not call the Handle_Watchdog_Expiry function

954件の閲覧回数
KhaledG
Contributor I

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.

0 件の賞賛
返信
4 返答(返信)

926件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

If you use INT_SysTick instead of PIT, can it work?

0 件の賞賛
返信

894件の閲覧回数
KhaledG
Contributor I

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

0 件の賞賛
返信

887件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

882件の閲覧回数
KhaledG
Contributor I

Hello,
Thank you for your answer.
I will do that.
Regards

0 件の賞賛
返信