<?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: Implementing CAN communication with K22 flexcan - timing wrong? in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Implementing-CAN-communication-with-K22-flexcan-timing-wrong/m-p/872327#M1535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ulrich Schmidt,&lt;/P&gt;&lt;P&gt;The clock source of flexcan is OSCERCLK or Bus clock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlexCAN clock generation.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71057iFAA94E774E59B92D/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlexCAN clock generation.png" alt="FlexCAN clock generation.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clocking diagram.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71106i167A27EE81732EFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clocking diagram.png" alt="Clocking diagram.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That example using 8MHz OSCERCLK(from crystal).&lt;/P&gt;&lt;P&gt;Since the frequency of crystal has increased to 16MHz, have you you modify the values of flexcanConfig?&lt;/P&gt;&lt;P&gt;You can refer: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/495062"&gt;FlexCAN 800K Baud issue in KinetisK series&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="flexcanConfig.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70901i4FBD45F073C2D3D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="flexcanConfig.png" alt="flexcanConfig.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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>Mon, 11 Mar 2019 07:32:19 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2019-03-11T07:32:19Z</dc:date>
    <item>
      <title>Implementing CAN communication with K22 flexcan - timing wrong?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Implementing-CAN-communication-with-K22-flexcan-timing-wrong/m-p/872326#M1534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to implement a CAN communication with the K22 flexcan. I used the clocks tool from the MCUxpresso IDE to setup the bus clocks. The programm compiles well. The communication runs in callback, but when I try to use external PEAK CAN USB adapter I receive only "kStatus_FLEXCAN_ErrorStatus". All experts I asked, have no idea. The code I mainly copied from the SDK examples. Only my board works with 16 Mhz crystal (the board from the example works with 8 Mhz). Which timing setups are important for correct CAN communication? I added the to files generated by the clocks tool. Do anybody see a mistake in the clock setup? What could I check to find the mistake? Thanks for all your help or tips, Ulrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 17:46:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Implementing-CAN-communication-with-K22-flexcan-timing-wrong/m-p/872326#M1534</guid>
      <dc:creator>ulrich_schmidt</dc:creator>
      <dc:date>2019-03-06T17:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing CAN communication with K22 flexcan - timing wrong?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Implementing-CAN-communication-with-K22-flexcan-timing-wrong/m-p/872327#M1535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ulrich Schmidt,&lt;/P&gt;&lt;P&gt;The clock source of flexcan is OSCERCLK or Bus clock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlexCAN clock generation.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71057iFAA94E774E59B92D/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlexCAN clock generation.png" alt="FlexCAN clock generation.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clocking diagram.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71106i167A27EE81732EFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clocking diagram.png" alt="Clocking diagram.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That example using 8MHz OSCERCLK(from crystal).&lt;/P&gt;&lt;P&gt;Since the frequency of crystal has increased to 16MHz, have you you modify the values of flexcanConfig?&lt;/P&gt;&lt;P&gt;You can refer: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/495062"&gt;FlexCAN 800K Baud issue in KinetisK series&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="flexcanConfig.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70901i4FBD45F073C2D3D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="flexcanConfig.png" alt="flexcanConfig.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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>Mon, 11 Mar 2019 07:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Implementing-CAN-communication-with-K22-flexcan-timing-wrong/m-p/872327#M1535</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2019-03-11T07:32:19Z</dc:date>
    </item>
  </channel>
</rss>

