<?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: Using software interrupt with Coldfire V1 in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200871#M9208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you just want to force a reset on CF V1 (51QE and 51JM), what I do is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp; #0x00000000,d0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; movec&amp;nbsp;&amp;nbsp; d0,CPUCR&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trap&amp;nbsp;&amp;nbsp;&amp;nbsp; #0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;I also have an example of using the sw interrupt in the skeleton.zip archive at the bottom of this page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A href="http://www.cpustick.com/downloads.htm" rel="nofollow" target="_blank"&gt;http://www.cpustick.com/downloads.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see in sources/zigflea.c that zb_pre_isr() is invoked by hardware at level 7, which then uses a sw interrupt to invoke zb_isr() at level 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I used to use nested interrupts in my code, but have since stopped doing that (because HCS08 and HCS12 could not).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2009 18:00:43 GMT</pubDate>
    <dc:creator>RichTestardi</dc:creator>
    <dc:date>2009-07-20T18:00:43Z</dc:date>
    <item>
      <title>Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200869#M9206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an app note on how to use Software Interrupt with the Coldfire V1 core? I'm using QE32 and need to force reset in certain circumstances... With HCS08 that was pretty easy but with Coldfire V1 I'm having problems undestanding how to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An app note or an example will be greately appreciatted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindest Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 17:04:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200869#M9206</guid>
      <dc:creator>Lokutas</dc:creator>
      <dc:date>2009-07-20T17:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200870#M9207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibly, a few NetBurner application notes about V2 interrupts will be helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netburner.com/support/technical_documents.html" rel="nofollow" target="_blank"&gt;http://www.netburner.com/support/technical_documents.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then search for word "interrupt".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, that NetBurner implementation of uC/OS system library includes the dedicated function ForceReboot(). Try to find the similar function for your OS.&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>Mon, 20 Jul 2009 17:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200870#M9207</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-07-20T17:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200871#M9208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you just want to force a reset on CF V1 (51QE and 51JM), what I do is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp; #0x00000000,d0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; movec&amp;nbsp;&amp;nbsp; d0,CPUCR&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trap&amp;nbsp;&amp;nbsp;&amp;nbsp; #0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;I also have an example of using the sw interrupt in the skeleton.zip archive at the bottom of this page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A href="http://www.cpustick.com/downloads.htm" rel="nofollow" target="_blank"&gt;http://www.cpustick.com/downloads.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see in sources/zigflea.c that zb_pre_isr() is invoked by hardware at level 7, which then uses a sw interrupt to invoke zb_isr() at level 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I used to use nested interrupts in my code, but have since stopped doing that (because HCS08 and HCS12 could not).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 18:00:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200871#M9208</guid>
      <dc:creator>RichTestardi</dc:creator>
      <dc:date>2009-07-20T18:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200872#M9209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instruction &lt;STRONG&gt;moveq.l&amp;nbsp; #0x00,d0&lt;/STRONG&gt; is shorter, than the instruction &lt;STRONG&gt;move.l&amp;nbsp; #0x00000000,d0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 18:23:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200872#M9209</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-07-20T18:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200873#M9210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot guys...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like it should work if I can get passed the exception handler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me in sneeking this one past the goalie (the exception handler)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 15:49:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200873#M9210</guid>
      <dc:creator>Lokutas</dc:creator>
      <dc:date>2009-07-22T15:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200874#M9211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 16:27:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200874#M9211</guid>
      <dc:creator>HummingbirdElec</dc:creator>
      <dc:date>2010-10-14T16:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200875#M9212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also trying to force a RESET in software on the&amp;nbsp;MCF51JM128&amp;nbsp;- I tried the solution above, but I can't get it passed the exception handler.&amp;nbsp; Did you ever get it right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of a neat way to force a reset and get around the exception handler?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Norman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 16:31:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200875#M9212</guid>
      <dc:creator>HummingbirdElec</dc:creator>
      <dc:date>2010-10-14T16:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200876#M9213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once you have CPUCR cleared, an illegal instruction or an illegal address should cause a reset...&amp;nbsp; Maybe you can try accessing an illegal address (like 0xbbbbbbbb or 0xdddddddd) and see if you get your reset...&amp;nbsp; Can you confirm CPUCR is clear?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the RM:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;FONT face="TimesNewRomanPSMT"&gt;CPU accesses to those parts of the memory map marked as reserved in&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000C3" face="TimesNewRomanPSMT"&gt;&lt;FONT color="#0000C3" face="TimesNewRomanPSMT"&gt;&amp;gt; Figure 4-1&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT face="TimesNewRomanPSMT"&gt;result in an illegal&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; address reset if CPUCR[ARD] = 0 or an address error exception if CPUCR[ARD] = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 22:15:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200876#M9213</guid>
      <dc:creator>RichTestardi</dc:creator>
      <dc:date>2010-10-14T22:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200877#M9214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the debugger:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CPUCR[ARD] = 0&lt;/P&gt;&lt;P&gt;CPUCR[IRD]&amp;nbsp; = 0&lt;/P&gt;&lt;P&gt;I do note that bit 8 is set, but it is a reserved but and so I don't know what it does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a few what I think are illegal instructions like asm&amp;nbsp;(jmp 0); asm (jmp 0xbbbbbbbb) and a few illegal moves, but each time the exception handler takes over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried turning on the low voltage detect at 5V (in a 3.3V system).&amp;nbsp; It simply won't reset.&amp;nbsp; I have resorted to shorting the reset pin to the IO next to is and doing a hardware reset.&amp;nbsp; It obviously works, but is really ugly.&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, 15 Oct 2010 05:19:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200877#M9214</guid>
      <dc:creator>HummingbirdElec</dc:creator>
      <dc:date>2010-10-15T05:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200878#M9215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try "*(char *)0xbbbbbbbb = 0;"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 05:25:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200878#M9215</guid>
      <dc:creator>RichTestardi</dc:creator>
      <dc:date>2010-10-15T05:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200879#M9216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;Thanks for the advice, but no, this processor is bulletproof.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;My code:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT size="2"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;void&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#000000"&gt;&lt;STRONG&gt;kill&lt;/STRONG&gt;(&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;{&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;*(char *)0xbbbbbbbb = 0;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3F7F5F"&gt;&lt;FONT color="#3F7F5F"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;dis-assembly:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;0x0000f904 &amp;lt;kill&amp;gt;: clr.b d0&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;0x0000f906 &amp;lt;kill+2&amp;gt;: move.b d0,0xBBBBBBBB (0xbbbbbbbb)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;off to the exception handler we go.......&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;asm&lt;/FONT&gt; &lt;FONT size="2"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;STRONG&gt;__declspec&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;(register_abi) &lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#000000"&gt;&lt;STRONG&gt;asm_exception_handler&lt;/STRONG&gt;(&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;)&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;link a6,#0&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;lea -20(sp), sp&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;movem.l d0-d2/a0-a1, (sp)&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;lea 24(sp),a0&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;/* A0 point to exception stack frame on the stack */&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;jsr mcf_exception_handler&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;movem.l (sp), d0-d2/a0-a1&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;lea 20(sp), sp&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;unlk a6&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;rte&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;seems to end up at:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;VECTORDISPLAY&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#2A00FF" size="2"&gt;&lt;FONT color="#2A00FF" size="2"&gt;"Error on operand write\n"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 06:35:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200879#M9216</guid>
      <dc:creator>HummingbirdElec</dc:creator>
      <dc:date>2010-10-15T06:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200880#M9217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running under the debugger?&amp;nbsp; Perhaps you have the debugger set to intercept the exception?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my 51JM128, when I clear CPUCR, I get the reset.&amp;nbsp; So this seems pretty odd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have verified CPUCR is clear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 09:50:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200880#M9217</guid>
      <dc:creator>RichTestardi</dc:creator>
      <dc:date>2010-10-15T09:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using software interrupt with Coldfire V1</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200881#M9218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're a legend!!!&amp;nbsp; Yes, the debugger was intercepting the exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so to end this topic, the code below resets the processor (just not with the debugger running).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#7F0055" size="2"&gt;&lt;FONT color="#7F0055" size="2"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;void&lt;/P&gt;&lt;P align="left"&gt;{&lt;/P&gt;&lt;P align="left"&gt;*(&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;kill&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#7F0055" size="2"&gt;&lt;FONT color="#7F0055" size="2"&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#7F0055" size="2"&gt;&lt;FONT color="#7F0055" size="2"&gt;char&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT size="2"&gt;*)0xbbbbbbbb = 0;&lt;/FONT&gt;&lt;FONT color="#3F7F5F" size="2"&gt;&lt;FONT color="#3F7F5F" size="2"&gt;// force a reset&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 08:01:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-software-interrupt-with-Coldfire-V1/m-p/200881#M9218</guid>
      <dc:creator>HummingbirdElec</dc:creator>
      <dc:date>2011-02-08T08:01:19Z</dc:date>
    </item>
  </channel>
</rss>

