<?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: Software interrupts in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Software-interrupts/m-p/687305#M107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, this does work. I had an interrupt priority issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jul 2017 01:16:17 GMT</pubDate>
    <dc:creator>algernonarbuthn</dc:creator>
    <dc:date>2017-07-31T01:16:17Z</dc:date>
    <item>
      <title>Software interrupts</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Software-interrupts/m-p/687304#M106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the MCUXpresso SDK with i.MX6UL, I need to implement software interrupt handlers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MX6UL implements the ARM GIC. My attempt at using Software0_IRQn is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Install handler for Software interrupt 0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp; SystemInstallIrqHandler( Software0_IRQn, &amp;lt;handler&amp;gt;, 0 );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp; GIC_SetPriority( Software0_IRQn, &amp;lt;priority&amp;gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp; GIC_EnableIRQ( Software0_IRQn );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoke handler by calling this function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;static void GIC_software_interrupt( IRQn_Type IRQn )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp; GIC_Type *gic = ( GIC_Type* )( __get_CBAR() &amp;amp; 0xFFFF0000UL );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp; // Invoke IRQn on this processor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp; gic-&amp;gt;D_SGIR = ( 2 &amp;lt;&amp;lt; 24 ) | ( uint32_t )IRQn;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't work. The handler is never called. Anyone know what I'm doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jul 2017 13:22:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Software-interrupts/m-p/687304#M106</guid>
      <dc:creator>algernonarbuthn</dc:creator>
      <dc:date>2017-07-30T13:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Software interrupts</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Software-interrupts/m-p/687305#M107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, this does work. I had an interrupt priority issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 01:16:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Software-interrupts/m-p/687305#M107</guid>
      <dc:creator>algernonarbuthn</dc:creator>
      <dc:date>2017-07-31T01:16:17Z</dc:date>
    </item>
  </channel>
</rss>

