<?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: How to implement ISRs in GCC? in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/How-to-implement-ISRs-in-GCC/m-p/937702#M1148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HARI KRISHNA KAPPARAPU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the software enablement that we provide, you can use a startup file which contains the vector table defined. This vector table is placed in the corresponding address in 0x0 with the linker file, so when you call an IRQ, you can define just like a function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SVC_Handler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Oct 2019 22:38:51 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2019-10-22T22:38:51Z</dc:date>
    <item>
      <title>How to implement ISRs in GCC?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-implement-ISRs-in-GCC/m-p/937701#M1147</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;Could someone point me how to implement an ISR in GCC compiler with an example please.&lt;/P&gt;&lt;P&gt;I tried the below, but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;__attribute__&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;(&amp;nbsp;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;interrupt&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"IRQ"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;)&amp;nbsp;)&amp;nbsp;)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;SVCall_IRQn&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;)&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Implement the ISR code here */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2019 01:59:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-implement-ISRs-in-GCC/m-p/937701#M1147</guid>
      <dc:creator>__invited__hari</dc:creator>
      <dc:date>2019-10-18T01:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement ISRs in GCC?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-implement-ISRs-in-GCC/m-p/937702#M1148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HARI KRISHNA KAPPARAPU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the software enablement that we provide, you can use a startup file which contains the vector table defined. This vector table is placed in the corresponding address in 0x0 with the linker file, so when you call an IRQ, you can define just like a function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SVC_Handler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2019 22:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-implement-ISRs-in-GCC/m-p/937702#M1148</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2019-10-22T22:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement ISRs in GCC?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-implement-ISRs-in-GCC/m-p/937703#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my observation.&lt;/P&gt;&lt;P&gt;I tried the approach that&amp;nbsp;is suggested above as a very first thing, but it is through CPP file. So, it didn't work. Then went to the approach I mentioned in my query as per ARM reference manual. That also didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the solution I found later is that, I implemented a C file with this ISR interface (just as you mentioned) and then provided function calls to register a callback function to call from C++ Classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do let me know if that doesn't make any sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2019 00:08:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-implement-ISRs-in-GCC/m-p/937703#M1149</guid>
      <dc:creator>__invited__hari</dc:creator>
      <dc:date>2019-10-23T00:08:39Z</dc:date>
    </item>
  </channel>
</rss>

