IWDT S7G2 + iar + SSP1.5.2

Hello,

I need your help.

I used thread monitor with WDT : working fine.

Now i wanted to move to IWDT : BIG ISSUE there is no reset, it seems that the timer doesn't work.

 

--------------------------------------------------------------------------------------

With WDT 

R_DBG->DBGSTOPCR_b.DSWDT = 0;
g_wdt0.p_api->open(g_wdt0.p_ctrl,g_wdt0.p_cfg);
while(1);

The mcu reset -> working

--------------------------------------------------------------------------------------

With IWDT 

R_DBG->DBGSTOPCR_b.DSIWDT = 0;
g_wdt1.p_api->open(g_wdt1.p_ctrl,g_wdt1.p_cfg);
while(1);

The mcu DOES NOT reset-> PLEASE HELP

--------------------------------------------------------------------------------------

I tried for a day without success

 

Thanks for your help

Parents Reply
  • Hi Jeremy,

    I think by "2) i replace iwdt by wdt --> it work", it means that the reboot is successful with wdt but not with iwdt.
    I have the same problem on SSP 1.4.0,
    I can use the wdt to generate an interrupt or a reboot without problem, but when I try to use the iwdt component, this just dont do anything.

    And as Ajith said, your project seems to be missing the iwdt object in the Threads tab so we had to add it in order to make the whole project compile.

    I hope you can help us :)

    Have a nice day,

    Clément.
Children