<?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のトピックHow to install Kernel table of isr.c Example?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-Kernel-table-of-isr-c-Example/m-p/463200#M15492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am working in the example project of ISR. I am using TWRK60N512. I compiled isr library and the project; but, when I tried to debug or run isr.c, Terminal received the next:&lt;/P&gt;&lt;P&gt;====================== ISR Example =======================&lt;/P&gt;&lt;P&gt;Press the SW1 to blink LED1, press it again to turn it off&lt;/P&gt;&lt;P&gt;Install interrupt handler to hardware vector table failed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I can consider that there is a problem in the code in this part:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Install the interrupt directly to the vector table in the processor. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(! _int_install_kernel_isr(lwgpio_int_get_vector(btn_ptr), btn_kernel_isr))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Install interrupt handler to hardware vector table failed.\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know where this example is wrong.&lt;/P&gt;&lt;P&gt;Anybody can help me?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused because I have never change anything of example code. I am ataching the example of MQX 4.2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338831"&gt;isr.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 19:16:15 GMT</pubDate>
    <dc:creator>norbertoj</dc:creator>
    <dc:date>2016-03-09T19:16:15Z</dc:date>
    <item>
      <title>How to install Kernel table of isr.c Example?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-Kernel-table-of-isr-c-Example/m-p/463200#M15492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am working in the example project of ISR. I am using TWRK60N512. I compiled isr library and the project; but, when I tried to debug or run isr.c, Terminal received the next:&lt;/P&gt;&lt;P&gt;====================== ISR Example =======================&lt;/P&gt;&lt;P&gt;Press the SW1 to blink LED1, press it again to turn it off&lt;/P&gt;&lt;P&gt;Install interrupt handler to hardware vector table failed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I can consider that there is a problem in the code in this part:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Install the interrupt directly to the vector table in the processor. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(! _int_install_kernel_isr(lwgpio_int_get_vector(btn_ptr), btn_kernel_isr))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Install interrupt handler to hardware vector table failed.\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know where this example is wrong.&lt;/P&gt;&lt;P&gt;Anybody can help me?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused because I have never change anything of example code. I am ataching the example of MQX 4.2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338831"&gt;isr.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 19:16:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-Kernel-table-of-isr-c-Example/m-p/463200#M15492</guid>
      <dc:creator>norbertoj</dc:creator>
      <dc:date>2016-03-09T19:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to install Kernel table of isr.c Example?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-Kernel-table-of-isr-c-Example/m-p/463201#M15493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I did a quick check with this demo C:\Freescale\Freescale_MQX_4_2\mqx\examples\isr\build\cw10gcc\isr_twrk60n512.&amp;nbsp; My result is OK.&lt;/P&gt;&lt;P&gt;I set the MQX_ROM_VECTORS macro to zero in the user_config.h file prior to compilation of MQX kernel libraries and the example itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22627iA2926273BC3D952F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you trace the function _int_install_kernel_isr , and check the error code for further investigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 03:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-Kernel-table-of-isr-c-Example/m-p/463201#M15493</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-03-10T03:25:39Z</dc:date>
    </item>
  </channel>
</rss>

