<?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>S12 / MagniV MicrocontrollersのトピックS12X system reboots twice</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-system-reboots-twice/m-p/137350#M2541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the following macro 'REBOOT()' to restart an S12X system which has a permanently running XGATE thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define STOP_XGATE() {XGMCTL=0x2020; while(XGMCTL_XGDBG==0); XGCHID=0;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define REBOOT() {STOP_XGATE(); __asm sei; COPCTL = 0x41; ARMCOP = 0x01; for(;&lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;&lt;SPAN&gt;;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The COP vector points to the startup code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VECTOR ADDRESS 0xfffa _Startup&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most of the time it works, but sometimes the system restarts again (after one or two seconds). Could this be a problem with the macro above?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pittbull&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2006 04:05:06 GMT</pubDate>
    <dc:creator>pittbull</dc:creator>
    <dc:date>2006-05-30T04:05:06Z</dc:date>
    <item>
      <title>S12X system reboots twice</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-system-reboots-twice/m-p/137350#M2541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the following macro 'REBOOT()' to restart an S12X system which has a permanently running XGATE thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define STOP_XGATE() {XGMCTL=0x2020; while(XGMCTL_XGDBG==0); XGCHID=0;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define REBOOT() {STOP_XGATE(); __asm sei; COPCTL = 0x41; ARMCOP = 0x01; for(;&lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;&lt;SPAN&gt;;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The COP vector points to the startup code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VECTOR ADDRESS 0xfffa _Startup&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most of the time it works, but sometimes the system restarts again (after one or two seconds). Could this be a problem with the macro above?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pittbull&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 04:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-system-reboots-twice/m-p/137350#M2541</guid>
      <dc:creator>pittbull</dc:creator>
      <dc:date>2006-05-30T04:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: S12X system reboots twice</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-system-reboots-twice/m-p/137351#M2542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi again,&lt;BR /&gt;The problem is gone. Those macros were definitely *not* guilty &lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 20:33:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-system-reboots-twice/m-p/137351#M2542</guid>
      <dc:creator>pittbull</dc:creator>
      <dc:date>2006-05-30T20:33:54Z</dc:date>
    </item>
  </channel>
</rss>

