<?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: MPC5748G watchdog reset problem in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-watchdog-reset-problem/m-p/1449818#M21049</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Looks like you are new to embedded programming.&lt;/P&gt;
&lt;P&gt;The SWT is on this device enabled by default ( when it comes from factory) and the default SWT timeout is 20ms.&lt;/P&gt;
&lt;P&gt;Your SW is handling SWT configuration.&lt;/P&gt;
&lt;P&gt;It looks like your startup is disabling SWT to prevent reset after 20ms. This is usually sooner then your code is able to reach main where users service watchdog.&lt;/P&gt;
&lt;P&gt;That is OK.&lt;/P&gt;
&lt;P&gt;In you application you have to enable SWT, I expect you are doing it here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_0-1651051511645.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178157iB1A627E10C6A23A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="petervlna_0-1651051511645.png" alt="petervlna_0-1651051511645.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That is OK, but have in mind debuggers by default disable SWTs. So either configure your debug tool to enable SWT, or run tests without debugger. (you should see periodic resests).&lt;/P&gt;
&lt;P&gt;Last thing you have to care about is reset escalation counter. I hope you are handling this in your code, otherwise you will run into reset escalation when only Power on Reset can recover the device.&lt;/P&gt;
&lt;P&gt;For more details refer to reference manual SWT chapter 52.5 Functional description.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 09:27:58 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2022-04-27T09:27:58Z</dc:date>
    <item>
      <title>MPC5748G watchdog reset problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-watchdog-reset-problem/m-p/1448876#M21032</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Hi, everyone&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;my watchdog reset problem. I'm using boot loader. Why can my watchdog reset only a few times and then can't reset again.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;Sometimes the program jumps to startup.S "bss_Init_loop:"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ada_Lovelace_1-1650941514229.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177947iD254F6BAEABC8735/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ada_Lovelace_1-1650941514229.png" alt="Ada_Lovelace_1-1650941514229.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;The program will run and fly. This is my code. Can you give me some guidance?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;This is my system clock configuration&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ada_Lovelace_0-1650942575491.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177954i243454999B7F71B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ada_Lovelace_0-1650942575491.png" alt="Ada_Lovelace_0-1650942575491.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;This is my watchdog initialization configuration：&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ada_Lovelace_1-1650942608719.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177955i53E911B0B281D6F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ada_Lovelace_1-1650942608719.png" alt="Ada_Lovelace_1-1650942608719.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;This is my dog feeding program：&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ada_Lovelace_2-1650941701268.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177948i99191CBADED2A844/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ada_Lovelace_2-1650941701268.png" alt="Ada_Lovelace_2-1650941701268.png" /&gt;&lt;/span&gt;&lt;P class=""&gt;&lt;SPAN&gt;Is there a problem with my timeout? How much timeout setting is appropriate?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Apr 2022 03:10:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-watchdog-reset-problem/m-p/1448876#M21032</guid>
      <dc:creator>Ada_Lovelace</dc:creator>
      <dc:date>2022-04-26T03:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G watchdog reset problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-watchdog-reset-problem/m-p/1449480#M21042</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you for your reply. I tried to update the last three lines in 《turn off swts》. Running my program will still jump to 《sram_loop:》, is there any other solution?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ada_Lovelace_1-1651022618898.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178073i7E095E13E7029769/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ada_Lovelace_1-1651022618898.png" alt="Ada_Lovelace_1-1651022618898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ada_Lovelace_0-1651022590721.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178072i1EA433FD8918EFC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ada_Lovelace_0-1651022590721.png" alt="Ada_Lovelace_0-1651022590721.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 01:24:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-watchdog-reset-problem/m-p/1449480#M21042</guid>
      <dc:creator>Ada_Lovelace</dc:creator>
      <dc:date>2022-04-27T01:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G watchdog reset problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-watchdog-reset-problem/m-p/1449511#M21043</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Is this right?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ada_Lovelace_1-1651025816811.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178082iDD20C67216F63253/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ada_Lovelace_1-1651025816811.png" alt="Ada_Lovelace_1-1651025816811.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this operation cannot be debugged&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ada_Lovelace_0-1651025789639.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178081i7DD7E93FED1A8C13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ada_Lovelace_0-1651025789639.png" alt="Ada_Lovelace_0-1651025789639.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What should I do now? Please guide me,thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 02:18:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-watchdog-reset-problem/m-p/1449511#M21043</guid>
      <dc:creator>Ada_Lovelace</dc:creator>
      <dc:date>2022-04-27T02:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G watchdog reset problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-watchdog-reset-problem/m-p/1449818#M21049</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Looks like you are new to embedded programming.&lt;/P&gt;
&lt;P&gt;The SWT is on this device enabled by default ( when it comes from factory) and the default SWT timeout is 20ms.&lt;/P&gt;
&lt;P&gt;Your SW is handling SWT configuration.&lt;/P&gt;
&lt;P&gt;It looks like your startup is disabling SWT to prevent reset after 20ms. This is usually sooner then your code is able to reach main where users service watchdog.&lt;/P&gt;
&lt;P&gt;That is OK.&lt;/P&gt;
&lt;P&gt;In you application you have to enable SWT, I expect you are doing it here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_0-1651051511645.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178157iB1A627E10C6A23A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="petervlna_0-1651051511645.png" alt="petervlna_0-1651051511645.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That is OK, but have in mind debuggers by default disable SWTs. So either configure your debug tool to enable SWT, or run tests without debugger. (you should see periodic resests).&lt;/P&gt;
&lt;P&gt;Last thing you have to care about is reset escalation counter. I hope you are handling this in your code, otherwise you will run into reset escalation when only Power on Reset can recover the device.&lt;/P&gt;
&lt;P&gt;For more details refer to reference manual SWT chapter 52.5 Functional description.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 09:27:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-watchdog-reset-problem/m-p/1449818#M21049</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2022-04-27T09:27:58Z</dc:date>
    </item>
  </channel>
</rss>

