<?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: Runaway program won't let me reprogram chip in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190818#M6871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the problem to be hardware related.&amp;nbsp; Chip was getting reset by external watchdog as the debugger disturbed the timing.&amp;nbsp; disabled the external reset when a PLD detects a debugger is present.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Short answer, was hardware not software.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jan 2010 11:29:19 GMT</pubDate>
    <dc:creator>Emac98</dc:creator>
    <dc:date>2010-01-13T11:29:19Z</dc:date>
    <item>
      <title>Runaway program won't let me reprogram chip</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190811#M6864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The preliminaries:&lt;/P&gt;&lt;P&gt;I have 5.7.0 CW IDE for HCS12, processor =&amp;nbsp; MCS12A256BCPV, P&amp;amp;E Micro USB multilink interface - USB-PE5012998&lt;/P&gt;&lt;P&gt;The symptoms:&lt;/P&gt;&lt;P&gt;I just enabled the software watchdog and was attempting to reprogram the device when low and behold I am stuck in a loop and the programer / debuger is unable to stop the device long enough to get the new program loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a trick to get the processor to completely halt under these circumstances?&lt;/P&gt;&lt;P&gt;Is there an optimal USB interface communication setting that would help me out?&lt;/P&gt;&lt;P&gt;Is there a method to reprogram it so some other code can run?&lt;/P&gt;&lt;P&gt;How do you set the watchdog to start latter in the code instead of in the during generated auto initialization?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think thats enough questions for now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 05:41:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190811#M6864</guid>
      <dc:creator>Emac</dc:creator>
      <dc:date>2009-06-17T05:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Runaway program won't let me reprogram chip</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190812#M6865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;There should be no problems flashing new code, unless 1) taget chip is secured, or 2) "At connection, the target is running (hot plugging)" option is on. See MultilinkCyclonePro-&amp;gt;Communication...-&amp;gt;Special setup tab. By default, out of reset COP is disabled. And with above mentioned option off, debugger resets your target into special mode, which means that after connection no single instruction of your code is executed.&amp;nbsp;Flash programming should be fine.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 13:41:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190812#M6865</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-06-17T13:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Runaway program won't let me reprogram chip</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190813#M6866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to get the system to stop by somehow writing to the chip options 0x100 onward but now the system is definitely "secured"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everytime I "unsecure" it with the PEMICRO interface it says "unsecured successfully" but when I go to program I get ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; EEPROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400 -&amp;nbsp;&amp;nbsp; FFF&amp;nbsp;&amp;nbsp; Blank - Unselected&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; FLASH_4000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4000 -&amp;nbsp; 7FFF&amp;nbsp;&amp;nbsp; Blank - Unselected&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 2&amp;nbsp; FLASH_C000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C000 -&amp;nbsp; FFFF&amp;nbsp;&amp;nbsp; Programmed - Unselected&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 3&amp;nbsp; ALL_PPAGES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 308000 -3FBFFF&amp;nbsp;&amp;nbsp; Programmed - Unselected&lt;/P&gt;&lt;P&gt;FP: The UNPROTECT command is not available for the EEPROM flash module =&amp;gt; Skipped.&lt;/P&gt;&lt;P&gt;FP: The UNPROTECT command is not available for the FLASH_4000 flash module =&amp;gt; Skipped.&lt;/P&gt;&lt;P&gt;FP: The UNPROTECT command is not available for the FLASH_C000 flash module =&amp;gt; Skipped.&lt;/P&gt;&lt;P&gt;FP: The UNPROTECT command is not available for the ALL_PPAGES flash module =&amp;gt; Skipped.&lt;/P&gt;&lt;P&gt;FP: The UNPROTECT command is not available for the FLAT8000_P30 flash module =&amp;gt; Skipped.&lt;/P&gt;&lt;P&gt;FP: FLASH_C000 flash module is bad or protected.&lt;/P&gt;&lt;P&gt;FP: ALL_PPAGES flash module is bad or protected.&lt;/P&gt;&lt;P&gt;FP: FLASH_C000 flash module is bad or protected.&lt;/P&gt;&lt;P&gt;FP: FLASH_C000 flash module is bad or protected.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current settings are : Operating mode = special single chip&lt;BR /&gt;target operation mode = special single chip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think MODA and MODB pins are set to low&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried PEMICRO unsecure_12 command line software but it reports :First I was getting:&lt;BR /&gt;Interface Cable Detected&lt;BR /&gt;Searching for Interface Speed&lt;BR /&gt;ERROR - Communicating with target.&lt;BR /&gt;Appropriate interface speed not found.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then I got:&lt;/P&gt;&lt;P&gt;Interface Speed Determined&lt;BR /&gt;Initial Flash Security Register, FSEC = $FE&lt;BR /&gt;WHAT? - Device is Already Unsecured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am at a loss and really regret initiating the software watchdog - I have had no peace since that point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 05:46:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190813#M6866</guid>
      <dc:creator>Emac</dc:creator>
      <dc:date>2009-06-24T05:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Runaway program won't let me reprogram chip</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190814#M6867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Didn't you try to create new project using new project wizard? If it won't&amp;nbsp;work, then probably there's something wrong with your hardware. If it will&amp;nbsp;work, then there's something wrong with project settings, FLASH AEFSKIPERASING command in some *.cmd files, or something. I believe COP reset can't make chip not programmable.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 20:46:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190814#M6867</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-06-24T20:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Runaway program won't let me reprogram chip</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190815#M6868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I tried a blank load on the chip with the same results.&amp;nbsp; I also programmed some other boards and they work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to unsecure / blank erase the whole chip so I can get my new program on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 02:26:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190815#M6868</guid>
      <dc:creator>Emac</dc:creator>
      <dc:date>2009-08-07T02:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Runaway program won't let me reprogram chip</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190816#M6869</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;I assume&amp;nbsp;you are using a&amp;nbsp;multilink cable for debugging. Am I right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend you to check P&amp;amp;E Web site.&lt;/P&gt;&lt;P&gt;As far as I remember they have a utility available to unsecure HC12 chips.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 14:17:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190816#M6869</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-08-08T14:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Runaway program won't let me reprogram chip</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190817#M6870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks CrasyCat,&lt;/P&gt;&lt;P&gt;I have tried their program (unsecure12) and it said that it is unsecured but it still fails to program the two higher level memory blocks.&amp;nbsp; Most likely because they are still accidentally "secured" with some randomn key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have posted a service request with P&amp;amp;E and we went as far as we could with it&amp;nbsp;without getting anywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 23:56:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190817#M6870</guid>
      <dc:creator>Emac</dc:creator>
      <dc:date>2009-08-10T23:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Runaway program won't let me reprogram chip</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190818#M6871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the problem to be hardware related.&amp;nbsp; Chip was getting reset by external watchdog as the debugger disturbed the timing.&amp;nbsp; disabled the external reset when a PLD detects a debugger is present.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Short answer, was hardware not software.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 11:29:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Runaway-program-won-t-let-me-reprogram-chip/m-p/190818#M6871</guid>
      <dc:creator>Emac98</dc:creator>
      <dc:date>2010-01-13T11:29:19Z</dc:date>
    </item>
  </channel>
</rss>

