Watchdog not running in Discovery kit bare metal #516
Unanswered
jgonzalo
asked this question in
Bare metal embedded software
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Just trying to test watchdogs in my Polarfire Discovery Kit. What I do is:
MSS_WD_get_config(MSS_WDOG0_LO,&wd0lo_config);
wd0lo_config.time_val=0x87F01u;
wd0lo_config.timeout_val=0x1000u;
MSS_WD_configure(MSS_WDOG0_LO,&wd0lo_config);
MSS_WD_reload(MSS_WDOG0_LO);
MSS_WD_enable_mvrp_irq(MSS_WDOG0_LO);
PLIC_SetPriority(PLIC_WDOG0_TOUT_INT_OFFSET,2);
PLIC_EnableIRQ(PLIC_WDOG0_TOUT_INT_OFFSET);
But no interrupts are triggered. I checked MSS_WD_current_value(MSS_WDOG1_LO) and it is not moving at all. I have tried other watchdog sources and also frozen. What am I missing?
Thank you all
Jesus
Beta Was this translation helpful? Give feedback.
All reactions