<?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: Loading code into S12X problems in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Loading-code-into-S12X-problems/m-p/124612#M84</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thank you for the replies.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I may try to somehow ground the MODA and MODB signals lines on power-up and see if anything changes.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2007 22:44:47 GMT</pubDate>
    <dc:creator>ThomasG</dc:creator>
    <dc:date>2007-02-28T22:44:47Z</dc:date>
    <item>
      <title>Loading code into S12X problems</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Loading-code-into-S12X-problems/m-p/124609#M81</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 working with a MC9S12XDT256 part with Codewarrior for HC12 Professional Edition and am having trouble after I load the code into flash.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The loading of the S19 file seems to go ok but once the program starts running, it stops and says an ILLEGAL_BP error occurred.&amp;nbsp; This seems to be occuring right away in the startup code (before I get to main).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I then looked at the hardware schematics and noticed MODB and MODA are not tied to ground or VDD.&amp;nbsp; The hardware designer left one of the pins open while using another pin as a GPIO pin to an external hardware chip.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My question is there anything else I should be making sure I setup as part of the startup process or is it not working because the MODB and MODA pins are not connected properly.&amp;nbsp; If this is the case, am I out of luck or is there a possible workaround?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thomas&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 05:44:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Loading-code-into-S12X-problems/m-p/124609#M81</guid>
      <dc:creator>ThomasG</dc:creator>
      <dc:date>2007-02-28T05:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Loading code into S12X problems</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Loading-code-into-S12X-problems/m-p/124610#M82</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;&amp;nbsp; ILLEGAL_BP just notifies you that the application reaches an invalid code position.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; First thing I would suspect here is that an un-initialized interrupt arises somewhere in your code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; But there might be other reason for that behavior.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; From here you have two solutions:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1- Try to debug from the application entry point to figure out what is happening before main&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To tell the debugger it should stop at the application entry point:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Start the debugger the usual way&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Select File -&amp;gt; "Configuration"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Switch to the "Load" tab.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Uncheck the box "Run after successful load"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Close the debugger and restart it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application should now stop directly at application entry point. You can step from here and&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; check what is happening.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2- You can submit a service request&amp;nbsp; for that.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To log the issue please go to following URL:&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.freescale.com/TechSupport" rel="nofollow" target="_blank"&gt;http://www.freescale.com/TechSupport&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and click on "Submit a service request"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Make sure to attached a reproducible project to the request. You can collect information&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; needed for the service request using the Pack and Go wizard.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Just select Help -&amp;gt; "Pack and Go" and follow the instruction on the screen.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:19:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Loading-code-into-S12X-problems/m-p/124610#M82</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-02-28T15:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loading code into S12X problems</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Loading-code-into-S12X-problems/m-p/124611#M83</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Thomas,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It is imperative that MODx pins are at appropriate level when a reset occurs.&lt;/DIV&gt;&lt;DIV&gt;There is no workaround as the&amp;nbsp;&lt;U&gt;hardware&lt;/U&gt; will decide which mode (External Bus, Single Chip, BDM...)&amp;nbsp;the MCU should run in when reset is happening. At that point no software is executed yet.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Sorry...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 22:25:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Loading-code-into-S12X-problems/m-p/124611#M83</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-02-28T22:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Loading code into S12X problems</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Loading-code-into-S12X-problems/m-p/124612#M84</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thank you for the replies.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I may try to somehow ground the MODA and MODB signals lines on power-up and see if anything changes.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 22:44:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Loading-code-into-S12X-problems/m-p/124612#M84</guid>
      <dc:creator>ThomasG</dc:creator>
      <dc:date>2007-02-28T22:44:47Z</dc:date>
    </item>
  </channel>
</rss>

