<?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>8-bit Microcontrollers中的主题 Re: Question about SWI vector</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-SWI-vector/m-p/260682#M19981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be a couple of things.&amp;nbsp; The debug module can generate an SWI under certain circumstances. You may be seeing code run-away due to a variety of things.&amp;nbsp; Have you checked your PRM/vector file to make sure this vector is properly assigned?&amp;nbsp; You could add a routine that the SWI vector points to so you can catch the code when it triggers.&amp;nbsp; By adding this hook, maybe you can narrow down what it was doing before it executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2013 02:21:21 GMT</pubDate>
    <dc:creator>lydia_ziegler</dc:creator>
    <dc:date>2013-02-21T02:21:21Z</dc:date>
    <item>
      <title>Question about SWI vector</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-SWI-vector/m-p/260681#M19980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;Currently I am a embedded software engineer and working on coding with a Soc using MC9S08AC128.&lt;/P&gt;&lt;P&gt;During debugging the program I found that the program go into the SWI vector somehow but I don't know why.&lt;/P&gt;&lt;P&gt;Is somebody know on what condition the program will step into SWI vector?&lt;/P&gt;&lt;P&gt;I will greatly appreciate your answer and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 06:34:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-SWI-vector/m-p/260681#M19980</guid>
      <dc:creator>bobkang</dc:creator>
      <dc:date>2013-02-16T06:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SWI vector</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-SWI-vector/m-p/260682#M19981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be a couple of things.&amp;nbsp; The debug module can generate an SWI under certain circumstances. You may be seeing code run-away due to a variety of things.&amp;nbsp; Have you checked your PRM/vector file to make sure this vector is properly assigned?&amp;nbsp; You could add a routine that the SWI vector points to so you can catch the code when it triggers.&amp;nbsp; By adding this hook, maybe you can narrow down what it was doing before it executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 02:21:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-SWI-vector/m-p/260682#M19981</guid>
      <dc:creator>lydia_ziegler</dc:creator>
      <dc:date>2013-02-21T02:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SWI vector</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-SWI-vector/m-p/260683#M19982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;:smileyhappy:Thanks!Lydia. But could you explain more about "add a routine that the SWI vector points to"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 04:57:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-SWI-vector/m-p/260683#M19982</guid>
      <dc:creator>bobkang</dc:creator>
      <dc:date>2013-02-21T04:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SWI vector</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-SWI-vector/m-p/260684#M19983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure.&amp;nbsp; It depends on how you are building your project in CodeWarrior.&amp;nbsp; If you are using the PRM, the Vector table will be there (It would be "VECTOR 1").&amp;nbsp; If you are using Processor Expert, the Vector table will be in the MCUinit.c file (called "isrVswi" by default).&amp;nbsp; Just use the vector table to point to a routine when the SWI triggers.&amp;nbsp; I would think&amp;nbsp; something like this would be good to 'catch' the MCU so you can see what state it is in:&lt;/P&gt;&lt;P&gt;__interrupt void isrVswi(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;for (;;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Lydia&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 20:54:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Question-about-SWI-vector/m-p/260684#M19983</guid>
      <dc:creator>lydia_ziegler</dc:creator>
      <dc:date>2013-02-21T20:54:08Z</dc:date>
    </item>
  </channel>
</rss>

