<?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 Debug mode of WDOG in Vybrid Processors</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/Debug-mode-of-WDOG/m-p/279350#M1926</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;&lt;SPAN class="popupW"&gt;I &lt;SPAN class="popupW"&gt;use&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;Debug&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;mode&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;of&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;WDOG&lt;/SPAN&gt;, &lt;SPAN class="popupW"&gt;but&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;WDOG&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;timer&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;does&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;not&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;stop&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;even&lt;/SPAN&gt;&lt;SPAN class="popupW"&gt;if&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;I&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;set&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;WDBG&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set a register of WDOG in the following procedure.&lt;/P&gt;&lt;P&gt;①WDOG timer start：WDOG_WCR=0x3F34&lt;/P&gt;&lt;P&gt;②Suspend the watchdog timer(Debug mode)：WDOG_WCR=0x3F32　or 0x3F36&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ※WDOG_WCR regster read is WDOG_WCR[WDBG] = 0.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1)Is this setting procedure right?&lt;/P&gt;&lt;P&gt;Q2)Please ｇive me a sample program of the WDOG setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;soichi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2014 13:31:28 GMT</pubDate>
    <dc:creator>soichiyamamoto</dc:creator>
    <dc:date>2014-03-06T13:31:28Z</dc:date>
    <item>
      <title>Debug mode of WDOG</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Debug-mode-of-WDOG/m-p/279350#M1926</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;&lt;SPAN class="popupW"&gt;I &lt;SPAN class="popupW"&gt;use&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;Debug&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;mode&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;of&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;WDOG&lt;/SPAN&gt;, &lt;SPAN class="popupW"&gt;but&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;WDOG&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;timer&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;does&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;not&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;stop&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;even&lt;/SPAN&gt;&lt;SPAN class="popupW"&gt;if&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;I&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;set&lt;/SPAN&gt; &lt;SPAN class="popupW"&gt;WDBG&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set a register of WDOG in the following procedure.&lt;/P&gt;&lt;P&gt;①WDOG timer start：WDOG_WCR=0x3F34&lt;/P&gt;&lt;P&gt;②Suspend the watchdog timer(Debug mode)：WDOG_WCR=0x3F32　or 0x3F36&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ※WDOG_WCR regster read is WDOG_WCR[WDBG] = 0.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1)Is this setting procedure right?&lt;/P&gt;&lt;P&gt;Q2)Please ｇive me a sample program of the WDOG setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;soichi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 13:31:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Debug-mode-of-WDOG/m-p/279350#M1926</guid>
      <dc:creator>soichiyamamoto</dc:creator>
      <dc:date>2014-03-06T13:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Debug mode of WDOG</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Debug-mode-of-WDOG/m-p/279351#M1927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;I will try to check for a sample. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Meanwhile make sure you have the right address of the WDOG_BASE in the next file&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;\MVF50GS10MK50.h&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;Is wrongly pointing to 0x0, so you should remove that and add the correct base address as follows&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;#ifdef ARMCC_A5&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;#define WDOG_BASE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.8px; font-family: inherit;"&gt;0x4003E000&lt;/SPAN&gt;u)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;#else /* M4 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;#define WDOG_BASE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.8px; font-family: inherit;"&gt;0x4003F000&lt;/SPAN&gt;u)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 22:53:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Debug-mode-of-WDOG/m-p/279351#M1927</guid>
      <dc:creator>juangutierrez</dc:creator>
      <dc:date>2014-03-13T22:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Debug mode of WDOG</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Debug-mode-of-WDOG/m-p/279352#M1928</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;Thank you for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following setting.&lt;/P&gt;&lt;P&gt; "#define WDOG_BASE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x4003E000u)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, Please try to consider it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;soichi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 08:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Debug-mode-of-WDOG/m-p/279352#M1928</guid>
      <dc:creator>soichiyamamoto</dc:creator>
      <dc:date>2014-03-14T08:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Debug mode of WDOG</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Debug-mode-of-WDOG/m-p/279353#M1929</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;In Reference Manual there is a mismatch in section 26.6.1 Watchdog Control Register (WDOG_WCR) between the table and the graphic for WCR register&lt;/P&gt;&lt;P&gt;Dismiss the graphic. Table provides the correct information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, I think your code is fine for a timeout around 32s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However take into consideration that the power-down counter is not affected by debug mode entry/exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, check next code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void wdbg_test()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; reset_occurred = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; interrupt_handlers[128]= INTR_ROUTINE;&amp;nbsp; // reset_occurred will be set inside this routine&lt;/P&gt;&lt;P&gt;&amp;nbsp; SRC.SICR.B.WDOG_RST = 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Configure WDOGA5 reset as interrupt&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Starting WDOG debug mode test case&lt;/P&gt;&lt;P&gt;&amp;nbsp; WDOGA5.WCR.R = 0x2736;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //timeout 20s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("Start watchdog");&lt;/P&gt;&lt;P&gt;&amp;nbsp; WDOGA5.WCR.B.WDE = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("Wait here in debug mode for 20s... reset should not come");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //To continue: Manually disable the WDBG here&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(reset_occurred != 1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Wait here for interrupt&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 17:33:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Debug-mode-of-WDOG/m-p/279353#M1929</guid>
      <dc:creator>juangutierrez</dc:creator>
      <dc:date>2014-03-18T17:33:08Z</dc:date>
    </item>
  </channel>
</rss>

