<?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: CAN loop back not working in TRK KEA 128 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-loop-back-not-working-in-TRK-KEA-128/m-p/473354#M28716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jingjing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just went through some attachments and the previous blogs. However, it did not answer my question.&lt;/P&gt;&lt;P&gt;Please find attached my gateway code. I am using MSCAN libraries provided by nxp. Also, I am not using any interrupt as of now.&lt;/P&gt;&lt;P&gt;Everything is sequential i.e&lt;/P&gt;&lt;P&gt;1. Tx first.&lt;/P&gt;&lt;P&gt;2. Rx and print in console 3. repeat 1 &amp;amp; 2.&lt;/P&gt;&lt;P&gt;3. repeat 1 &amp;amp; 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also how do I register an interrupt handler with &lt;EM&gt;&lt;STRONG&gt;EnableInterrupts&lt;/STRONG&gt;&lt;/EM&gt; ? I found this function call in the example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clear the doubts and correct me if I am making any mistake.&lt;/P&gt;&lt;P&gt;For reference, I have attached the project.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2016 03:12:30 GMT</pubDate>
    <dc:creator>ddpd</dc:creator>
    <dc:date>2016-02-22T03:12:30Z</dc:date>
    <item>
      <title>CAN loop back not working in TRK KEA 128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-loop-back-not-working-in-TRK-KEA-128/m-p/473352#M28714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I am not using internal loopback. I am using simple canTransmit and canRecive functions. , My communication flow is described below&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gateway(TRK-KEA128) ---------------------------ECU&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAN Tx--------------------&amp;gt;------CAN Rx&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console&amp;lt;--------CANRx--------------&amp;lt;-------------CAN Tx&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Initially, I transmit data from Gateway (TRK-KEA128) &lt;/LI&gt;&lt;LI&gt;After receiving data in ECU, I am transmitting data back to Gateway. But after a certain time, I see no data in the console. &lt;/LI&gt;&lt;LI&gt;I could see that both Gateway and ECU microcontrollers are waiting in while loop to check for read data in debug mode.&lt;/LI&gt;&lt;LI&gt;How can I solve this issue?? Is it because of overload? &lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:01:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-loop-back-not-working-in-TRK-KEA-128/m-p/473352#M28714</guid>
      <dc:creator>ddpd</dc:creator>
      <dc:date>2016-02-19T13:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: CAN loop back not working in TRK KEA 128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-loop-back-not-working-in-TRK-KEA-128/m-p/473353#M28715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dino David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; About the CAN loopback code for TRK-KEA128, please refer to these posts, I already share the code and the according test result in these posts:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/379133"&gt;I wonder how to get CAN to work with KDS's Processor Expert?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/606539"&gt;Re: CAN_LDD TRK_KEA128 sendFrame (NOT LOOPBACK)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to it at first.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt; ----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 02:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-loop-back-not-working-in-TRK-KEA-128/m-p/473353#M28715</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-02-22T02:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: CAN loop back not working in TRK KEA 128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-loop-back-not-working-in-TRK-KEA-128/m-p/473354#M28716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jingjing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just went through some attachments and the previous blogs. However, it did not answer my question.&lt;/P&gt;&lt;P&gt;Please find attached my gateway code. I am using MSCAN libraries provided by nxp. Also, I am not using any interrupt as of now.&lt;/P&gt;&lt;P&gt;Everything is sequential i.e&lt;/P&gt;&lt;P&gt;1. Tx first.&lt;/P&gt;&lt;P&gt;2. Rx and print in console 3. repeat 1 &amp;amp; 2.&lt;/P&gt;&lt;P&gt;3. repeat 1 &amp;amp; 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also how do I register an interrupt handler with &lt;EM&gt;&lt;STRONG&gt;EnableInterrupts&lt;/STRONG&gt;&lt;/EM&gt; ? I found this function call in the example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clear the doubts and correct me if I am making any mistake.&lt;/P&gt;&lt;P&gt;For reference, I have attached the project.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 03:12:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-loop-back-not-working-in-TRK-KEA-128/m-p/473354#M28716</guid>
      <dc:creator>ddpd</dc:creator>
      <dc:date>2016-02-22T03:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: CAN loop back not working in TRK KEA 128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-loop-back-not-working-in-TRK-KEA-128/m-p/473355#M28717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dino David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; About the sequential which you need, I still have another sample code, which send the CAN data at first, then receive the data, and send the received data to the console.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; That CAN communication baud is 100Kbps, please make sure your ECU have the same CAN baud.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you want to enable the MSCAN interrupt, you should enable the TX and RX interrupt, and enable the IRQ, then write the interrupt service code in the MSCAN interrupt code.&lt;/P&gt;&lt;P&gt; About the configuration, please refer to CAN_Init function which you can find it from the mscan.c in my attached project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have question, please contact with me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jingjing&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;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 07:05:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CAN-loop-back-not-working-in-TRK-KEA-128/m-p/473355#M28717</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-02-22T07:05:29Z</dc:date>
    </item>
  </channel>
</rss>

