<?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: Problems Programming MC9S08SE8 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-Programming-MC9S08SE8/m-p/161957#M9879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear FF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To program a HCS08 device it is necessary to force it into Background Debug Mode (BDM).&amp;nbsp; This allows the debugger full control over the HCS08 through the 2-wire BDM interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are two (common) ways of forcing a chip into BKGD mode:&lt;/P&gt;&lt;P&gt;1. Hold the BGKD/MS pin low while powering up the chip - a power on reset sequence.&lt;/P&gt;&lt;P&gt;2. The HCS08 chip may be 'forced' to do a reset through the&amp;nbsp; BDM interface.&amp;nbsp; The BKGD/MS pin may then be held low while this occurs to gain 'full' control of the chip through the BDM interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first method is 100% reliable but, as you discovered, it usually requires the user to manually cycle the power to the chip.&amp;nbsp; The debugger (BDM interface) will be holding the BKGD/MS pin low so that this results in a reset to Background debug mode.&amp;nbsp; Some BDM interfaces can supply power to the target and so can do this without needing human intervention!&amp;nbsp; This is good for unsupervised programming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second method should also be reliable.&amp;nbsp; Unfortunately this is not the case for _some_ chips in some cases.&amp;nbsp; It is possible for the chip to get into a situation where a illegal instruction reset, illegal address reset or COP timeout reset occurs before the BDM interface can trigger the _desired_ reset sequence. &amp;nbsp; This is a viscious circle since the chip will reset over &amp;amp; over again. &amp;nbsp; It is also possible to programatically disable the BKGD/MS pin function which disables the BDM interface.&amp;nbsp; The only solution in these cases is to then use method 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The situation described above will, with a few exceptions, only occur if the chip is executing illegal or poorly written code.&amp;nbsp; A common situation for this is when the chip is blank!&amp;nbsp; So - a blank chip may be difficult to reset as you have&amp;nbsp; seen.&amp;nbsp; After the chip has been programmed once it will usually not be a problem and the second method can be used by the debugger to reliably gain control of the chip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the above helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer the Debugging section of MC9S08SE8&amp;nbsp; manual for more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by pgo on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-12-17&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;01:17 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2009 22:11:37 GMT</pubDate>
    <dc:creator>pgo</dc:creator>
    <dc:date>2009-12-16T22:11:37Z</dc:date>
    <item>
      <title>Problems Programming MC9S08SE8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-Programming-MC9S08SE8/m-p/161956#M9878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I´m working with MC9S08SE8 and I find some problems programming it at first time. When I try to program at first time I get the next message in a dialog box:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"The target MCU is not responding. Please turn MCU power off (Under 0.1v), turn MCU power on, and then click OK. This will attemp to enter debug mode through a power on reset sequence (BKGD currently is driven low."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do that and I can program the uC. After the first programming I find no problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried as well program with "progHCS08sz" and I get the same error, but I can´t make a power on reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why I can´t programing at fisrt time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 21:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-Programming-MC9S08SE8/m-p/161956#M9878</guid>
      <dc:creator>FordFairlaneBen</dc:creator>
      <dc:date>2009-12-16T21:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problems Programming MC9S08SE8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-Programming-MC9S08SE8/m-p/161957#M9879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear FF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To program a HCS08 device it is necessary to force it into Background Debug Mode (BDM).&amp;nbsp; This allows the debugger full control over the HCS08 through the 2-wire BDM interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are two (common) ways of forcing a chip into BKGD mode:&lt;/P&gt;&lt;P&gt;1. Hold the BGKD/MS pin low while powering up the chip - a power on reset sequence.&lt;/P&gt;&lt;P&gt;2. The HCS08 chip may be 'forced' to do a reset through the&amp;nbsp; BDM interface.&amp;nbsp; The BKGD/MS pin may then be held low while this occurs to gain 'full' control of the chip through the BDM interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first method is 100% reliable but, as you discovered, it usually requires the user to manually cycle the power to the chip.&amp;nbsp; The debugger (BDM interface) will be holding the BKGD/MS pin low so that this results in a reset to Background debug mode.&amp;nbsp; Some BDM interfaces can supply power to the target and so can do this without needing human intervention!&amp;nbsp; This is good for unsupervised programming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second method should also be reliable.&amp;nbsp; Unfortunately this is not the case for _some_ chips in some cases.&amp;nbsp; It is possible for the chip to get into a situation where a illegal instruction reset, illegal address reset or COP timeout reset occurs before the BDM interface can trigger the _desired_ reset sequence. &amp;nbsp; This is a viscious circle since the chip will reset over &amp;amp; over again. &amp;nbsp; It is also possible to programatically disable the BKGD/MS pin function which disables the BDM interface.&amp;nbsp; The only solution in these cases is to then use method 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The situation described above will, with a few exceptions, only occur if the chip is executing illegal or poorly written code.&amp;nbsp; A common situation for this is when the chip is blank!&amp;nbsp; So - a blank chip may be difficult to reset as you have&amp;nbsp; seen.&amp;nbsp; After the chip has been programmed once it will usually not be a problem and the second method can be used by the debugger to reliably gain control of the chip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the above helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer the Debugging section of MC9S08SE8&amp;nbsp; manual for more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by pgo on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-12-17&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;01:17 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 22:11:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-Programming-MC9S08SE8/m-p/161957#M9879</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2009-12-16T22:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problems Programming MC9S08SE8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-Programming-MC9S08SE8/m-p/161958#M9880</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;The issue that you are observing happens with blank devices that do not have a dedicated RESET pin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the 9S08SE8 device does not have a dedicated RESET pin, the only way to force a blank device into a Background Debug Mode is through a power on reset. Otherwise, the device will simply sit in some infinite loop and keep on RESETing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During development, you can manually RESET the blank chip by switching off and on its power. However, during a production programming, you can easily avoid manual RESET by using a Cyclone Pro device by P&amp;amp;E:&amp;nbsp; &lt;A href="http://www.pemicro.com/products/product_viewDetails.cfm?product_id=1" target="test_blank"&gt;http://www.pemicro.com/products/product_viewDetails.cfm?product_id=1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cyclone Pro is a rugged production programming interface which has ability to provide power to your target via pin 6 of its BDM header. It will also automatically handle power cycling for you, thus making any manual input un-necessary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Zahar&lt;/P&gt;&lt;P&gt;P&amp;amp;E&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>Sat, 09 Jan 2010 05:49:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-Programming-MC9S08SE8/m-p/161958#M9880</guid>
      <dc:creator>Zahar</dc:creator>
      <dc:date>2010-01-09T05:49:13Z</dc:date>
    </item>
  </channel>
</rss>

