<?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>Classic/Legacy CodeWarriorのトピックRe: Unexpected Program code Restart</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126701#M196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;If you're using one the projects generated by the CW project wizard, there should be a file named startxx.c or startxx.asm that performs all of the low-level processor initialization such as stack setup and high-level language run-time initialization. You might try placing a breakpoint in there and watching what happens. If you've written your own low-level initialization code, place a breakpoint in that.&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Aug 2006 20:56:09 GMT</pubDate>
    <dc:creator>J2MEJediMaster</dc:creator>
    <dc:date>2006-08-15T20:56:09Z</dc:date>
    <item>
      <title>Unexpected Program code Restart</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126700#M195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am experiencing&amp;nbsp;software reset&amp;nbsp;during code execution (both&amp;nbsp;while debugging or not). My target MCU is a MC56F8345 with&amp;nbsp;COP&amp;nbsp;not enabled, and no spurious HW&amp;nbsp;reset due to noise or other board problems.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I suspect stack overflow,&amp;nbsp;too much interrupts &amp;nbsp;or&amp;nbsp;memory corruption due to some coding mistakes but I don't get any warning message from CW7.3 when the problem occur&amp;nbsp;. Program execution simply restart..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Could you please&amp;nbsp;give some hints how&amp;nbsp;to trace&amp;nbsp;the exception causing the code reset from CW?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 22:19:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126700#M195</guid>
      <dc:creator>bepade1</dc:creator>
      <dc:date>2006-08-14T22:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Program code Restart</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126701#M196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;If you're using one the projects generated by the CW project wizard, there should be a file named startxx.c or startxx.asm that performs all of the low-level processor initialization such as stack setup and high-level language run-time initialization. You might try placing a breakpoint in there and watching what happens. If you've written your own low-level initialization code, place a breakpoint in that.&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 20:56:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126701#M196</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-08-15T20:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Program code Restart</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126702#M197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Unfortunately, I've&amp;nbsp; searched the whole project directory for a file name sta*.* but didn't found any match. The project has been created&amp;nbsp;&amp;nbsp;by means of&amp;nbsp;&amp;nbsp;Processor Expert Stationery and is &amp;gt; 10.000 C code lines...&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2006 00:18:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126702#M197</guid>
      <dc:creator>bepade1</dc:creator>
      <dc:date>2006-08-16T00:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Program code Restart</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126703#M198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I tend to not use Processor Expert for various reasons. Not that it's bad, but I like to set things up myself, where possible. If Processor Expert was used, look for a Cpu.c file. This file is generated by Processor Expert and contains the initialization code. The vector table for the reset vector (in vectors.c) should reference _EntryPoint, which is the initialization routine in this file. You may want to trace the program flow from there.&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2006 23:09:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126703#M198</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-08-16T23:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Program code Restart</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126704#M199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;The restart was caused by several interrupt&amp;nbsp;sources&amp;nbsp;which were enabled in Processor Expert&amp;nbsp; Beans (internal peripherials) but not used by the application code. Since our application is very&amp;nbsp;intensive interrupt driven due to realtime needs, those unexpected&amp;nbsp;interrupt calls&amp;nbsp;were causing&amp;nbsp;code restart.&amp;nbsp;So please becarefull&amp;nbsp;when several programmers are working on the same project and add beans...&lt;/P&gt;&lt;P&gt;However, I am still wondering how to setup in CW a trace log&amp;nbsp;on program flow occured before a breakpoint is reached. Do you&amp;nbsp;know a reference to a&amp;nbsp;white paper&amp;nbsp;or a manual?&lt;/P&gt;&lt;P&gt;Thanks for you help,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2006 23:52:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Unexpected-Program-code-Restart/m-p/126704#M199</guid>
      <dc:creator>bepade1</dc:creator>
      <dc:date>2006-08-16T23:52:16Z</dc:date>
    </item>
  </channel>
</rss>

