<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic K82: WDOG in Stop mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-WDOG-in-Stop-mode/m-p/817759#M49520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have configured WDOG in way that it require update in Stop mode as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WDOG_GetDefaultConfig(&amp;amp;config);&lt;BR /&gt; config.prescaler = kWDOG_ClockPrescalerDivide1;&lt;BR /&gt; config.clockSource = kWDOG_LpoClockSource; // 1ms&lt;BR /&gt; config.workMode.enableWait = true; // If update in Wait is required&lt;BR /&gt; config.workMode.enableStop = true; // If update in LLS3 is required&lt;BR /&gt; config.timeoutValue = 5000; // ms&lt;BR /&gt; config.enableWdog = true;&lt;BR /&gt; WDOG_Init(WDOG, &amp;amp;config);&lt;/P&gt;&lt;P&gt;/* Accessing register by bus clock. */&lt;BR /&gt; for (uint32_t i = 0; i &amp;lt; 256U; i++)&lt;BR /&gt; {&lt;BR /&gt; (void) WDOG-&amp;gt;RSTCNT;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It work fine when RTOS is running and stay under _WFI()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in LLS3 mode it looks like as disabled and reset is not happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should it cause reset in LLS3 mode if it not updated by&amp;nbsp;WDOG_Refresh(WDOG) API ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is right way for update WDOG timeout on fly&amp;nbsp; ? What should be enabled/disabled or WDOG_Init() with new parameters is OK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2018 10:33:48 GMT</pubDate>
    <dc:creator>EugeneHiihtaja</dc:creator>
    <dc:date>2018-11-29T10:33:48Z</dc:date>
    <item>
      <title>K82: WDOG in Stop mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-WDOG-in-Stop-mode/m-p/817759#M49520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have configured WDOG in way that it require update in Stop mode as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WDOG_GetDefaultConfig(&amp;amp;config);&lt;BR /&gt; config.prescaler = kWDOG_ClockPrescalerDivide1;&lt;BR /&gt; config.clockSource = kWDOG_LpoClockSource; // 1ms&lt;BR /&gt; config.workMode.enableWait = true; // If update in Wait is required&lt;BR /&gt; config.workMode.enableStop = true; // If update in LLS3 is required&lt;BR /&gt; config.timeoutValue = 5000; // ms&lt;BR /&gt; config.enableWdog = true;&lt;BR /&gt; WDOG_Init(WDOG, &amp;amp;config);&lt;/P&gt;&lt;P&gt;/* Accessing register by bus clock. */&lt;BR /&gt; for (uint32_t i = 0; i &amp;lt; 256U; i++)&lt;BR /&gt; {&lt;BR /&gt; (void) WDOG-&amp;gt;RSTCNT;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It work fine when RTOS is running and stay under _WFI()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in LLS3 mode it looks like as disabled and reset is not happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should it cause reset in LLS3 mode if it not updated by&amp;nbsp;WDOG_Refresh(WDOG) API ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is right way for update WDOG timeout on fly&amp;nbsp; ? What should be enabled/disabled or WDOG_Init() with new parameters is OK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2018 10:33:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-WDOG-in-Stop-mode/m-p/817759#M49520</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-11-29T10:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: K82: WDOG in Stop mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-WDOG-in-Stop-mode/m-p/817760#M49521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Eugene Hiihtaja&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WDOG is not enabled in LLSx power mode, in this mode watchdog is static, which mean that register are retained but the module is not enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The option in the API function is for STOP mode, which is different ofLLS and where the module is working (from low power clocks).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2018 23:07:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-WDOG-in-Stop-mode/m-p/817760#M49521</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-11-30T23:07:20Z</dc:date>
    </item>
  </channel>
</rss>

