<?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: HCS08GT60 Startup trouble in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143009#M6451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I wrote my app in C and am debugging with BDM using&amp;nbsp;a USB P&amp;amp;E Multilink.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have several outputs that turn LEDs on when it powers up.&amp;nbsp; That is how I know it is not starting.&amp;nbsp; I have looked through the Start08.c file and in P&amp;amp;E_ICD_linker.prm, but I do not see anything obviously wrong.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If I go into debug through CodeWarrior and then hit the start button, the code works as expected and the LEDs come on during my init code.&amp;nbsp; However, if I power the device up normally (not connected to the PC), it does not start.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2007 04:39:20 GMT</pubDate>
    <dc:creator>shiloh</dc:creator>
    <dc:date>2007-01-17T04:39:20Z</dc:date>
    <item>
      <title>HCS08GT60 Startup trouble</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143005#M6447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I finished some code today for a hcs08gt60.&amp;nbsp; The code works great when I start it from CodeWarrior.&amp;nbsp; However, the code does not start when I simply power up the device.&amp;nbsp; I have never ran into this problem before.&amp;nbsp; Where should I look in CW to track down this problem?&amp;nbsp; Thanks.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 03:24:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143005#M6447</guid>
      <dc:creator>shiloh</dc:creator>
      <dc:date>2007-01-17T03:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08GT60 Startup trouble</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143006#M6448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi shiloh&lt;BR /&gt;&lt;BR /&gt;Do you use an external clock source? If yes is the oscillator running?&lt;BR /&gt;&lt;BR /&gt;Saluti joerg&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 04:15:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143006#M6448</guid>
      <dc:creator>joerg</dc:creator>
      <dc:date>2007-01-17T04:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08GT60 Startup trouble</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143007#M6449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;On this project, I am just using the internal clock.&amp;nbsp; I don't think this is a hardware problem, because I checked previous project code on this hardware and it worked as expected.&amp;nbsp; My hunch is that I have something messed up in CodeWarrior, but I just don't know what yet.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 04:23:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143007#M6449</guid>
      <dc:creator>shiloh</dc:creator>
      <dc:date>2007-01-17T04:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08GT60 Startup trouble</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143008#M6450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi shiloh,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When you say 'from CW' do you mean simulation or debugging with BDM?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Set some spare outputs throughout your init code and see how many come on.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;C? ASM? PE?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Peg&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 04:29:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143008#M6450</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-01-17T04:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08GT60 Startup trouble</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143009#M6451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I wrote my app in C and am debugging with BDM using&amp;nbsp;a USB P&amp;amp;E Multilink.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have several outputs that turn LEDs on when it powers up.&amp;nbsp; That is how I know it is not starting.&amp;nbsp; I have looked through the Start08.c file and in P&amp;amp;E_ICD_linker.prm, but I do not see anything obviously wrong.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If I go into debug through CodeWarrior and then hit the start button, the code works as expected and the LEDs come on during my init code.&amp;nbsp; However, if I power the device up normally (not connected to the PC), it does not start.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 04:39:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143009#M6451</guid>
      <dc:creator>shiloh</dc:creator>
      <dc:date>2007-01-17T04:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08GT60 Startup trouble</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143010#M6452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The usual suspects when it works with a debugger attached, and not without:&lt;BR /&gt;- COP (really the most common thing)&lt;BR /&gt;- write once registers (with debugger/special mode, many can be written multiple times)&lt;BR /&gt;- reset vector or other vectors.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 06:00:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143010#M6452</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-01-17T06:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08GT60 Startup trouble</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143011#M6453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The first thing I do in my main function is configure some LEDs and then light them up.&amp;nbsp; This works when hooked to the debugger, but does not if I turn the device on without connecting it to the debugger.&amp;nbsp; Also, the lights do not even flicker for a split second.&amp;nbsp; They just stay off.&amp;nbsp; So as far as I can tell, the main function is not executing.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I debug COP, registers, and vectors when I do not have the unit connected to a debugger and the main function is not launching?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 07:55:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143011#M6453</guid>
      <dc:creator>shiloh</dc:creator>
      <dc:date>2007-01-17T07:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08GT60 Startup trouble</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143012#M6454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;When the debugger is connected and you press reset, does PC change to the initial function (usually _Startup). If not, check the vectors. If it does, the first thing I would try is to disable the COP at this location (_Startup), and see if you get further.&lt;BR /&gt;Of course don't forget to re-enable the COP.&lt;BR /&gt;&lt;BR /&gt;Can you run an wizard generated new application on your device?&lt;BR /&gt;(with the only addition of enabling your debug led)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 21:58:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143012#M6454</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-01-17T21:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08GT60 Startup trouble</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143013#M6455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I added SOPT=83; to my startup routine as the first command.&amp;nbsp; I started the device with the BDM and looked at the SOPT bits.&amp;nbsp; The COPE bit is 0.&amp;nbsp; So I assume the COP is disabled.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I hit reset in the debugger, it goes to the _Startup function.&amp;nbsp; It does not immediately execute it, though.&amp;nbsp; It just shows that it is in the _Startup in the "Source" Window in the upper left corner of the debugger.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I turn the device on outside of the debugger, it still does not turn on.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have flash other project of mine onto this device and it turns on without any problem.&amp;nbsp; I have not tried a ckean new project on it yet, because the other project code already confirmed that the device works.&amp;nbsp; I assume that is why you asked about trying a new application on it.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 00:52:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143013#M6455</guid>
      <dc:creator>shiloh</dc:creator>
      <dc:date>2007-01-18T00:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08GT60 Startup trouble</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143014#M6456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I just created a simple new application using the New Project Wizard in CodeWarrior.&amp;nbsp; Then I added these lines of code to main() to turn on an LED.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/* setup LEDs */&lt;BR /&gt;&amp;nbsp;PTCDD_PTCDD0=1; // set to output&lt;BR /&gt;&amp;nbsp;PTCDD_PTCDD1=1; // set to output&lt;BR /&gt;&amp;nbsp;PTCDD_PTCDD2=1; // set to output&lt;BR /&gt;&amp;nbsp;PTCDD_PTCDD3=1; // set to output&lt;BR /&gt;&amp;nbsp;PTCDD_PTCDD4=1; // set to output&lt;BR /&gt;&amp;nbsp;PTCDD_PTCDD5=1; // set to output&lt;BR /&gt;&amp;nbsp;PTCD_PTCD0=0; // set default value&lt;BR /&gt;&amp;nbsp;PTCD_PTCD1=1; // set default value&lt;BR /&gt;&amp;nbsp;PTCD_PTCD2=1; // set default value&lt;BR /&gt;&amp;nbsp;PTCD_PTCD3=1; // set default value&lt;BR /&gt;&amp;nbsp;PTCD_PTCD4=1; // set default value&lt;BR /&gt;&amp;nbsp;PTCD_PTCD5=1; // set default value&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I flashed the code onto the MCU using the debugger.&amp;nbsp; When I turn the device on with or without the debugger, it turns on as expected and lights up an LED.&amp;nbsp; So this confirms that the hardware is working properly.&amp;nbsp; The problem has to be somewhere in the software in&amp;nbsp;my other project.&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 01:01:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143014#M6456</guid>
      <dc:creator>shiloh</dc:creator>
      <dc:date>2007-01-18T01:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08GT60 Startup trouble - Solved</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143015#M6457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I managed to solve this problem by updating my compiler.&amp;nbsp; I was running v3.1 and it was not fully patched.&amp;nbsp; I switched to v5.1 and fully patched it.&amp;nbsp; Then I created a new project in v5.1 and moved my code over to the new project.&amp;nbsp; Works like a champ now.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2007 00:27:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08GT60-Startup-trouble/m-p/143015#M6457</guid>
      <dc:creator>shiloh</dc:creator>
      <dc:date>2007-01-20T00:27:31Z</dc:date>
    </item>
  </channel>
</rss>

