<?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: Unhandled Interrupt vector 0x9f (159) in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190985#M3691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same issue.&lt;/P&gt;&lt;P&gt;I am also using the FlexCAN module and have messages being received&amp;nbsp;about every 50ms. This interrupt only triggers on my code when I hit a breakpoint and then try to resume execution. At the time I resume execution , the interrupt occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to temporarily work around the problem by actually installing an interrupt handler for the MCF5225_INT1_rsvd31 interrupt (I am just using my regular FlexCAN_ISR interrupt handler).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make this work, I had to modify the M52259ev.h file and change the BSP_LAST_INTERRUPT_VECTOR_USED value to be MCF5225_INT1_rsvd31 and then rebuild MQX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to fix the problem (at least for now).&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sems to me that there is a real (undocumented) interrupt happening. Iit&amp;nbsp;appears to me&amp;nbsp;to be some kind of CAN overrun error that is occurring while I am sitting at a breakpoint in the debugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I plan on submitting a problem report to see what can be done about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2009 00:53:01 GMT</pubDate>
    <dc:creator>SoftwareForHire</dc:creator>
    <dc:date>2009-07-10T00:53:01Z</dc:date>
    <item>
      <title>Unhandled Interrupt vector 0x9f (159)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190983#M3689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="028140014-17062009"&gt;Hi,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="028140014-17062009"&gt;I'm using an MCF52259 and getting the following error being printed out by MQX.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="028140014-17062009"&gt;*** UNHANDLED INTERRUPT ***&lt;BR /&gt;Vector #: 636&amp;nbsp; 0x27c&lt;BR /&gt;Offset&amp;nbsp; : 159&amp;nbsp; 0x9f&lt;BR /&gt;Task Id: 0x10005 Td_ptr 0x1000bc80 Stack Frame: 0x100006f8&lt;BR /&gt;Interrupt_nesting level: 2&amp;nbsp;&amp;nbsp; PC: 0x000006ea&amp;nbsp;&amp;nbsp; SR: 0x2204&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="028140014-17062009"&gt;Then a crash.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="028140014-17062009"&gt;Looking at the MCF52259 (16-15) manual the in use vectors stop at 153 (BOFF_INT)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="028140014-17062009"&gt;So what's 159?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="028140014-17062009"&gt;&lt;FONT face="Arial" size="2"&gt;I would install a handler if I could find out what the interrupt was for.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="028140014-17062009"&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="028140014-17062009"&gt;&lt;FONT face="Arial" size="2"&gt;BTW I am using the FlexCAN module and CAN messages are being received at the time. So I suspect it is something to do with that!&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 21:08:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190983#M3689</guid>
      <dc:creator>fenz</dc:creator>
      <dc:date>2009-06-17T21:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unhandled Interrupt vector 0x9f (159)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190984#M3690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fenz,&lt;/P&gt;&lt;P&gt;Usually when a weird ISR occurs like you are seeing it is related to the stack getting corrupted (in my personal experience).&lt;/P&gt;&lt;P&gt;Make sure your tasks have plenety of stack space for debug then reduce them later.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 20:13:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190984#M3690</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2009-06-30T20:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unhandled Interrupt vector 0x9f (159)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190985#M3691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same issue.&lt;/P&gt;&lt;P&gt;I am also using the FlexCAN module and have messages being received&amp;nbsp;about every 50ms. This interrupt only triggers on my code when I hit a breakpoint and then try to resume execution. At the time I resume execution , the interrupt occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to temporarily work around the problem by actually installing an interrupt handler for the MCF5225_INT1_rsvd31 interrupt (I am just using my regular FlexCAN_ISR interrupt handler).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make this work, I had to modify the M52259ev.h file and change the BSP_LAST_INTERRUPT_VECTOR_USED value to be MCF5225_INT1_rsvd31 and then rebuild MQX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to fix the problem (at least for now).&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sems to me that there is a real (undocumented) interrupt happening. Iit&amp;nbsp;appears to me&amp;nbsp;to be some kind of CAN overrun error that is occurring while I am sitting at a breakpoint in the debugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I plan on submitting a problem report to see what can be done about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 00:53:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190985#M3691</guid>
      <dc:creator>SoftwareForHire</dc:creator>
      <dc:date>2009-07-10T00:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unhandled Interrupt vector 0x9f (159)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190986#M3692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SoftwareForHire,&lt;/P&gt;&lt;P&gt;I have the exact same problem. I'll try what you did.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you finally get an answer from Freescale?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 06:37:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190986#M3692</guid>
      <dc:creator>lumi</dc:creator>
      <dc:date>2012-08-24T06:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unhandled Interrupt vector 0x9f (159)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190987#M3693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't remember ever seeing an answer. We used the solution that I came up with for production.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 07:13:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190987#M3693</guid>
      <dc:creator>SoftwareForHire</dc:creator>
      <dc:date>2012-08-24T07:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unhandled Interrupt vector 0x9f (159)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190988#M3694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So be it. I'll give it a try. I posted a Technical Service Request, hopefully these guys make a good job in clarifying why in the world we're getting an interrupt caused by --supposedly-- unused sources. I'm getting unhandled interrupts from vectors 151, 157 and 159 very consistently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you prompt reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 07:20:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190988#M3694</guid>
      <dc:creator>lumi</dc:creator>
      <dc:date>2012-08-24T07:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unhandled Interrupt vector 0x9f (159)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190989#M3695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the problem. I hope this helps to all other people experiencing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- First the MCF52259 microcontroller device --possible others, too-- has some undeterministic behavior when the ICR registers are set to the same values. "MCF52259 ColdFireÂ® Integrated Microcontroller Reference Manual, Rev. 4", page 16-10 states: "It is the responsibility of the software to program the ICRnx registers with unique and non-overlapping level and priority definitions. Failure to program the ICRnx registers in this manner can result in undefined behavior."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find this as a major drawback on the device design. A microcontroller should be a deterministic machine. There should be a mechanism that solves concurrent interrupts of the same configured priority.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Second, MQX does exactly what the manual says not to do. In function FLEXCAN_Int_enable, called as follows:&lt;/P&gt;&lt;P&gt;FLEXCAN_Initialize_mailbox -&amp;gt; FLEXCAN_Int_enable -&amp;gt; _flexcan_int_init&lt;/P&gt;&lt;P&gt;... the ICRs associated with the CAN mailboxes are set to a predefined interrupt level and sub-level...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check: _flexcan_int_init (index, FLEXCAN_MESSBUF_INT_LEVEL, FLEXCAN_MESSBUF_INT_SUBLEVEL, TRUE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This caused a our application - heavily dependant on CAN @500 kbps- to generate continuous resets and therefore to not function at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that Freescale needs to address this issue in their next &amp;nbsp;MQX release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My setup:&lt;/P&gt;&lt;P&gt;MCF52259 in a custom developed board, using CAN @ 500 kBit/s&lt;/P&gt;&lt;P&gt;CodeWarrior 10.2&lt;/P&gt;&lt;P&gt;MQX 3.8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 01:21:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190989#M3695</guid>
      <dc:creator>lumi</dc:creator>
      <dc:date>2012-08-29T01:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unhandled Interrupt vector 0x9f (159)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190990#M3696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lumi,&lt;/P&gt;&lt;P&gt;Sorry for the hassles and thank you for posting your solution.&lt;/P&gt;&lt;P&gt;I will forward this to our MQWX Development team.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 21:45:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190990#M3696</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-08-29T21:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unhandled Interrupt vector 0x9f (159)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190991#M3697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How interesting. Just updated our app to use the latest MQX and suddenly things started failing... I started getting some occasional unhandled exceptions and all this strange behavior sounded kind of familiar. After a little investigation I come to the forum, see my own solution, go check the MQX CAN driver and find that in version 4.0.2 it still has the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line...&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _flexcan_int_init (index, FLEXCAN_MESSBUF_INT_LEVEL, FLEXCAN_MESSBUF_INT_SUBLEVEL, TRUE)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;... does exactly what the manual says not to do: setting the same interrupt level and sublevel to different exception sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale: Please resolve this bug in MQX!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 21:45:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190991#M3697</guid>
      <dc:creator>lumi</dc:creator>
      <dc:date>2013-10-15T21:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unhandled Interrupt vector 0x9f (159)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190992#M3698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;found the same problem.&amp;nbsp; And I had used a lot of time to fix the problem. After scanned this acticle. I modified the MQX source to change the same level interrupt to different one. Then it is ok, no unhandled interrupt occurs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 07:52:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Unhandled-Interrupt-vector-0x9f-159/m-p/190992#M3698</guid>
      <dc:creator>1430611548</dc:creator>
      <dc:date>2018-06-12T07:52:28Z</dc:date>
    </item>
  </channel>
</rss>

