<?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: Reset using watchdog in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/1341325#M3355</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem with MK10 custom board similar to the one described in this thread. The watchdog is initially disabled in the SystemInit function.&lt;/P&gt;&lt;P&gt;Later in the code (not in the main function) when the attempt to unlock the watchdog (i.e. &lt;STRONG&gt;WDOG-&amp;gt;UNLOCK = WDOG_UNLOCK_WDOGUNLOCK(0xC520)&lt;/STRONG&gt; ) cases&amp;nbsp; a reset. The reset reason registers are as follows:&lt;/P&gt;&lt;P&gt;SRS0 = 0x20&lt;/P&gt;&lt;P&gt;SRS1 = 0&lt;/P&gt;&lt;P&gt;This tells that the reset was caused by the watchdog timeout, however the watchdog has not yet been enabled, just the unlock operation was started. When the unlock attempt is moved as the first instruction in the main function this does not cause a reset.&lt;/P&gt;&lt;P&gt;What is wrong with the watchdog? Can this be related to clock configuration? The only thing which is done with MK10 compared between these two cases of unlocking the watchdog, i.e. in the main function and in another function is that in the latter case the clocks of MK10 are configured to use oscillator and PLL (similar to configuration posted here: &lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-MCG-Clock-Configuration/m-p/557440)" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-MCG-Clock-Configuration/m-p/557440)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;So what can be wrong with the watchdog unlocking?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2021 07:39:27 GMT</pubDate>
    <dc:creator>davithakobyan</dc:creator>
    <dc:date>2021-09-16T07:39:27Z</dc:date>
    <item>
      <title>Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960493#M1764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the past I've&amp;nbsp;reported a problem on using watchdog (see&amp;nbsp;&lt;A href="https://community.nxp.com/message/995544"&gt;WDOG unlock causes reset&lt;/A&gt;‌). The problem was bypassed, but now i'ts come back on a new project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I explain it again: I use a custom board based on K66, MCUXpresso 11.0.0, SDK 2.6 and FreeRTOS 10.2.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;call the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;WDOG_Init()&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function&amp;nbsp;after the os starts (at the beginning of the first task), the controller resets when it executes the&amp;nbsp;WDOG_Unlock() function.&lt;/P&gt;&lt;P&gt;If I call the WDOG_Init() function before the os starts,&amp;nbsp;this function is executed with no error, but the controller&amp;nbsp;&lt;/P&gt;&lt;P&gt;resets when it executes the &lt;SPAN&gt;WDOG_Refresh&lt;/SPAN&gt;() function, called by the first task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;/******************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;void main( void )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;xTaskCreate( ... ); //create first task&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;vTaskStartScheduler();&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;void FirstTask( void * )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;InitWDOG(); //init wdog &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; CONTROLLER RESETS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;/******************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;/******************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;void main( void )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;xTaskCreate( ... ); //create first task&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;InitWDOG(); //init wdog &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp;INSTRUCTION EXECUTED&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;vTaskStartScheduler();&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;void FirstTask( void * )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WDOG_Refresh&lt;/SPAN&gt;(); //refresh wdog &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; CONTROLLER RESETS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;/******************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;What can I check?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 12:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960493#M1764</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2019-08-22T12:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960494#M1765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/francescobianchini"&gt;francescobianchini&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I will suggest to check the example from the SDK frdmk66f_wdog, there mention how to do enable the WDOG example, I tried to merge the examples of WDOG and freertos_hello and it was possible to refresh the MCU if the time until the refresh of the WDOG is shorter than the WDOG timeout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that the scheduler took some time until the access of the first task, so try to set the timeout the enough time until the refresh is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 21:33:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960494#M1765</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-08-23T21:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960495#M1766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/nxf46116"&gt;nxf46116&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already checked the SDK wdog example and it works well, but&amp;nbsp;it doesn't use os.&lt;/P&gt;&lt;P&gt;I don't think it's a refresh timeout problem because the wdog timeout is 3 s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the strange thing is that the init &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;InitWDOG()&amp;nbsp;&lt;/SPAN&gt;function works if it's called by main before os starts, and it doesn't work if it's called by the first task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2019 07:20:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960495#M1766</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2019-08-26T07:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960496#M1767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/francescobianchini"&gt;francescobianchini&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the code attached.&amp;nbsp;I set the WDOG timer in the first task and&amp;nbsp;refresh&amp;nbsp;it in the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I will suggest to think about use the WDOG with FreeRTOS. For this you will need to have a good control of how much time all your task will need until the task that refresh the WDOG is called again. If in the system there's an anomaly and a task take more time, all the system will be reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2019 16:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960496#M1767</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-08-26T16:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960497#M1768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/nxf46116"&gt;nxf46116&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested your code and for me the behaviour is always the same: the first time I try to unlock or refresh the wdog after the os started, the cpu resets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made a change, I've moved the code before os starts.&lt;/P&gt;&lt;P&gt;If I unlock or refresh the wdog before os starts, I can continue to step the code until the task tries to refresh the wdog, then the cpu resets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested two different board and they behave the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2019 10:39:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960497#M1768</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2019-08-27T10:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960498#M1769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/francescobianchini"&gt;francescobianchini&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that your using the FreeRTOS V10.2.0, unfortunately the last version that we support and test is the 10.0.1.&amp;nbsp;I&amp;nbsp;use the 10.0.1 version for the code that I attached. Could you test this using the supported version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2019 21:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960498#M1769</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-08-27T21:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960499#M1770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/nxf46116"&gt;nxf46116&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested with FreeRTOS 10.0.1, but the behaviour is still the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One question: why do you say that FreeRTOS 10.2.0 is unsupported? It comes with SDK 2.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 07:59:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960499#M1770</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2019-08-28T07:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960500#M1771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Francesco,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right, the last version isn't the 10.0.1, is the 1.4.0. I found this in the &lt;EM&gt;MCUXpresso SDK Release Note Supporting LPCXpresso54608, LPCXpresso54618, and LPCXpresso54628&lt;/EM&gt;. I'm sorry for my confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About your problem, could you check the following registers an let me know the value after the first reset?&amp;nbsp;&lt;/P&gt;&lt;P&gt;-RCM_SSRS0&lt;/P&gt;&lt;P&gt;-RCM_SSRS1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 16:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960500#M1771</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-08-28T16:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960501#M1772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/nxf46116"&gt;nxf46116&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the first reset these are the register values:&lt;/P&gt;&lt;P&gt;- RCM_SRS0 -&amp;gt; 0x20&lt;/P&gt;&lt;P&gt;- RCM_SRS1 -&amp;gt; 0x00&lt;/P&gt;&lt;P&gt;- RCM_SSRS0 -&amp;gt; 0xE2&lt;/P&gt;&lt;P&gt;- RCM_SSRS1 -&amp;gt; 0x08&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 07:40:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960501#M1772</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2019-08-29T07:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960502#M1773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Francesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking this registers I found one strange things. In the SSRS1 the SMDM_AP bit is enabled.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82314i5FE6DDCB6578BE48/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This says that the debugger is causing a reset. If you desconect your debug this problem is still present?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, do you have one of our developments boards? I would like to know if you can replicate this issue with one of our boards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 23:35:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/960502#M1773</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-08-29T23:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reset using watchdog</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/1341325#M3355</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem with MK10 custom board similar to the one described in this thread. The watchdog is initially disabled in the SystemInit function.&lt;/P&gt;&lt;P&gt;Later in the code (not in the main function) when the attempt to unlock the watchdog (i.e. &lt;STRONG&gt;WDOG-&amp;gt;UNLOCK = WDOG_UNLOCK_WDOGUNLOCK(0xC520)&lt;/STRONG&gt; ) cases&amp;nbsp; a reset. The reset reason registers are as follows:&lt;/P&gt;&lt;P&gt;SRS0 = 0x20&lt;/P&gt;&lt;P&gt;SRS1 = 0&lt;/P&gt;&lt;P&gt;This tells that the reset was caused by the watchdog timeout, however the watchdog has not yet been enabled, just the unlock operation was started. When the unlock attempt is moved as the first instruction in the main function this does not cause a reset.&lt;/P&gt;&lt;P&gt;What is wrong with the watchdog? Can this be related to clock configuration? The only thing which is done with MK10 compared between these two cases of unlocking the watchdog, i.e. in the main function and in another function is that in the latter case the clocks of MK10 are configured to use oscillator and PLL (similar to configuration posted here: &lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-MCG-Clock-Configuration/m-p/557440)" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-MCG-Clock-Configuration/m-p/557440)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;So what can be wrong with the watchdog unlocking?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 07:39:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Reset-using-watchdog/m-p/1341325#M3355</guid>
      <dc:creator>davithakobyan</dc:creator>
      <dc:date>2021-09-16T07:39:27Z</dc:date>
    </item>
  </channel>
</rss>

