<?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>i.MX ProcessorsのトピックWWDT1 problem on RT685</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/WWDT1-problem-on-RT685/m-p/1340869#M180164</link>
    <description>&lt;P&gt;I am trying to implement the WWDT1 on RT685.&amp;nbsp; I was successful implementing the WWDT0, and I initialized the WWDT1 the exact same way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const wwdt_config_t WWDT0_config = {&lt;BR /&gt;.enableWwdt = true,&lt;BR /&gt;.enableWatchdogReset = true,&lt;BR /&gt;.enableWatchdogProtect = false,&lt;BR /&gt;.enableLockOscillator = false,&lt;BR /&gt;.windowValue = WWDT0_WINDOW,&lt;BR /&gt;.timeoutValue = WWDT0_TIMEOUT,&lt;BR /&gt;.warningValue = WWDT0_WARNING,&lt;BR /&gt;.clockFreq_Hz = 1500&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static void WWDT0_init(void) {&lt;BR /&gt;/* WWDT0 initiation */&lt;BR /&gt;WWDT_Init(WWDT0_PERIPHERAL, &amp;amp;WWDT0_config);&lt;BR /&gt;/* Enable interrupt WDT0_IRQn request in the NVIC. */&lt;BR /&gt;EnableIRQ(WWDT0_IRQN);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* WWDT1 initialization code&lt;BR /&gt;&lt;BR /&gt;/* clang-format on */&lt;BR /&gt;const wwdt_config_t WWDT1_config = {&lt;BR /&gt;.enableWwdt = true,&lt;BR /&gt;.enableWatchdogReset = true,&lt;BR /&gt;.enableWatchdogProtect = false,&lt;BR /&gt;.enableLockOscillator = false,&lt;BR /&gt;.windowValue = WWDT1_WINDOW,&lt;BR /&gt;.timeoutValue = WWDT1_TIMEOUT,&lt;BR /&gt;.warningValue = WWDT1_WARNING,&lt;BR /&gt;.clockFreq_Hz = 1500&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static void WWDT1_init(void) {&lt;BR /&gt;/* WWDT1 initiation */&lt;BR /&gt;WWDT_Init(WWDT1_PERIPHERAL, &amp;amp;WWDT1_config);&lt;BR /&gt;/* Enable interrupt WDT1_IRQn request in the NVIC. */&lt;BR /&gt;EnableIRQ(WWDT1_IRQN);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* Initialization functions&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;void BOARD_InitPeripherals(void)&lt;BR /&gt;{&lt;BR /&gt;/* Initialize components */&lt;BR /&gt;//WWDT0_init();&lt;BR /&gt;WWDT1_init();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the Hifi4 I have this code:&lt;/P&gt;&lt;P&gt;//Watchdog Timer defines&lt;BR /&gt;#define WWDT1_FEED_ADDR (0x4002E008)&lt;BR /&gt;#define WWDT1_TV_ADDR (0x4002E00C)&lt;BR /&gt;#define WWDT1_FEED_VAL_1 (0xAAU)&lt;BR /&gt;#define WWDT1_FEED_VAL_2 (0x55U)&lt;BR /&gt;#define WWDT1_WINDOW (1048576UL)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the idle loop is this code:&lt;/P&gt;&lt;P&gt;if (g_bBlinkBlueLEDForBoardAlive)&lt;BR /&gt;{&lt;BR /&gt;nCount = (nCount + 1) % 10000;&lt;/P&gt;&lt;P&gt;if (nCount == 0)&lt;BR /&gt;{&lt;BR /&gt;if ( *((uint32_t *)WWDT1_TV_ADDR) &amp;lt; WWDT1_WINDOW )&lt;BR /&gt;{&lt;BR /&gt;*((uint32_t *)WWDT1_FEED_ADDR) = WWDT1_FEED_VAL_1;&lt;BR /&gt;*((uint32_t *)WWDT1_FEED_ADDR) = WWDT1_FEED_VAL_2;&lt;BR /&gt;LED_BLUE_TOGGLE();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the feed value is written to the feed register, the Hifi4 resets.&amp;nbsp; Why?&amp;nbsp; The WWDT1 registers are not accessed anywhere else in the code, so I do not understand why the Hifi4 core is resetting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 20:33:28 GMT</pubDate>
    <dc:creator>scott-kooy</dc:creator>
    <dc:date>2021-09-15T20:33:28Z</dc:date>
    <item>
      <title>WWDT1 problem on RT685</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WWDT1-problem-on-RT685/m-p/1340869#M180164</link>
      <description>&lt;P&gt;I am trying to implement the WWDT1 on RT685.&amp;nbsp; I was successful implementing the WWDT0, and I initialized the WWDT1 the exact same way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const wwdt_config_t WWDT0_config = {&lt;BR /&gt;.enableWwdt = true,&lt;BR /&gt;.enableWatchdogReset = true,&lt;BR /&gt;.enableWatchdogProtect = false,&lt;BR /&gt;.enableLockOscillator = false,&lt;BR /&gt;.windowValue = WWDT0_WINDOW,&lt;BR /&gt;.timeoutValue = WWDT0_TIMEOUT,&lt;BR /&gt;.warningValue = WWDT0_WARNING,&lt;BR /&gt;.clockFreq_Hz = 1500&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static void WWDT0_init(void) {&lt;BR /&gt;/* WWDT0 initiation */&lt;BR /&gt;WWDT_Init(WWDT0_PERIPHERAL, &amp;amp;WWDT0_config);&lt;BR /&gt;/* Enable interrupt WDT0_IRQn request in the NVIC. */&lt;BR /&gt;EnableIRQ(WWDT0_IRQN);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* WWDT1 initialization code&lt;BR /&gt;&lt;BR /&gt;/* clang-format on */&lt;BR /&gt;const wwdt_config_t WWDT1_config = {&lt;BR /&gt;.enableWwdt = true,&lt;BR /&gt;.enableWatchdogReset = true,&lt;BR /&gt;.enableWatchdogProtect = false,&lt;BR /&gt;.enableLockOscillator = false,&lt;BR /&gt;.windowValue = WWDT1_WINDOW,&lt;BR /&gt;.timeoutValue = WWDT1_TIMEOUT,&lt;BR /&gt;.warningValue = WWDT1_WARNING,&lt;BR /&gt;.clockFreq_Hz = 1500&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static void WWDT1_init(void) {&lt;BR /&gt;/* WWDT1 initiation */&lt;BR /&gt;WWDT_Init(WWDT1_PERIPHERAL, &amp;amp;WWDT1_config);&lt;BR /&gt;/* Enable interrupt WDT1_IRQn request in the NVIC. */&lt;BR /&gt;EnableIRQ(WWDT1_IRQN);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* Initialization functions&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;void BOARD_InitPeripherals(void)&lt;BR /&gt;{&lt;BR /&gt;/* Initialize components */&lt;BR /&gt;//WWDT0_init();&lt;BR /&gt;WWDT1_init();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the Hifi4 I have this code:&lt;/P&gt;&lt;P&gt;//Watchdog Timer defines&lt;BR /&gt;#define WWDT1_FEED_ADDR (0x4002E008)&lt;BR /&gt;#define WWDT1_TV_ADDR (0x4002E00C)&lt;BR /&gt;#define WWDT1_FEED_VAL_1 (0xAAU)&lt;BR /&gt;#define WWDT1_FEED_VAL_2 (0x55U)&lt;BR /&gt;#define WWDT1_WINDOW (1048576UL)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the idle loop is this code:&lt;/P&gt;&lt;P&gt;if (g_bBlinkBlueLEDForBoardAlive)&lt;BR /&gt;{&lt;BR /&gt;nCount = (nCount + 1) % 10000;&lt;/P&gt;&lt;P&gt;if (nCount == 0)&lt;BR /&gt;{&lt;BR /&gt;if ( *((uint32_t *)WWDT1_TV_ADDR) &amp;lt; WWDT1_WINDOW )&lt;BR /&gt;{&lt;BR /&gt;*((uint32_t *)WWDT1_FEED_ADDR) = WWDT1_FEED_VAL_1;&lt;BR /&gt;*((uint32_t *)WWDT1_FEED_ADDR) = WWDT1_FEED_VAL_2;&lt;BR /&gt;LED_BLUE_TOGGLE();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the feed value is written to the feed register, the Hifi4 resets.&amp;nbsp; Why?&amp;nbsp; The WWDT1 registers are not accessed anywhere else in the code, so I do not understand why the Hifi4 core is resetting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 20:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WWDT1-problem-on-RT685/m-p/1340869#M180164</guid>
      <dc:creator>scott-kooy</dc:creator>
      <dc:date>2021-09-15T20:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: WWDT1 problem on RT685</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WWDT1-problem-on-RT685/m-p/1343884#M180465</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I ported the CM33 WDT0 example on DSP. It works fine. Please see the attachment. It is base on the hello_world_usart_hifi4 example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 09:32:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WWDT1-problem-on-RT685/m-p/1343884#M180465</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-09-22T09:32:45Z</dc:date>
    </item>
  </channel>
</rss>

