<?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: what the difference of  running in debug mode in codewarrior and running in MCU independently in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/what-the-difference-of-running-in-debug-mode-in-codewarrior-and/m-p/145678#M7229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;First I assume that you are using a HC908 MCU.&lt;/DIV&gt;&lt;DIV&gt;If you are using a 9S08, this is not the answer.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When the HC908 runs in Monitor mode, the reset, break and SWI interrupt vectors are replaced by a vectors that lie inside the ROM of the MCU. So there is no way to replace them.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This means that if you are running in Monitor mode and setting a break address, the CPU will return to the Monitor when this address is executed.&lt;/DIV&gt;&lt;DIV&gt;If a reset or SWI is executed the same thing happens.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But I cannot say why the SPI shouldn't work.&lt;/DIV&gt;&lt;DIV&gt;If you could send the source code and tell me what kind of MCU you have got, I could take a look at it and see if I can come up with a better answer.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Ake&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2007 14:58:26 GMT</pubDate>
    <dc:creator>Ake</dc:creator>
    <dc:date>2007-09-18T14:58:26Z</dc:date>
    <item>
      <title>what the difference of  running in debug mode in codewarrior and running in MCU independently</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/what-the-difference-of-running-in-debug-mode-in-codewarrior-and/m-p/145677#M7228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I try to make a very simple programming with 8 bit MCU. just for sending SPI&amp;nbsp;command.&lt;/DIV&gt;&lt;DIV&gt;It works when the programming loaded in the MCU and running, (with reset button)&lt;/DIV&gt;&lt;DIV&gt;but doesn't work when in debug mode codewarrier environment when&amp;nbsp;click run/reset icon.(it is also loaded in MCU)&amp;nbsp;, when the time programming should finish, it still keeps running, no output signal, but looks like it entered some strange loop. very confused what 's the difference of these two running mode.&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Scorpio Ice on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-09-13&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:24 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 15:22:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/what-the-difference-of-running-in-debug-mode-in-codewarrior-and/m-p/145677#M7228</guid>
      <dc:creator>ScorpioIce</dc:creator>
      <dc:date>2007-09-13T15:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: what the difference of  running in debug mode in codewarrior and running in MCU independently</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/what-the-difference-of-running-in-debug-mode-in-codewarrior-and/m-p/145678#M7229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;First I assume that you are using a HC908 MCU.&lt;/DIV&gt;&lt;DIV&gt;If you are using a 9S08, this is not the answer.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When the HC908 runs in Monitor mode, the reset, break and SWI interrupt vectors are replaced by a vectors that lie inside the ROM of the MCU. So there is no way to replace them.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This means that if you are running in Monitor mode and setting a break address, the CPU will return to the Monitor when this address is executed.&lt;/DIV&gt;&lt;DIV&gt;If a reset or SWI is executed the same thing happens.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But I cannot say why the SPI shouldn't work.&lt;/DIV&gt;&lt;DIV&gt;If you could send the source code and tell me what kind of MCU you have got, I could take a look at it and see if I can come up with a better answer.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Ake&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 14:58:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/what-the-difference-of-running-in-debug-mode-in-codewarrior-and/m-p/145678#M7229</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2007-09-18T14:58:26Z</dc:date>
    </item>
  </channel>
</rss>

