<?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>Kinetis Microcontrollers中的主题 How doesn CAN on MK20 loss receiving messages?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-doesn-CAN-on-MK20-loss-receiving-messages/m-p/417023#M23741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am really new to CAN bus. Currently, I am using CANOpen and send 5 bytes per message.&lt;/P&gt;&lt;P&gt;I am running into an issue of receive all of messages by using CAN on MK20 with KDS2.0+Processor Expert.&lt;/P&gt;&lt;P&gt;1. I sent 580 messages in total, interval is 100ms per message through P-CAN view and CAN node on MK20 only acknowledged 568.&lt;/P&gt;&lt;P&gt;2. I used system oscillator as my clock.&lt;/P&gt;&lt;P&gt;3. I tried to reduce the bit rate to 50kbps, but it doesnt seem get less losses. &lt;/P&gt;&lt;P&gt;4. I tried to remove the while loop in the code, but it wont receive any message after.&lt;/P&gt;&lt;P&gt;3. My code is attached below (There are a bunch of unrelated things, just ignore them at this moment)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have following questions:&lt;/P&gt;&lt;P&gt;1. Is something wrong with my software? If yes, please dont hesitate to comment on it. &lt;/P&gt;&lt;P&gt;2. How could i improve this?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yaran&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-337405"&gt;CAN0.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2015 18:24:37 GMT</pubDate>
    <dc:creator>yarannan</dc:creator>
    <dc:date>2015-06-19T18:24:37Z</dc:date>
    <item>
      <title>How doesn CAN on MK20 loss receiving messages?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-doesn-CAN-on-MK20-loss-receiving-messages/m-p/417023#M23741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am really new to CAN bus. Currently, I am using CANOpen and send 5 bytes per message.&lt;/P&gt;&lt;P&gt;I am running into an issue of receive all of messages by using CAN on MK20 with KDS2.0+Processor Expert.&lt;/P&gt;&lt;P&gt;1. I sent 580 messages in total, interval is 100ms per message through P-CAN view and CAN node on MK20 only acknowledged 568.&lt;/P&gt;&lt;P&gt;2. I used system oscillator as my clock.&lt;/P&gt;&lt;P&gt;3. I tried to reduce the bit rate to 50kbps, but it doesnt seem get less losses. &lt;/P&gt;&lt;P&gt;4. I tried to remove the while loop in the code, but it wont receive any message after.&lt;/P&gt;&lt;P&gt;3. My code is attached below (There are a bunch of unrelated things, just ignore them at this moment)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have following questions:&lt;/P&gt;&lt;P&gt;1. Is something wrong with my software? If yes, please dont hesitate to comment on it. &lt;/P&gt;&lt;P&gt;2. How could i improve this?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yaran&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-337405"&gt;CAN0.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 18:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-doesn-CAN-on-MK20-loss-receiving-messages/m-p/417023#M23741</guid>
      <dc:creator>yarannan</dc:creator>
      <dc:date>2015-06-19T18:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: How doesn CAN on MK20 loss receiving messages?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-doesn-CAN-on-MK20-loss-receiving-messages/m-p/417024#M23742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yaran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just took your SR and replied with some suggestion, please kindly let me know if you have any issue .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 05:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-doesn-CAN-on-MK20-loss-receiving-messages/m-p/417024#M23742</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-06-23T05:10:30Z</dc:date>
    </item>
  </channel>
</rss>

