<?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 Re: LPC55S69: WWDT_Init hangs during TV register value check in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-WWDT-Init-hangs-during-TV-register-value-check/m-p/1613269#M51885</link>
    <description>&lt;P&gt;Thanks for pointing me towards the example. I was able to successfully initialize the WWDT. The steps that I was missing were enabling the FRO 1M clock and setting the WWDT clock divider:&lt;/P&gt;&lt;PRE&gt; /* Enable FRO 1M clock for WWDT module. */&lt;BR /&gt;SYSCON-&amp;gt;CLOCK_CTRL |= SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA_MASK;&lt;BR /&gt;/* Set clock divider for WWDT clock source. */&lt;BR /&gt;CLOCK_SetClkDiv(kCLOCK_DivWdtClk, 1U, true);&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Mar 2023 17:25:47 GMT</pubDate>
    <dc:creator>pbjones</dc:creator>
    <dc:date>2023-03-10T17:25:47Z</dc:date>
    <item>
      <title>LPC55S69: WWDT_Init hangs during TV register value check</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-WWDT-Init-hangs-during-TV-register-value-check/m-p/1612725#M51865</link>
      <description>&lt;P&gt;I'm attempting to enable the WWDT timer on the LPC55S69. Unfortunately, my program hangs during a call to WWDT_Init. Any help would be appreciated and let me know if I can provide more information.&lt;/P&gt;&lt;P&gt;Below is the code I'm using to start the watchdog:&lt;/P&gt;&lt;PRE&gt;wwdt_config_t watchdog_config;&lt;BR /&gt;WWDT_GetDefaultConfig(&amp;amp;watchdog_config);&lt;BR /&gt;watchdog_config.timeoutValue = 0xFF * 2900;&lt;BR /&gt;watchdog_config.warningValue = 0xFF * 100;&lt;BR /&gt;WWDT_Init(WWDT, &amp;amp;watchdog_config);&lt;/PRE&gt;&lt;P&gt;The application hangs in WWDT_Init, specifically in this code that waits for the wwdt timer start:&lt;/P&gt;&lt;PRE&gt;if (config-&amp;gt;enableWwdt)&lt;BR /&gt;{&lt;BR /&gt;    while (base-&amp;gt;TV == 0xFFUL)&lt;BR /&gt;    {&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've printed out the values of the WWDT registers in the debugger while the program is stuck:&lt;/P&gt;&lt;PRE&gt;(gdb) p /x *((WWDT_Type *)0x5000C000u)&lt;BR /&gt;$2 = {MOD = 0x1, TC = 0xb48ac, FEED = 0x0, TV = 0xff, RESERVED_0 = {0x0, 0x0, 0x0, 0x0},&lt;BR /&gt;WARNINT = 0x39c, WINDOW = 0xffffff}&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 00:45:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-WWDT-Init-hangs-during-TV-register-value-check/m-p/1612725#M51865</guid>
      <dc:creator>pbjones</dc:creator>
      <dc:date>2023-03-10T00:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: WWDT_Init hangs during TV register value check</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-WWDT-Init-hangs-during-TV-register-value-check/m-p/1613043#M51875</link>
      <description>&lt;P&gt;Hi&amp;nbsp;pbjones&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Under MCUxpresso SDK, there is demo wwdt_example. Please refer it for wwdt initialization and usage.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 08:58:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-WWDT-Init-hangs-during-TV-register-value-check/m-p/1613043#M51875</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2023-03-10T08:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: WWDT_Init hangs during TV register value check</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-WWDT-Init-hangs-during-TV-register-value-check/m-p/1613269#M51885</link>
      <description>&lt;P&gt;Thanks for pointing me towards the example. I was able to successfully initialize the WWDT. The steps that I was missing were enabling the FRO 1M clock and setting the WWDT clock divider:&lt;/P&gt;&lt;PRE&gt; /* Enable FRO 1M clock for WWDT module. */&lt;BR /&gt;SYSCON-&amp;gt;CLOCK_CTRL |= SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA_MASK;&lt;BR /&gt;/* Set clock divider for WWDT clock source. */&lt;BR /&gt;CLOCK_SetClkDiv(kCLOCK_DivWdtClk, 1U, true);&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Mar 2023 17:25:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-WWDT-Init-hangs-during-TV-register-value-check/m-p/1613269#M51885</guid>
      <dc:creator>pbjones</dc:creator>
      <dc:date>2023-03-10T17:25:47Z</dc:date>
    </item>
  </channel>
</rss>

