<?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: FRDM-KEAZ128 CAN Issues in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KEAZ128-CAN-Issues/m-p/654090#M39912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check below thread about KEA128 MSCAN demo based on KDS Processor Expert:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/379133?commentID=583263#comment-583263" title="https://community.nxp.com/thread/379133?commentID=583263#comment-583263"&gt;https://community.nxp.com/thread/379133?commentID=583263#comment-583263&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attached a CodeWarrior Processor Expert demo for your reference.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2017 09:01:08 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2017-02-09T09:01:08Z</dc:date>
    <item>
      <title>FRDM-KEAZ128 CAN Issues</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KEAZ128-CAN-Issues/m-p/654089#M39911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Background with Kinetis: I have used Processor Expert in the past to setup the CAN component of the KE06Z controller and found it easy to use and customize (transmit buffers, ID filter masks, baud-rates, etc.). My current development is for the &lt;STRONG&gt;FRDM-KEAZ128&lt;/STRONG&gt; dev board. This board isn't preconfigured in any of KDS, CW, or S32 IDE's so I'm having a hard time setting it up for CAN.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue: I am having a real difficult time configuring the CAN component to send frames on this board.&amp;nbsp; &lt;SPAN aria-label="Devil" class="emoticon-inline emoticon_devil" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have added the component and configured it as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Rx Pin: PTC6&lt;/LI&gt;&lt;LI&gt;Tx Pin: PTC7&lt;/LI&gt;&lt;LI&gt;Msg Buffers: 2 (1 Rx, 1 Tx)&lt;/LI&gt;&lt;LI&gt;Bit-rate: 250kbit/s&lt;/LI&gt;&lt;LI&gt;Initialization: Auto-init, enabled&lt;/LI&gt;&lt;LI&gt;Interrupts: High Priority for Tx, Medium for Rx&lt;/LI&gt;&lt;LI&gt;Events: OnFreeTxBuffer &amp;amp; OnFullRxBuffer&lt;/LI&gt;&lt;/UL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using CANAlyzer to monitor frames and configured it at the same bit-rate, no frames are seen on the bus. I tried with and without 120ohm terminating resistor. From reading this NXP thread&amp;nbsp;&lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-objectid="386975" data-objecttype="1" href="https://community.nxp.com/thread/386975"&gt;https://community.nxp.com/thread/386975&lt;/A&gt; , I learned that PE actually forgets to add the interrupt enable mask for transmitting frames. That explains why the debugger doesn't reach the event CAN1_OnFreeTxBuffer(). After adding the missing line to the end of the CAN1_Init() routine, the debugger shows that the MCU is stuck in the PE_ISR(CAN1_TxInterrupt) loop. This happens during PE_low_level_init() &lt;STRONG&gt;before&lt;/STRONG&gt; any of my code is executed (actually setting up a data frame).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="175363_175363.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122789i33CA3C29724E9785/image-size/large?v=v2&amp;amp;px=999" role="button" title="175363_175363.JPG" alt="175363_175363.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture01.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12650i52D54D22223CCBA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture01.JPG" alt="Capture01.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried disabling autoinitialize components--so I call the CAN1_Init() function myself and then CAN_Enable() to see what's going on. I tried adding the highlighted line just before setting up the CAN frame doesn't work either. I'm not sure what to do here, I have also tried removing the line (no frames sent, no OnFreeTxBuffer event triggered). When I use loop-back mode, the event gets triggered and the MCU doesn't get stuck in the ISR function.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can someone take a look at my attached CodeWarrior 10.6 project and look at the PE code as to why it wont send CAN frames? I'm not exactly sure where to go from here.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. I have tried Kinetis Design studio and the new S32 design studio, to my luck, the MSCAN LDD component is not included!! &lt;SPAN aria-label="Cry" class="emoticon_cry emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337649"&gt;frdm-keaz128-can-test.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 04:55:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KEAZ128-CAN-Issues/m-p/654089#M39911</guid>
      <dc:creator>michaeljwilson</dc:creator>
      <dc:date>2017-01-30T04:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KEAZ128 CAN Issues</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KEAZ128-CAN-Issues/m-p/654090#M39912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check below thread about KEA128 MSCAN demo based on KDS Processor Expert:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/379133?commentID=583263#comment-583263" title="https://community.nxp.com/thread/379133?commentID=583263#comment-583263"&gt;https://community.nxp.com/thread/379133?commentID=583263#comment-583263&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attached a CodeWarrior Processor Expert demo for your reference.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 09:01:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KEAZ128-CAN-Issues/m-p/654090#M39912</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-02-09T09:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KEAZ128 CAN Issues</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KEAZ128-CAN-Issues/m-p/654091#M39913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for the response. I downloaded the KDS example and programmed the FRDM-KEAZ128. Tomorrow I will test it on a real CAN bus with other nodes and CANAlyzer, then I will respond with the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 04:35:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KEAZ128-CAN-Issues/m-p/654091#M39913</guid>
      <dc:creator>michaeljwilson</dc:creator>
      <dc:date>2017-02-10T04:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KEAZ128 CAN Issues</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KEAZ128-CAN-Issues/m-p/654092#M39914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/michaeljwilson"&gt;michaeljwilson&lt;/A&gt;, do you tell us if u could to transmit via CAN on KEAZ128?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2019 07:38:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KEAZ128-CAN-Issues/m-p/654092#M39914</guid>
      <dc:creator>ionut_chirilus</dc:creator>
      <dc:date>2019-10-01T07:38:01Z</dc:date>
    </item>
  </channel>
</rss>

