<?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 not send in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835374#M1065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I change the following to communicate to another board with can because it has this configuration in KDS 3.2.0. I changed this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;config-&amp;gt;timingConfig.phaseSeg1 = 3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;config-&amp;gt;timingConfig.phaseSeg2 = 4;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;config-&amp;gt;timingConfig.propSeg = 8;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;config-&amp;gt;timingConfig.rJumpwidth = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and the time quanta to 16.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anybody can help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FLEXCAN_GetDefaultConfig(flexcan_config_t *config)&lt;BR /&gt;{&lt;BR /&gt; /* Assertion. */&lt;BR /&gt; assert(config);&lt;/P&gt;&lt;P&gt;/* Initialize FlexCAN Module config struct with default value. */&lt;BR /&gt;#if (!defined(FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE)) || !FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE&lt;BR /&gt; config-&amp;gt;clkSrc = kFLEXCAN_ClkSrcOsc;&lt;BR /&gt;#endif /* FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE */&lt;BR /&gt; config-&amp;gt;baudRate = 250000; //1000000U;&lt;BR /&gt;#if (defined(FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE) &amp;amp;&amp;amp; FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE)&lt;BR /&gt; config-&amp;gt;baudRateFD = 250000; //1000000U;&lt;BR /&gt;#endif&lt;BR /&gt; config-&amp;gt;maxMbNum = 16;&lt;BR /&gt; config-&amp;gt;enableLoopBack = false;&lt;BR /&gt; config-&amp;gt;enableSelfWakeup = false;&lt;BR /&gt; config-&amp;gt;enableIndividMask = false;&lt;BR /&gt;#if (defined(FSL_FEATURE_FLEXCAN_HAS_DOZE_MODE_SUPPORT) &amp;amp;&amp;amp; FSL_FEATURE_FLEXCAN_HAS_DOZE_MODE_SUPPORT)&lt;BR /&gt; config-&amp;gt;enableDoze = false;&lt;BR /&gt;#endif&lt;BR /&gt; /* Default protocol timing configuration, time quantum is 16. */&lt;BR /&gt; config-&amp;gt;timingConfig.phaseSeg1 = 3;&lt;BR /&gt; config-&amp;gt;timingConfig.phaseSeg2 = 4;&lt;BR /&gt; config-&amp;gt;timingConfig.propSeg = 8;&lt;BR /&gt; config-&amp;gt;timingConfig.rJumpwidth = 1;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2018 16:43:36 GMT</pubDate>
    <dc:creator>avppoian</dc:creator>
    <dc:date>2018-10-01T16:43:36Z</dc:date>
    <item>
      <title>CAN not send</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835370#M1061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the examples of twrk21f120m_flexcan_interrupt_transfer. I used two boards and communicate ok, but when I have other speed 250000Kbps and propagation segment 8 and time segment 1 = 3 and time segment 2 = 4 and resync jump width = 1 and time quanta per bit = 16. I send data but stay on while(!txcomplete). This is my application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 17:42:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835370#M1061</guid>
      <dc:creator>avppoian</dc:creator>
      <dc:date>2018-09-17T17:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: CAN not send</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835371#M1062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;Alexandre V.D.P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just modify the flexcanConfig.baudRate = 250000U; &lt;BR /&gt;The Node A of twrk21f120m_flexcan_interrupt_transfer seems able to send the first CAN message.&lt;BR /&gt;I have only one TWR-K21F120M board at the moment, so test it with CAN analyzer. Please make sure that both tower board was flashed with the newer baudrate program.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="twrk21f120m_flexcan_interrupt_transfer.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69387i240EAE145EF98559/image-size/large?v=v2&amp;amp;px=999" role="button" title="twrk21f120m_flexcan_interrupt_transfer.png" alt="twrk21f120m_flexcan_interrupt_transfer.png" /&gt;&lt;/span&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>Fri, 21 Sep 2018 02:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835371#M1062</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-09-21T02:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: CAN not send</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835372#M1063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not work yet. I did all the configurations. I can see on osciloscope but it stops on:&lt;/P&gt;&lt;P&gt;void Envia_CAN(uint32_t identificador, uint8_t message)&lt;BR /&gt;{&lt;BR /&gt; frame.id = txIdentifier; //FLEXCAN_ID_STD(txIdentifier);&lt;BR /&gt; frame.format = kFLEXCAN_FrameFormatStandard;&lt;BR /&gt; frame.type = kFLEXCAN_FrameTypeData;&lt;BR /&gt; frame.length = 8;&lt;BR /&gt; txXfer.mbIdx = TX_MESSAGE_BUFFER_NUM;&lt;BR /&gt;#if (defined(FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE) &amp;amp;&amp;amp; FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE)&lt;BR /&gt; txXfer.framefd = &amp;amp;frame;&lt;BR /&gt; FLEXCAN_TransferFDSendNonBlocking(EXAMPLE_CAN, &amp;amp;flexcanHandle, &amp;amp;txXfer);&lt;BR /&gt;#else&lt;BR /&gt; txXfer.frame = &amp;amp;frame;&lt;BR /&gt; FLEXCAN_TransferSendNonBlocking(EXAMPLE_CAN, &amp;amp;flexcanHandle, &amp;amp;txXfer);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;while (!txComplete)&lt;BR /&gt; {&lt;BR /&gt; };&lt;BR /&gt; txComplete = false;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 19:20:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835372#M1063</guid>
      <dc:creator>avppoian</dc:creator>
      <dc:date>2018-09-28T19:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: CAN not send</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835373#M1064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I watch on the oscilloscope and signal goes out by CAN_TX but the txcomplete never goes to one. What is happen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 14:52:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835373#M1064</guid>
      <dc:creator>avppoian</dc:creator>
      <dc:date>2018-10-01T14:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: CAN not send</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835374#M1065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I change the following to communicate to another board with can because it has this configuration in KDS 3.2.0. I changed this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;config-&amp;gt;timingConfig.phaseSeg1 = 3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;config-&amp;gt;timingConfig.phaseSeg2 = 4;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;config-&amp;gt;timingConfig.propSeg = 8;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;config-&amp;gt;timingConfig.rJumpwidth = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and the time quanta to 16.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anybody can help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FLEXCAN_GetDefaultConfig(flexcan_config_t *config)&lt;BR /&gt;{&lt;BR /&gt; /* Assertion. */&lt;BR /&gt; assert(config);&lt;/P&gt;&lt;P&gt;/* Initialize FlexCAN Module config struct with default value. */&lt;BR /&gt;#if (!defined(FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE)) || !FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE&lt;BR /&gt; config-&amp;gt;clkSrc = kFLEXCAN_ClkSrcOsc;&lt;BR /&gt;#endif /* FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE */&lt;BR /&gt; config-&amp;gt;baudRate = 250000; //1000000U;&lt;BR /&gt;#if (defined(FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE) &amp;amp;&amp;amp; FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE)&lt;BR /&gt; config-&amp;gt;baudRateFD = 250000; //1000000U;&lt;BR /&gt;#endif&lt;BR /&gt; config-&amp;gt;maxMbNum = 16;&lt;BR /&gt; config-&amp;gt;enableLoopBack = false;&lt;BR /&gt; config-&amp;gt;enableSelfWakeup = false;&lt;BR /&gt; config-&amp;gt;enableIndividMask = false;&lt;BR /&gt;#if (defined(FSL_FEATURE_FLEXCAN_HAS_DOZE_MODE_SUPPORT) &amp;amp;&amp;amp; FSL_FEATURE_FLEXCAN_HAS_DOZE_MODE_SUPPORT)&lt;BR /&gt; config-&amp;gt;enableDoze = false;&lt;BR /&gt;#endif&lt;BR /&gt; /* Default protocol timing configuration, time quantum is 16. */&lt;BR /&gt; config-&amp;gt;timingConfig.phaseSeg1 = 3;&lt;BR /&gt; config-&amp;gt;timingConfig.phaseSeg2 = 4;&lt;BR /&gt; config-&amp;gt;timingConfig.propSeg = 8;&lt;BR /&gt; config-&amp;gt;timingConfig.rJumpwidth = 1;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 16:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/CAN-not-send/m-p/835374#M1065</guid>
      <dc:creator>avppoian</dc:creator>
      <dc:date>2018-10-01T16:43:36Z</dc:date>
    </item>
  </channel>
</rss>

