<?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>MQX Software SolutionsのトピックRe: _int_set_exception_handler issue</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426356#M14243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;It doesn't talk about _int_set_exception_handler only &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;_task_set_exception_handler. I am trying to replace the defualt ISR handler for usage, hard, mem, and bus faults in the vector table to use a custom one I create. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2015 13:00:27 GMT</pubDate>
    <dc:creator>ghazy</dc:creator>
    <dc:date>2015-11-25T13:00:27Z</dc:date>
    <item>
      <title>_int_set_exception_handler issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426354#M14241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a kinetis K60 and MQX 3.8. I am trying to add a custom exception handler. Following the post &lt;A href="https://community.nxp.com/docs/DOC-93270"&gt;General Technical MQX FAQ&lt;/A&gt; &lt;SPAN style="font-weight: bold; font-size: 13.3333px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Q: &lt;/SPAN&gt;How are exceptions or unhandled interrupts handled by MQX?&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Enable divide by zero trap SCB_CCR |= 1&amp;lt;&amp;lt; SCB_CCR_DIV_0_TRP_SHIFT;&lt;/P&gt;&lt;P&gt;- _int_install_exception_isr();&lt;/P&gt;&lt;P&gt;-_task_set_exception_handler(_task_get_id(), task_exception_handler);&lt;/P&gt;&lt;P&gt;- divide by zero in my code (sum = 2/zero; for example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does indeed go to my task_exception_handler. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is something I am trying to do:&lt;/P&gt;&lt;P&gt;-SCB_SHCSR |= 0x00070000; // enable Usage Fault, Bus Fault, and MMU Fault&lt;/P&gt;&lt;P&gt;-SCB_CCR |= 1&amp;lt;&amp;lt; SCB_CCR_DIV_0_TRP_SHIFT;&lt;/P&gt;&lt;P&gt;- _int_install_exception_isr();&lt;/P&gt;&lt;P&gt;-_int_set_exception_handler(vectorNum, ISR_exception_handler); // vectorNum are the vector numbers I pass (3,4,5 and 6) hard,mem,bus, and usage fualt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't work. What Am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 20:46:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426354#M14241</guid>
      <dc:creator>ghazy</dc:creator>
      <dc:date>2015-11-19T20:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: _int_set_exception_handler issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426355#M14242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below thread.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/305612"&gt;Unhandled Interrupt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 20:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426355#M14242</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-11-24T20:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: _int_set_exception_handler issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426356#M14243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;It doesn't talk about _int_set_exception_handler only &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;_task_set_exception_handler. I am trying to replace the defualt ISR handler for usage, hard, mem, and bus faults in the vector table to use a custom one I create. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 13:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426356#M14243</guid>
      <dc:creator>ghazy</dc:creator>
      <dc:date>2015-11-25T13:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: _int_set_exception_handler issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426357#M14244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I realized that in &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG&gt;_int_set_exception_handler&lt;/STRONG&gt; you put the vector number of the ISR where the exception occurs. So I divided by zero in a CAN ISR that I am using. In my main I did the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG&gt;_int_install_exception_isr(); &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG&gt;_int_set_exception_handler(0x2d, ISR_exception_handler);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I put a breakpoint in my CAN ISR where I divide by zero. I looked at the SCB_ICSR register and the active vector was 0x2d. When I step over it goes to the defualt ISR instead of the custom &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG&gt;ISR_exception_handler &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;That I created.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;What Am I missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 15:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426357#M14244</guid>
      <dc:creator>ghazy</dc:creator>
      <dc:date>2015-12-02T15:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: _int_set_exception_handler issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426358#M14245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After looking at this further I noticed I have &lt;STRONG&gt;MQX_SPARSE_ISR_TABLE &lt;/STRONG&gt;defined as 1. This causes a NULL return when &lt;STRONG&gt;_int_get_exception_handler &lt;/STRONG&gt;is called in the function &lt;STRONG&gt;_int_exception_isr&lt;/STRONG&gt;. At this point I am not what approach I need to take.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 20:10:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/int-set-exception-handler-issue/m-p/426358#M14245</guid>
      <dc:creator>ghazy</dc:creator>
      <dc:date>2015-12-02T20:10:38Z</dc:date>
    </item>
  </channel>
</rss>

