<?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>8-bit MicrocontrollersのトピックWatchdog timeout debugging</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Watchdog-timeout-debugging/m-p/576063#M22112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy, I can't be the only one to want a way to find which routine is causing watchdog timeouts.&lt;/P&gt;&lt;P&gt;Current project (PA4) uses interrupts to manage status in both halves of a PWM waveform.&lt;/P&gt;&lt;P&gt;Each PWM edge triggers&amp;nbsp;interrupt code to check stuff before next interrupt.&lt;/P&gt;&lt;P&gt;Just scattering watchdog resets around is bad practice, and invites trouble with interrupts.&lt;/P&gt;&lt;P&gt;I got it working by changing watchdog parameters (not obvious process).&lt;/P&gt;&lt;P&gt;That's also bad practice, but guessing until I find the offending code is absurd.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about enabling watchdog interrupts, then have the interrupt code just enter stop.&lt;/P&gt;&lt;P&gt;Would that freeze the last PC on the stack? Or would it continue the reset past the stop?&lt;/P&gt;&lt;P&gt;Or maybe copy the PC to a spot that won't get cleared on reset?&lt;/P&gt;&lt;P&gt;I already use a stall (infinite loop) on program entry to trap resets.&lt;/P&gt;&lt;P&gt;I step the first couple instructions, hop over the stall and turn it loose.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm writing assembler under CW10 and also can't figure out how to trace assembler in the Eclipse intf.&lt;/P&gt;&lt;P&gt;I've written a Lot under CW6, CW10 is a big step backward for me, but I see why they did it.&lt;/P&gt;&lt;P&gt;Thanks in advance for guidance, collaboration welcome as well. &amp;nbsp; Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2016 17:03:06 GMT</pubDate>
    <dc:creator>CustomSarge</dc:creator>
    <dc:date>2016-08-30T17:03:06Z</dc:date>
    <item>
      <title>Watchdog timeout debugging</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Watchdog-timeout-debugging/m-p/576063#M22112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy, I can't be the only one to want a way to find which routine is causing watchdog timeouts.&lt;/P&gt;&lt;P&gt;Current project (PA4) uses interrupts to manage status in both halves of a PWM waveform.&lt;/P&gt;&lt;P&gt;Each PWM edge triggers&amp;nbsp;interrupt code to check stuff before next interrupt.&lt;/P&gt;&lt;P&gt;Just scattering watchdog resets around is bad practice, and invites trouble with interrupts.&lt;/P&gt;&lt;P&gt;I got it working by changing watchdog parameters (not obvious process).&lt;/P&gt;&lt;P&gt;That's also bad practice, but guessing until I find the offending code is absurd.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about enabling watchdog interrupts, then have the interrupt code just enter stop.&lt;/P&gt;&lt;P&gt;Would that freeze the last PC on the stack? Or would it continue the reset past the stop?&lt;/P&gt;&lt;P&gt;Or maybe copy the PC to a spot that won't get cleared on reset?&lt;/P&gt;&lt;P&gt;I already use a stall (infinite loop) on program entry to trap resets.&lt;/P&gt;&lt;P&gt;I step the first couple instructions, hop over the stall and turn it loose.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm writing assembler under CW10 and also can't figure out how to trace assembler in the Eclipse intf.&lt;/P&gt;&lt;P&gt;I've written a Lot under CW6, CW10 is a big step backward for me, but I see why they did it.&lt;/P&gt;&lt;P&gt;Thanks in advance for guidance, collaboration welcome as well. &amp;nbsp; Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 17:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Watchdog-timeout-debugging/m-p/576063#M22112</guid>
      <dc:creator>CustomSarge</dc:creator>
      <dc:date>2016-08-30T17:03:06Z</dc:date>
    </item>
  </channel>
</rss>

