<?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: MPC6506S crashes on interrupt in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/MPC6506S-crashes-on-interrupt/m-p/211403#M2375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I got an answer from Freescale support:&lt;/P&gt;&lt;PRE&gt;The issue is the “ivor_branch_table_p1”, defined in ivor_branch_table.c  is not linked properly. Thus when exception (IVOR4) happens, the INTC_INTCInterruptHandler is not called. So please try to comment following line within the ivor_branch_table.c file …/* Set interrupt handlers *///asm void ivor_branch_table_p1(void);    comment this line#pragma section code_type ".ivor_branch_table" ….Also if the RAM target is used the #define CALL_USR_INIT 1 should be added to the INT_RAM_VLE.prefix file, thus interrupt initialization is called also for a RAM target.Hope it helps.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to avoid the compiler warning you can instead move the commented out function declaration between the pragmas and function definition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still waitng for answer regarding a more "permanent" solution to the problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2012 16:19:12 GMT</pubDate>
    <dc:creator>DjuroDrljaca</dc:creator>
    <dc:date>2012-03-07T16:19:12Z</dc:date>
    <item>
      <title>MPC6506S crashes on interrupt</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC6506S-crashes-on-interrupt/m-p/211401#M2373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a "bare board" project in CW 10.2 for MPC5606S.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I had a lot of problems with triggering interrupt I decided to try also with PIT peripheral to keep it simpler (and some sample code for this is already available under examples).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program contains:&lt;/P&gt;&lt;P&gt;- sources from CW bare board project (automaticaly generated)&lt;/P&gt;&lt;P&gt;- simple code to initialize and start the timer&lt;/P&gt;&lt;P&gt;- I initialize the interrupt vector --&amp;gt; INTC_InstallINTCInterruptHandler(Pit1ISR, 60, 1);&lt;/P&gt;&lt;P&gt;- I enable all interrupt priorities --&amp;gt; INTC.CPR.B.PRI = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that when the interrupt occurs the CPU crashes. I also managed to debug the interrupt handler function (INTC_INTCInterruptHandler) but I am not sure if this is good since it is not recommended to read INTC.IACKR multiple times - I got a function pointer value of 0x00000000, but the register value points directly to the correct function pointer address of the PIT IRQ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 19:30:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC6506S-crashes-on-interrupt/m-p/211401#M2373</guid>
      <dc:creator>DjuroDrljaca</dc:creator>
      <dc:date>2012-02-29T19:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: MPC6506S crashes on interrupt</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC6506S-crashes-on-interrupt/m-p/211402#M2374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So after I lost about 1 day of dancing around this problem I found the cause of this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is in CodeWarrior v10.2, since it apparently doesn't correctly create the startup/initialization files. When I created a project with CodeWarrior for 55xx/56xx v2.8 the same code didn't crash when interrupts occured. Then I was also able to import the CW v2.8 to CW v10.2 and the project was still working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I will try to find out exactly what causes this problem and I will probably also send a bug report to Freescale.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 00:26:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC6506S-crashes-on-interrupt/m-p/211402#M2374</guid>
      <dc:creator>DjuroDrljaca</dc:creator>
      <dc:date>2012-03-01T00:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: MPC6506S crashes on interrupt</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC6506S-crashes-on-interrupt/m-p/211403#M2375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I got an answer from Freescale support:&lt;/P&gt;&lt;PRE&gt;The issue is the “ivor_branch_table_p1”, defined in ivor_branch_table.c  is not linked properly. Thus when exception (IVOR4) happens, the INTC_INTCInterruptHandler is not called. So please try to comment following line within the ivor_branch_table.c file …/* Set interrupt handlers *///asm void ivor_branch_table_p1(void);    comment this line#pragma section code_type ".ivor_branch_table" ….Also if the RAM target is used the #define CALL_USR_INIT 1 should be added to the INT_RAM_VLE.prefix file, thus interrupt initialization is called also for a RAM target.Hope it helps.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to avoid the compiler warning you can instead move the commented out function declaration between the pragmas and function definition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still waitng for answer regarding a more "permanent" solution to the problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 16:19:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC6506S-crashes-on-interrupt/m-p/211403#M2375</guid>
      <dc:creator>DjuroDrljaca</dc:creator>
      <dc:date>2012-03-07T16:19:12Z</dc:date>
    </item>
  </channel>
</rss>

