<?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: Can't start Micro without CW Real Time Debugger connected in OSBDM and TBDML</title>
    <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Can-t-start-Micro-without-CW-Real-Time-Debugger-connected/m-p/137601#M222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Yes that was COP problem. Thanks.&lt;BR /&gt;The C code for __RESET_WATCHDOG(); is define in mc9s12c32.h as:&lt;BR /&gt;#define __RESET_WATCHDOG() {asm staa COPCTL;} /* Just write a byte to feed the dog */&lt;BR /&gt;which is not right as I see from data sheet.&lt;BR /&gt;So I changed it to my code (instead of __RESET_WATCHDOG()):&lt;BR /&gt;initialize watchdog in the main (the longest period, normal mode):&lt;BR /&gt;COPCTL = 0x07;&lt;BR /&gt;and restart watchdog code in the main forever loop:&lt;BR /&gt;ARMCOP = 0x0055;&lt;BR /&gt;ARMCOP = 0x00AA;&lt;BR /&gt;&lt;BR /&gt;But now I face another problem. I made a changeable delay to test the watchdog. It seems that it works at the right time. But after reset happens the device hangs - it looks like it does not start as it does after power off reset. ??? Does anybody knows why?&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Nov 2006 19:51:54 GMT</pubDate>
    <dc:creator>sauliuz</dc:creator>
    <dc:date>2006-11-23T19:51:54Z</dc:date>
    <item>
      <title>Can't start Micro without CW Real Time Debugger connected</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Can-t-start-Micro-without-CW-Real-Time-Debugger-connected/m-p/137599#M220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am writing program with C for MC9S12C32. I am using Turbo BDM Light interface (by Daniel Malik). I download code to the device with Code Warrior Real Time debugger (RTD). The problem is that I can not start the device when disconnected from RTD. When it is connected the code works (SCI, timers...). When I disconnect RTD (I mean the programming wires to RESET and BKGD pins) and reset the power - it hangs. I checked:&lt;BR /&gt;1. I get low pulse of ~8.4us on the reset pin after reset.&lt;BR /&gt;2. When device starts it should turn on the LED on a pin. And keep it on. After reset the LED blinks once. I get a pulse for about 16,4ms. (I use 15 MHz quartz). - It seem that it start and then goes down.&lt;BR /&gt;3. I tried to start a new project in Code Warrior with pure assembler, and wrote couple of lines to toggle the pins. After downloading the code to device and disconnecting the RTD it worked!!! I make a conclusion that when compiling C, CW also adds extra code for real time device debugging, which then halts the device when RTD not connected.&lt;BR /&gt;&lt;BR /&gt;Does anybody know were is the problem?&lt;BR /&gt;Any help will be very valuable - confused....&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 19:20:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Can-t-start-Micro-without-CW-Real-Time-Debugger-connected/m-p/137599#M220</guid>
      <dc:creator>sauliuz</dc:creator>
      <dc:date>2006-11-22T19:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start Micro without CW Real Time Debugger connected</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Can-t-start-Micro-without-CW-Real-Time-Debugger-connected/m-p/137600#M221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;the "usual" things for this type of failures:&lt;BR /&gt;- COP&lt;BR /&gt;- special modes (and different rules for write once registers)&lt;BR /&gt;- (reset) vector&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 01:08:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Can-t-start-Micro-without-CW-Real-Time-Debugger-connected/m-p/137600#M221</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-11-23T01:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start Micro without CW Real Time Debugger connected</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Can-t-start-Micro-without-CW-Real-Time-Debugger-connected/m-p/137601#M222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Yes that was COP problem. Thanks.&lt;BR /&gt;The C code for __RESET_WATCHDOG(); is define in mc9s12c32.h as:&lt;BR /&gt;#define __RESET_WATCHDOG() {asm staa COPCTL;} /* Just write a byte to feed the dog */&lt;BR /&gt;which is not right as I see from data sheet.&lt;BR /&gt;So I changed it to my code (instead of __RESET_WATCHDOG()):&lt;BR /&gt;initialize watchdog in the main (the longest period, normal mode):&lt;BR /&gt;COPCTL = 0x07;&lt;BR /&gt;and restart watchdog code in the main forever loop:&lt;BR /&gt;ARMCOP = 0x0055;&lt;BR /&gt;ARMCOP = 0x00AA;&lt;BR /&gt;&lt;BR /&gt;But now I face another problem. I made a changeable delay to test the watchdog. It seems that it works at the right time. But after reset happens the device hangs - it looks like it does not start as it does after power off reset. ??? Does anybody knows why?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 19:51:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Can-t-start-Micro-without-CW-Real-Time-Debugger-connected/m-p/137601#M222</guid>
      <dc:creator>sauliuz</dc:creator>
      <dc:date>2006-11-23T19:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start Micro without CW Real Time Debugger connected</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Can-t-start-Micro-without-CW-Real-Time-Debugger-connected/m-p/137602#M223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;If you have the debugger up and running it may place the CPU in stop mode and then the watchdog will freeze as well.&lt;BR /&gt;Do you get the same behaviour without any BDM connected to the device?&lt;BR /&gt;&lt;BR /&gt;Also check that the COP reset vector (FFFA-FFFB) is pointing at the default reset vector (FFFE-FFFF).&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 21:54:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Can-t-start-Micro-without-CW-Real-Time-Debugger-connected/m-p/137602#M223</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2006-11-23T21:54:41Z</dc:date>
    </item>
  </channel>
</rss>

