<?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中的主题 Code runs in debugger but hanging when programmed</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Code-runs-in-debugger-but-hanging-when-programmed/m-p/207780#M17624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hardware: MS9SO8GT60 with 32.768 kHZ xtal&lt;/P&gt;&lt;P&gt;programmer: Cyclone Pro HC08 - HCS08&lt;/P&gt;&lt;P&gt;IDE: Freescale Codewarrior 5.9.0&lt;BR /&gt;&lt;BR /&gt;I realize there is any one of multiple issues that could be causing my code to lock up. But when running through the debugger, (Cyclone Pro) it works fine, key interrupts, and writing to LCD display, but when I program the board, and run the same code, stand alone, it works for a few minutes, and then appears to get stuck in a loop.&lt;BR /&gt;&lt;BR /&gt;I have a fast loop running, when its awake, to write to the display, and a slower one for asleep, and it'll 'hang' anywhere from accepting key inputs one minute and then not the next, or halfway through writing out to the screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realise this is hard to debug, but if someone has encountered this, and a list of checkpoints I could go through.&lt;/P&gt;&lt;P&gt;(bearing &amp;nbsp;in mind I dont &amp;nbsp;own an oscilloscope!)&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jun 2010 23:10:14 GMT</pubDate>
    <dc:creator>New_to_HC08</dc:creator>
    <dc:date>2010-06-17T23:10:14Z</dc:date>
    <item>
      <title>Code runs in debugger but hanging when programmed</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Code-runs-in-debugger-but-hanging-when-programmed/m-p/207780#M17624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hardware: MS9SO8GT60 with 32.768 kHZ xtal&lt;/P&gt;&lt;P&gt;programmer: Cyclone Pro HC08 - HCS08&lt;/P&gt;&lt;P&gt;IDE: Freescale Codewarrior 5.9.0&lt;BR /&gt;&lt;BR /&gt;I realize there is any one of multiple issues that could be causing my code to lock up. But when running through the debugger, (Cyclone Pro) it works fine, key interrupts, and writing to LCD display, but when I program the board, and run the same code, stand alone, it works for a few minutes, and then appears to get stuck in a loop.&lt;BR /&gt;&lt;BR /&gt;I have a fast loop running, when its awake, to write to the display, and a slower one for asleep, and it'll 'hang' anywhere from accepting key inputs one minute and then not the next, or halfway through writing out to the screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realise this is hard to debug, but if someone has encountered this, and a list of checkpoints I could go through.&lt;/P&gt;&lt;P&gt;(bearing &amp;nbsp;in mind I dont &amp;nbsp;own an oscilloscope!)&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 23:10:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Code-runs-in-debugger-but-hanging-when-programmed/m-p/207780#M17624</guid>
      <dc:creator>New_to_HC08</dc:creator>
      <dc:date>2010-06-17T23:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Code runs in debugger but hanging when programmed</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Code-runs-in-debugger-but-hanging-when-programmed/m-p/207781#M17625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try turning of memory display windows in the debugger. The reading of registers by the debugger can make faulty code appear to run correctly.&lt;/P&gt;&lt;P&gt;Also try to "hot connect" to the hung device.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 05:22:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Code-runs-in-debugger-but-hanging-when-programmed/m-p/207781#M17625</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2010-06-18T05:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code runs in debugger but hanging when programmed</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Code-runs-in-debugger-but-hanging-when-programmed/m-p/207782#M17626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Failing all other sensible suggestions, I'd be interested to see if the problem persists using the internal reference clock instead of the crystal as your clock source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jun 2010 19:43:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Code-runs-in-debugger-but-hanging-when-programmed/m-p/207782#M17626</guid>
      <dc:creator>ThaManJD</dc:creator>
      <dc:date>2010-06-19T19:43:02Z</dc:date>
    </item>
  </channel>
</rss>

