<?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 S32K148 - Change CAN FD baudrate in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K148-Change-CAN-FD-baudrate/m-p/1578164#M19858</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the&amp;nbsp;&lt;STRONG&gt;flexcan_encrypted_s32k148 &lt;/STRONG&gt;from&amp;nbsp;&lt;STRONG&gt;S32_SDK_S32K1xx_RTM_4.0.3&amp;nbsp;&lt;/STRONG&gt;for the S32K148EVB and I need to send CAN messages at a baudrate of 1000 kbps.&lt;/P&gt;&lt;P&gt;I went through these old forums to help with my case and here is my observation,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5xxx-S32Kxx-CAN-CAN-FD-bit-timing-calculation/ta-p/1119319" target="_blank"&gt;MPC5xxx/S32Kxx: CAN / CAN FD bit timing calculatio... - NXP Community&lt;/A&gt;&amp;nbsp;- fprescalar=2, fpropseg=5, fpseg1=7, fpseg2=7, frjw=7 after selecting the baudrate FD to 1000 (Cell G5)&lt;/LI&gt;&lt;/OL&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chandra13_1-1672950882378.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206247iA58CA632B44C9FD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chandra13_1-1672950882378.png" alt="Chandra13_1-1672950882378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;2.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32-SDK/S32-Flexcan-baud-rate-is-equal-to-1000K-send-failed/m-p/1356733" target="_blank"&gt;Solved: S32 Flexcan baud rate is equal to 1000K, send fai... - NXP Community&lt;/A&gt;&amp;nbsp;- fprescalar=3, fpropseg=4, fpseg1=1, fpseg2=1, frjw=3&lt;/P&gt;&lt;P&gt;I tried both the settings into my code, but my Vector CAN still receives them at 500 kbps only. If I change the settings in canoe to 1000, it fails.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chandra13_2-1672951180393.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206248iBD6B7D18CCB3F5A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chandra13_2-1672951180393.png" alt="Chandra13_2-1672951180393.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a variable of type &lt;STRONG&gt;flexcan_time_segment_t&lt;/STRONG&gt; and used the &lt;STRONG&gt;FLEXCAN_DRV_SetBitrateCbt&lt;/STRONG&gt; function to set the baud rate.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chandra13_3-1672951447172.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206249i9ADF0456E2024434/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chandra13_3-1672951447172.png" alt="Chandra13_3-1672951447172.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2023 20:46:23 GMT</pubDate>
    <dc:creator>Chandra13</dc:creator>
    <dc:date>2023-01-05T20:46:23Z</dc:date>
    <item>
      <title>S32K148 - Change CAN FD baudrate</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-Change-CAN-FD-baudrate/m-p/1578164#M19858</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the&amp;nbsp;&lt;STRONG&gt;flexcan_encrypted_s32k148 &lt;/STRONG&gt;from&amp;nbsp;&lt;STRONG&gt;S32_SDK_S32K1xx_RTM_4.0.3&amp;nbsp;&lt;/STRONG&gt;for the S32K148EVB and I need to send CAN messages at a baudrate of 1000 kbps.&lt;/P&gt;&lt;P&gt;I went through these old forums to help with my case and here is my observation,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5xxx-S32Kxx-CAN-CAN-FD-bit-timing-calculation/ta-p/1119319" target="_blank"&gt;MPC5xxx/S32Kxx: CAN / CAN FD bit timing calculatio... - NXP Community&lt;/A&gt;&amp;nbsp;- fprescalar=2, fpropseg=5, fpseg1=7, fpseg2=7, frjw=7 after selecting the baudrate FD to 1000 (Cell G5)&lt;/LI&gt;&lt;/OL&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chandra13_1-1672950882378.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206247iA58CA632B44C9FD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chandra13_1-1672950882378.png" alt="Chandra13_1-1672950882378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;2.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32-SDK/S32-Flexcan-baud-rate-is-equal-to-1000K-send-failed/m-p/1356733" target="_blank"&gt;Solved: S32 Flexcan baud rate is equal to 1000K, send fai... - NXP Community&lt;/A&gt;&amp;nbsp;- fprescalar=3, fpropseg=4, fpseg1=1, fpseg2=1, frjw=3&lt;/P&gt;&lt;P&gt;I tried both the settings into my code, but my Vector CAN still receives them at 500 kbps only. If I change the settings in canoe to 1000, it fails.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chandra13_2-1672951180393.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206248iBD6B7D18CCB3F5A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chandra13_2-1672951180393.png" alt="Chandra13_2-1672951180393.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a variable of type &lt;STRONG&gt;flexcan_time_segment_t&lt;/STRONG&gt; and used the &lt;STRONG&gt;FLEXCAN_DRV_SetBitrateCbt&lt;/STRONG&gt; function to set the baud rate.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chandra13_3-1672951447172.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206249i9ADF0456E2024434/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chandra13_3-1672951447172.png" alt="Chandra13_3-1672951447172.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 20:46:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-Change-CAN-FD-baudrate/m-p/1578164#M19858</guid>
      <dc:creator>Chandra13</dc:creator>
      <dc:date>2023-01-05T20:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 - Change CAN FD baudrate</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-Change-CAN-FD-baudrate/m-p/1578236#M19861</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Chandra13,&lt;/P&gt;
&lt;P&gt;Have you test the CAN_PAL example? Change the &lt;STRONG&gt;Bitrate&lt;/STRONG&gt; of &lt;STRONG&gt;Arbitration Phase&lt;/STRONG&gt; and &lt;STRONG&gt;Data Phase&lt;/STRONG&gt; and then click&lt;STRONG&gt; Update Code&lt;/STRONG&gt;. The example select &lt;STRONG&gt;Oscillator clock&lt;/STRONG&gt;(8Mhz) as PE clock source, you can select &lt;STRONG&gt;Peripheral clock&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="can_pal_s32k148 Peripherals tool.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206264iCCDBD28A977AA1A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="can_pal_s32k148 Peripherals tool.png" alt="can_pal_s32k148 Peripherals tool.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CAN_PAL S32K148EVB RTM4.0.3.png" style="width: 573px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206263i281B3E6DCDBEF71D/image-size/large?v=v2&amp;amp;px=999" role="button" title="CAN_PAL S32K148EVB RTM4.0.3.png" alt="CAN_PAL S32K148EVB RTM4.0.3.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 01:43:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-Change-CAN-FD-baudrate/m-p/1578236#M19861</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-01-06T01:43:10Z</dc:date>
    </item>
  </channel>
</rss>

