<?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 s32k CAN-FD Tx Error in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/987848#M5762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested CAN-FD with S32K146 EVM board and CANAnalyzer get data correctly.&lt;/P&gt;&lt;P&gt;But, crc error has occurred.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is my FLEX CAN0 setting for CAN-FD as below,&lt;/P&gt;&lt;P&gt;I tested it with 500 KHZ/1MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN0-&amp;gt;CBT = 0x802FB9EF; /* Configure nominal phase: 500 KHz bit time, 40 MHz Sclock */&lt;BR /&gt; CAN0-&amp;gt;FDCBT = 0x00730083; // 1MHz BTL:10, TSEG1: 5(4), TSEG2: 4(3), Prescaler: 8, sync jump width: 4(3)&lt;BR /&gt; CAN0-&amp;gt;FDCTRL = 0x80031400;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CANAnalyzer setting as follows,&lt;/P&gt;&lt;P&gt;Sample point: 60, BTL Cycle: 10, TSEG1: 5, TSEG2: 4, Prescaler: 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx has error issue. While, Rx seems to work well(CANAnalyzer sends a data, EVM seems to receive it correctly).&lt;/P&gt;&lt;P&gt;Please let me know whether the setting is correct.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Nov 2019 08:27:50 GMT</pubDate>
    <dc:creator>soonhwanjung</dc:creator>
    <dc:date>2019-11-29T08:27:50Z</dc:date>
    <item>
      <title>s32k CAN-FD Tx Error</title>
      <link>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/987848#M5762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested CAN-FD with S32K146 EVM board and CANAnalyzer get data correctly.&lt;/P&gt;&lt;P&gt;But, crc error has occurred.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is my FLEX CAN0 setting for CAN-FD as below,&lt;/P&gt;&lt;P&gt;I tested it with 500 KHZ/1MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN0-&amp;gt;CBT = 0x802FB9EF; /* Configure nominal phase: 500 KHz bit time, 40 MHz Sclock */&lt;BR /&gt; CAN0-&amp;gt;FDCBT = 0x00730083; // 1MHz BTL:10, TSEG1: 5(4), TSEG2: 4(3), Prescaler: 8, sync jump width: 4(3)&lt;BR /&gt; CAN0-&amp;gt;FDCTRL = 0x80031400;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CANAnalyzer setting as follows,&lt;/P&gt;&lt;P&gt;Sample point: 60, BTL Cycle: 10, TSEG1: 5, TSEG2: 4, Prescaler: 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx has error issue. While, Rx seems to work well(CANAnalyzer sends a data, EVM seems to receive it correctly).&lt;/P&gt;&lt;P&gt;Please let me know whether the setting is correct.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 08:27:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/987848#M5762</guid>
      <dc:creator>soonhwanjung</dc:creator>
      <dc:date>2019-11-29T08:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: s32k CAN-FD Tx Error</title>
      <link>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/987849#M5763</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;CAN bit timing looks correct. you did not mentioned bit timing setting on CAN tool for nominal phase, but I guess it will be fine.&lt;/P&gt;&lt;P&gt;What message is transmitted? Are all bits in the MB properly set (for example SRR=1 for extended ID)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 10:50:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/987849#M5763</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2019-12-03T10:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: s32k CAN-FD Tx Error</title>
      <link>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/987850#M5764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is Rx message which CAN tool received as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CANFD_Tx_log.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95562iE3C6FF1DA66E247A/image-size/large?v=v2&amp;amp;px=999" role="button" title="CANFD_Tx_log.png" alt="CANFD_Tx_log.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Nominal phase configuration as follows,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sample point: 70, BTL Cycle: 80, TSEG1: 55, TSEG2: 24, Prescaler: 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I do not know whether the configuration correct.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For information, I am testing CAN FD with FlexCAN_FD_s32k144 (no changes except header for S32K146).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Soon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 08:08:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/987850#M5764</guid>
      <dc:creator>soonhwanjung</dc:creator>
      <dc:date>2019-12-05T08:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: s32k CAN-FD Tx Error</title>
      <link>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/987851#M5765</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;- you should have same sample point setting on MCU and CANtool, for both nominal and data phases. You have 80%&amp;nbsp; for MCU and 70% for CAN tool. Try to modify it on CAN tool.&lt;/P&gt;&lt;P&gt;- it is recommended to have the same prescaler for both nominal and data phases. So you can try to use for example below setting&lt;/P&gt;&lt;P&gt;CANx_CBT = 0x808721A7;&amp;nbsp; // bitrate=500kbps, CPI clk=80 MHz; Prescaler= 5, PROPSEG=9, PSEG1=14, PSEG2=8, RJW=8, smp=75%&lt;/P&gt;&lt;P&gt;CANx_FDCBT = 0x004310C3;&amp;nbsp; // bitrateFD=1000kbps, CPI clk=80 MHz; fPrescaler= 5, fPROPSEG=4, fPSEG1=7, fPSEG2=4, fRJW=4, smp=75%&lt;/P&gt;&lt;P&gt;Again set the same sample point on CAN tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 10:17:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/987851#M5765</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2019-12-05T10:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: s32k CAN-FD Tx Error</title>
      <link>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/1268858#M10689</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;to use extended CAN ID, I have done a modification in flexcan_hw_access.c:&lt;/P&gt;&lt;P&gt;in function&amp;nbsp;FLEXCAN_SetTxMsgBuff :&lt;/P&gt;&lt;P&gt;Original:&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Clear SRR bit */&lt;BR /&gt;flexcan_mb_config &amp;amp;= ~CAN_CS_SRR_MASK;&lt;/P&gt;&lt;P&gt;After my modification:&lt;/P&gt;&lt;P&gt;flexcan_mb_config |= CAN_CS_SRR_MASK;&lt;/P&gt;&lt;P&gt;It's correct?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 11:38:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k-CAN-FD-Tx-Error/m-p/1268858#M10689</guid>
      <dc:creator>francescovico</dc:creator>
      <dc:date>2021-04-27T11:38:14Z</dc:date>
    </item>
  </channel>
</rss>

