<?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: MSCAN intrerupt service routine in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187599#M7128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe your messages are filtered out by acceptance filters ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2011 18:58:32 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2011-12-02T18:58:32Z</dc:date>
    <item>
      <title>MSCAN intrerupt service routine</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187596#M7125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;First I want to say that i am not new to uC, but new to freescale uC, at school I got a project to set up the MSCAN for the&amp;nbsp;mc9s12dp256, with help from other forums and the datasheet I managed to make something, but I do not know hot to set up the MSCAN to recevie via intrerupt the CAN messages, I got it in loop back test set up, but there is nothing coming in the rx buffer. My linker gives me an error every time i try to run, Fixup Overflow in Vector 38. Can somebody give me an idea on what to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 17:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187596#M7125</guid>
      <dc:creator>Kaos</dc:creator>
      <dc:date>2011-12-02T17:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN intrerupt service routine</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187597#M7126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add following lines to your code, so that all your ISR routines, not only MSCAN stay between them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma CODE_SEG __NEAR_SEG NON_BANKED&lt;/P&gt;&lt;P&gt;&amp;nbsp;.. your MSCAN ISR comes here&lt;/P&gt;&lt;P&gt;#pragma CODE_SEG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Linker is not happy becaus you are using banked or large memory models, in which all routines by default are allocated in banked memory and function pointers are 24-bit wide, while vector table entries are 16-bit wide, so you see fixup overflow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 17:51:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187597#M7126</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-12-02T17:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN intrerupt service routine</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187598#M7127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kef,&lt;/P&gt;&lt;P&gt;I found that out just a few minutes ago:&lt;/P&gt;&lt;P&gt;#pragma CODE_SEG __NEAR_SEG NON_BANKED&lt;BR /&gt;#pragma TRAP_PROC&lt;BR /&gt;interrupt void CAN0RxISR(void)&lt;BR /&gt;{&lt;BR /&gt;unsigned char length, index;&lt;BR /&gt;&lt;BR /&gt;length = (CAN0RXDLR &amp;amp; 0x0F);&lt;BR /&gt;for (index=0; index&amp;lt;length; index++)&lt;BR /&gt;{&lt;BR /&gt;RxData[index] = *(&amp;amp;CAN0RXDSR0 + index); /* Get received data */&lt;BR /&gt;}&lt;BR /&gt;CAN0RFLG = 0x01; /* Clear RXF */&lt;BR /&gt;}&lt;BR /&gt;#pragma CODE_SEG DEFAULT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the problem now is that the ISR wont fire, and it set the according bits in the register, and it is in loop back, shouldn't it be receiving the same data i'm sending?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 17:55:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187598#M7127</guid>
      <dc:creator>Kaos</dc:creator>
      <dc:date>2011-12-02T17:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN intrerupt service routine</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187599#M7128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe your messages are filtered out by acceptance filters ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 18:58:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187599#M7128</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-12-02T18:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN intrerupt service routine</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187600#M7129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've checked the filters, but i don't know how to debug them in simulation, i've changed the Tx and Rx ids to see what happens. but on a other note, the debugger now will let me put breakpoints inside the ISR, that meens that code will be executed, but i don't know how to force the uC to fire the ISR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 21:57:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187600#M7129</guid>
      <dc:creator>Kaos</dc:creator>
      <dc:date>2011-12-02T21:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN intrerupt service routine</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187601#M7130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt simulator has full support for MSCAN. Check release notes. I believe simulator just accepts writes to MSCAN registerss, but nothing close to real behaviour of hardware. You need real MCU to try it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 22:27:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187601#M7130</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-12-02T22:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN intrerupt service routine</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187602#M7131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a sidenote, you don't need to use both #pragma TRAP_PROC and the non-standard interrupt keyword, they are equivalent features. Here is a link describing how to implement a vectorable in CW for HCS12 without any non-standard crap:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/message/59586#59586" title="https://community.freescale.com/message/59586#59586"&gt;https://community.freescale.com/message/59586#59586&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 19:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN-intrerupt-service-routine/m-p/187602#M7131</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2011-12-07T19:50:47Z</dc:date>
    </item>
  </channel>
</rss>

