<?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>CodeWarrior for QorIQ中的主题 Re: Using generated code in CodeWarrior</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152300#M1824</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;I could need some help implementing an ISR. I am using CW 2.10 for MPC55xx.&lt;/P&gt;&lt;P&gt;Although I did everything Stanislav told, my FLEXRAY_ISR Handler is never called.&lt;/P&gt;&lt;P&gt;Instead always the EXCEP_DefaultExceptionHandler() is called. What did I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTC_InitINTCInterrupts();&lt;/P&gt;&lt;P&gt;INTC_InstallINTCInterruptHandler(FLEXRAY_ISR, 352,2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; INTC.CPR.R = 0;&lt;/P&gt;&lt;P&gt; asm("wrteei 1");&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Enable_interrupts();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FLEXRAY_ISR(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...clear channel interrupt flag....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me. I am looking forward to your answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2014 07:52:30 GMT</pubDate>
    <dc:creator>wernermotz</dc:creator>
    <dc:date>2014-04-11T07:52:30Z</dc:date>
    <item>
      <title>Using generated code in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152293#M1817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; Can you give me any insight into how to get a basic interrupts working? When I auto generate a new MPC5567 project it comes up with these IntCInterrupts.c and Exceptions.c.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000;"&gt;I am not sure as to how to utilize these files and there are no examples out there. Is there an Appnote or some documentation/example someone knows about?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 22:02:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152293#M1817</guid>
      <dc:creator>SeanW</dc:creator>
      <dc:date>2008-04-30T22:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using generated code in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152294#M1818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 12px; padding: 0px; margin: 0px"&gt;&lt;FONT class="Apple-style-span" size="2"&gt;&lt;SPAN class="Apple-style-span" style="font-size: 10px"&gt;&lt;FONT class="Apple-style-span" color="#000000" size="3"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT class="Apple-style-span" size="2"&gt;&lt;FONT class="Apple-style-span" color="#000000" size="3"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;P style="padding: 0px; margin: 0px"&gt;&lt;FONT class="Apple-style-span" size="2"&gt;&lt;FONT class="Apple-style-span" color="#000000" size="3"&gt;&lt;SPAN class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-weight: normal"&gt;Hello SeanW,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="padding: 0px; margin: 0px"&gt;&lt;FONT class="Apple-style-span" size="2"&gt;&lt;FONT class="Apple-style-span" face="arial, helvetica, sans-serif"&gt;&lt;SPAN class="Apple-style-span" style="font-weight: normal"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="padding: 0px; margin: 0px"&gt;&lt;FONT class="Apple-style-span" face="arial, helvetica, sans-serif"&gt;&lt;SPAN class="Apple-style-span" style="font-weight: normal"&gt;I would suggest you to see &amp;nbsp;FAQS below:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="padding: 0px; margin: 0px"&gt;&lt;FONT class="Apple-style-span" face="arial, helvetica, sans-serif"&gt;&lt;SPAN class="Apple-style-span" style="font-weight: normal"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="padding: 0px; margin: 0px"&gt;&lt;FONT class="Apple-style-span" face="arial, helvetica, sans-serif"&gt;&lt;SPAN class="Apple-style-span" style="font-weight: normal"&gt;&lt;SPAN class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold"&gt;&lt;A href="http://www.freescale.com/webapp/sps/utils/SingleFaq.jsp?FAQ-28861.xml" rel="nofollow" target="_self"&gt;FAQ-28861&lt;/A&gt;&lt;/SPAN&gt;: For CodeWarrior for MPC55xx, how do I add an INTC external interrupt service routine into the project generated by the New Project wizard?&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="padding: 0px; margin: 0px"&gt;&lt;FONT class="Apple-style-span" face="arial, helvetica, sans-serif"&gt;&lt;SPAN class="Apple-style-span" style="font-weight: normal"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="padding: 0px; margin: 0px"&gt;&lt;FONT class="Apple-style-span" face="arial, helvetica, sans-serif"&gt;&lt;SPAN class="Apple-style-span" style="font-weight: normal"&gt;&lt;SPAN class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold"&gt;&lt;A href="http://www.freescale.com/webapp/sps/utils/SingleFaq.jsp?FAQ-28883.xml" rel="nofollow" target="_self"&gt;FAQ-28883&lt;/A&gt;&lt;/SPAN&gt;: For CodeWarrior for MPC55xx, how do I add an INTC external interrupt service routine into the project generated by the New Project wizard?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="padding: 0px; margin: 0px"&gt;&lt;FONT class="Apple-style-span" face="arial, helvetica, sans-serif"&gt;&lt;SPAN class="Apple-style-span" style="font-weight: normal"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="padding: 0px; margin: 0px"&gt;&lt;FONT class="Apple-style-span" face="arial, helvetica, sans-serif"&gt;&lt;SPAN class="Apple-style-span" style="font-weight: normal"&gt;Stanish&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 15:39:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152294#M1818</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2009-10-05T15:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using generated code in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152295#M1819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stanish,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the same problem to use the auto-generated INTC codes for MPC55xx here and the links you provided are not available anymore (FAQ-28861 and FAQ-28863 doesn't exist anymore).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if you have any other information (links or examples) for using the INTC.C file generated by CW for MPC55xx?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 20:00:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152295#M1819</guid>
      <dc:creator>Junjun</dc:creator>
      <dc:date>2012-06-11T20:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using generated code in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152296#M1820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Junjun,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The information below is valid for single core MPC55xx/56xx. In case of dualcore the additional core INTC is initialized &amp;nbsp;in a bit different way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The project generated by the wizard configures INTC to the software vector mode. In order to use Hw vector mode I'd suggest you to use cookbook example as a template project instead of Wizard generated one: e.g:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;CW for MPC55xx and MPC56xx 2.x&amp;gt;\(CodeWarrior_Examples)\555x-CW\INTC-HWvector\&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CodeWarrior project initializes IVOR4 - External input interrupt during the startup. The default IVOR4 handler is &lt;STRONG&gt;INTC_INTCInterruptHandler()&lt;/STRONG&gt;. This handler includes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;interrupt prolog&lt;/LI&gt;&lt;LI&gt;read the Interrupt controller acknowledge register (IACKR)&lt;/LI&gt;&lt;LI&gt;branch into particular service routine in the interrupt handlers table&lt;/LI&gt;&lt;LI&gt;signalization of end of the servicing of the interrupt request (EOIR).&lt;/LI&gt;&lt;LI&gt;interrupt epilog&lt;/LI&gt;&lt;LI&gt;return from interrupt&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The interrupt handlers vector table is located in RAM &amp;nbsp;-&amp;nbsp;&lt;STRONG&gt;INTCInterruptsHandlerTable[ ]&lt;/STRONG&gt;&amp;nbsp;and includes the addresses of the handlers for all the interrupt requests supported by the INTC interrupt controller. The default size of the table is 308*4 ( macro INTC_INTERRUPTS_REQUEST_VECTOR_TABLE_SIZE) for all derivatives. If the real number of external interrupts for the particular derivative is different you can update this macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to assign a custom interrupt handler you should:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Initialize particular interrupt handler vector table entry in the code before the interrupts are enabled&amp;nbsp;e.g.:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;INTC_InstallINTCInterruptHandler(SwIrq4ISR, 4, 2);&amp;nbsp; //Software Interrupt&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SwIrq4ISR&lt;/STRONG&gt; is address of &amp;nbsp;the interrupt handler&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4&lt;/STRONG&gt; is interrupt vector number (see the MCU reference manual, INTC Interrupt controller section, "Interrupt vector table")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt; is PSR priority assigned to the interrupt source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp; Enable interrupts by decreasing value of current priority register (CPR) E.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;INTC.CPR.R = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Hope this will help&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Stanish&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 21:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152296#M1820</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2012-06-11T21:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using generated code in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152297#M1821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, Stanish,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your reply is very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for&amp;nbsp;assigning the interrupt, one just need to write the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;INTC_InstallINTCInterruptHandler(,,);&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;INTC.CPR.R = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;in the main function and write down the ISR after the main function?&amp;nbsp;No&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;initialisations for INTC or IrqVector&amp;nbsp;are&amp;nbsp;needed in the main.c?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;And&amp;nbsp;if more than one interrupt is needed, is it sufficient to just define more than one &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;INTC_InstallINTCInterruptHandler(,,) in the main function and for each handler, write the corresponding ISR at the end?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Cheers,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Roy&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 22:46:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152297#M1821</guid>
      <dc:creator>Junjun</dc:creator>
      <dc:date>2012-06-11T22:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using generated code in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152298#M1822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Hello Junjun,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;INTC and the exceptions are initilaized by the startup. Also external interrupts are enabled (wrteei &amp;nbsp;1) so you have to really only call&amp;nbsp;&lt;STRONG&gt;INTC_InstallINTCInterruptHandler()&lt;/STRONG&gt; for each Interrupt source, create the ISRs and set &lt;STRONG&gt;INTC.CPR&lt;/STRONG&gt; to 0.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;You can define the ISR function whereever you need but you need to include a function protoype into a C module where you call&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;INTC_InstallINTCInterruptHandler()&lt;/STRONG&gt; &lt;SPAN style="font-family: 'courier new', courier;"&gt;(assume it's main.c in your case). You can also add the implementations of the ISRs into main.c. You should then declare a ISR function prototype and then it doesn't matter if the ISR implementation is above or below the function that calls&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;INTC_InstallINTCInterruptHandler()&lt;/STRONG&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;..&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;void SCI_Isr(void);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;void PIT_Isr(void);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;void SW_Isr(void);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;void SCI_Isr(void)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;&amp;nbsp;clear_int_flag_sci()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;void PIT_Isr(void)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;&amp;nbsp;clear_int_flag_pit()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR class="Apple-interchange-newline" /&gt;&lt;FONT face="courier new,courier" size="1"&gt;void SW_Isr(void)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;&amp;nbsp;clear_int_flag_sw()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR class="Apple-interchange-newline" /&gt;&lt;BR class="Apple-interchange-newline" /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;void main(void)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;&amp;nbsp; Initialize_Peripherals(); &amp;nbsp;// cofigure &amp;nbsp;SCI, PIT, SW + enable interrupts within the peripherals&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;&amp;nbsp;&lt;STRONG&gt;INTC_InstallINTCInterruptHandler(&lt;SPAN&gt;SCI_Isr&lt;/SPAN&gt;,,);&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;&amp;nbsp;&lt;STRONG&gt;INTC_InstallINTCInterruptHandler(PIT_Isr,,);&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;&amp;nbsp;&lt;STRONG&gt;INTC_InstallINTCInterruptHandler(SW_Isr,,);&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;&lt;SPAN&gt;&amp;nbsp;INTC.CPR.R = 0;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR class="Apple-interchange-newline" /&gt;&lt;FONT face="courier new,courier" size="1"&gt;...&lt;/FONT&gt;&lt;BR class="Apple-interchange-newline" /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Note:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;The intitialization of INTC + Exceptions &amp;nbsp;is disabled for "RAM" build target &lt;SPAN&gt;by default&lt;/SPAN&gt;. In case you'd like enable intitialization by the startup code you should explicitly add the macro below into your project (e.g. into the prefix files)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#define CALL_USR_INIT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR class="Apple-interchange-newline" /&gt;Stanish&lt;/P&gt;&lt;P&gt;&lt;BR class="Apple-interchange-newline" /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new, courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 15:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152298#M1822</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2012-06-12T15:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using generated code in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152299#M1823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was helpful.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 17:02:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152299#M1823</guid>
      <dc:creator>carlgilbert</dc:creator>
      <dc:date>2013-09-23T17:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using generated code in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152300#M1824</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;I could need some help implementing an ISR. I am using CW 2.10 for MPC55xx.&lt;/P&gt;&lt;P&gt;Although I did everything Stanislav told, my FLEXRAY_ISR Handler is never called.&lt;/P&gt;&lt;P&gt;Instead always the EXCEP_DefaultExceptionHandler() is called. What did I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTC_InitINTCInterrupts();&lt;/P&gt;&lt;P&gt;INTC_InstallINTCInterruptHandler(FLEXRAY_ISR, 352,2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; INTC.CPR.R = 0;&lt;/P&gt;&lt;P&gt; asm("wrteei 1");&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Enable_interrupts();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FLEXRAY_ISR(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...clear channel interrupt flag....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me. I am looking forward to your answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 07:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152300#M1824</guid>
      <dc:creator>wernermotz</dc:creator>
      <dc:date>2014-04-11T07:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using generated code in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152301#M1825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Werner,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better late than never. You've likely already figured this out. It seems like you mixed up the order of your initialisation. This should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FLEXRAY_ISR(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...clear channel interrupt flag....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTC_InstallINTCInterruptHandler(FLEXRAY_ISR, 352, 2);&lt;/P&gt;&lt;P&gt;INTC_InitINTCInterrupts();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //the default function generated by CW 10.6 for MPC5644A&amp;nbsp; already enables the external interrupts with asm("wrteei 1"); - it's probably the same in your case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enable_interrupts();&lt;/P&gt;&lt;P&gt;INTC.CPR.R = 0;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 14:05:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Using-generated-code-in-CodeWarrior/m-p/152301#M1825</guid>
      <dc:creator>martinr_</dc:creator>
      <dc:date>2014-08-13T14:05:19Z</dc:date>
    </item>
  </channel>
</rss>

