Skip to main content
hhosburg
Associate II
December 12, 2011
Question

STM32F107 IWDG does not make a reset

  • December 12, 2011
  • 2 replies
  • 635 views
Posted on December 12, 2011 at 16:08

Hello,

I'm using the ST libraries to initialize the IWDG  with following code:

 IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable);

  IWDG_SetPrescaler(IWDG_Prescaler_128);

  IWDG_SetReload(0x400);

  IWDG_ReloadCounter();

  IWDG_Enable();

after 3 seconds the watchdog should make an reset, but the reset fails (no watchdog timeout).

I have tested the code on an other board (different hardware) with the same cpu,  and on this hardware the IWDG reset is working

does anyone have any idea ?

 Thanks,

Harald

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    December 12, 2011
    Posted on December 12, 2011 at 16:35

    does anyone have any idea ?

     

    Without looking at the board, one might guess that the reset pin is clamped high (driven by an external push-pull driver), and thus can't reset.

    If LSI wasn't working, it would be a problem, but with IWDG enabled you shouldn't be able to turn off the LSI.

    It might be possible to alter the IWDG with some of the debugger options.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    hhosburg
    hhosburgAuthor
    Associate II
    December 12, 2011
    Posted on December 12, 2011 at 18:44

    Thanks,

    yes, there were placed the wrong resistors on  reset circuit. After changing to the correct values  the IWDG is working as expected.

    Harald