<?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 baurate error in S32K</title>
    <link>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184551#M53449</link>
    <description>Thanks for your answer. So back to my first question, I wonder that what's wrong with my project and config that CAN module can not reach at 1 Mbs? In the project, I reused the example code "lwip_baremetal_s32k344" and added some more peripherals. I don't know if it is the reason? Because I also tried with I2C and the problem is similar to CAN "Baurate of I2C I set is 400 Kbs but it just worked in 100 Kbs". I think I have some conflicts in the project but I can not find. If your project works well, please share with me!!!</description>
    <pubDate>Mon, 13 Oct 2025 06:22:03 GMT</pubDate>
    <dc:creator>Andrew101</dc:creator>
    <dc:date>2025-10-13T06:22:03Z</dc:date>
    <item>
      <title>CAN baurate error</title>
      <link>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184167#M53421</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a problem with baurate in classic CAN in S32K3. I reuse an example code "lwip_baremetal_s32k344" and add FlexCAN. Although I configed in clock diagram tab, FlexCAN tab and the S32DS also return the approriate value is&lt;STRONG&gt; 1 MHz&lt;/STRONG&gt; (see the pictures below for more details), when I measured CAN_TX by logic analyzer, I see the baurate was just around &lt;STRONG&gt;400Khz.&lt;/STRONG&gt; Does anyone have the same problem with me? Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_0-1760150358678.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360320i6497536DF02B2567/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_0-1760150358678.png" alt="khanhhuy_0-1760150358678.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_1-1760150382392.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360321iD39F4BF4189CE184/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_1-1760150382392.png" alt="khanhhuy_1-1760150382392.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="khanhhuy_2-1760150458852.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360323iA41550A9107789DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_2-1760150458852.png" alt="khanhhuy_2-1760150458852.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_3-1760150484430.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360324iA2EF859B6B87C5EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_3-1760150484430.png" alt="khanhhuy_3-1760150484430.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_4-1760150505078.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360325iC318C288248269A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_4-1760150505078.png" alt="khanhhuy_4-1760150505078.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_5-1760150580089.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360326i0D8BF27B576519C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_5-1760150580089.png" alt="khanhhuy_5-1760150580089.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Oct 2025 02:43:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184167#M53421</guid>
      <dc:creator>Andrew101</dc:creator>
      <dc:date>2025-10-11T02:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: CAN baurate error</title>
      <link>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184279#M53430</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Andrew101&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I don't see problem with your flexcan settings, could you please share your test picture and your project so that I can take time to reproduce your issues.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Oct 2025 09:52:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184279#M53430</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-10-11T09:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: CAN baurate error</title>
      <link>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184292#M53432</link>
      <description>&lt;P&gt;Of course,&lt;BR /&gt;Let me tell you again my problem. As you can see, in the configuration, the baurate is 1 Mbs, but when I measure on logic analyzer , the signal is just around 400 Kbs. Here are the picture and the whole project. I used on S32K344 EVB SCH 53148 Rev B board and s32ds 3.6.3, RTD 6.0.0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Andrew101_0-1760177024908.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360363iFB38AFF082031138/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Andrew101_0-1760177024908.png" alt="Andrew101_0-1760177024908.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="Andrew101_1-1760177276714.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360365i6F07BEEAD30FE7AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Andrew101_1-1760177276714.png" alt="Andrew101_1-1760177276714.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Andrew101_2-1760177292627.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360366iCEE80613BD9F4745/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Andrew101_2-1760177292627.png" alt="Andrew101_2-1760177292627.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Oct 2025 10:11:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184292#M53432</guid>
      <dc:creator>Andrew101</dc:creator>
      <dc:date>2025-10-11T10:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: CAN baurate error</title>
      <link>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184473#M53438</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@Andrew101" target="_blank"&gt;Hi@&lt;SPAN&gt;Andrew101&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I think your measurement method is wrong.&lt;/P&gt;
&lt;P&gt;You can use an oscilloscope to measure the minimum pulse width to calculate the bit rate.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1760324467302.png" style="width: 590px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360391i8B71675DF2009E97/image-dimensions/590x367?v=v2" width="590" height="367" role="button" title="Senlent_0-1760324467302.png" alt="Senlent_0-1760324467302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In your configuration:&lt;/P&gt;
&lt;P&gt;Tq = 5 / 80mhz = 62.5ns&lt;/P&gt;
&lt;P&gt;CAN bit time = (1 + 8+ 5 + 2) * 62.5 = 1000ns&lt;/P&gt;
&lt;P&gt;Bit rate = 1 / 1000ns = 1000K&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 03:11:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184473#M53438</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-10-13T03:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: CAN baurate error</title>
      <link>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184483#M53441</link>
      <description>&lt;P&gt;Can you explain more details, please? I don't really understand. The configuration in the project I gave you is for 1000K. But the logic analyzer just recorded 400K. Additionally, when I debugged deeply into register, I saw a register CTRL1 with the field "PRESDIV" is set 4 but not 0. I don't know if it is the reason?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 03:38:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184483#M53441</guid>
      <dc:creator>Andrew101</dc:creator>
      <dc:date>2025-10-13T03:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: CAN baurate error</title>
      <link>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184513#M53444</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Andrew101&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The 400k you are currently displaying is not necessarily a single bit width, it may be multiple bits wide.&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;when I debugged deeply into register, I saw a register CTRL1 with the field "PRESDIV" is set 4 but not 0&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;In your configuration, the&amp;nbsp;"Prescaler division factor is 5", so the PRESDIV should be 5-1 = 4, so it's correct.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 05:47:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184513#M53444</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-10-13T05:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: CAN baurate error</title>
      <link>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184551#M53449</link>
      <description>Thanks for your answer. So back to my first question, I wonder that what's wrong with my project and config that CAN module can not reach at 1 Mbs? In the project, I reused the example code "lwip_baremetal_s32k344" and added some more peripherals. I don't know if it is the reason? Because I also tried with I2C and the problem is similar to CAN "Baurate of I2C I set is 400 Kbs but it just worked in 100 Kbs". I think I have some conflicts in the project but I can not find. If your project works well, please share with me!!!</description>
      <pubDate>Mon, 13 Oct 2025 06:22:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184551#M53449</guid>
      <dc:creator>Andrew101</dc:creator>
      <dc:date>2025-10-13T06:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: CAN baurate error</title>
      <link>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184647#M53457</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Andrew101&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;1. Regarding the CAN speed, as I mentioned, the CAN module configuration is correct, at 1M. You can check the ACK bit width; theoretically, it should be 1us. If it's not, check your MCU module.&lt;BR /&gt;(I can't run your code properly; I don't know why you're mixing MCAL and Drivers.)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/RTD600-MCAL-amp-IP-S32K3X4EVB-T172-FlexCAN-Example-Interrupt/ta-p/2142069" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/RTD600-MCAL-amp-IP-S32K3X4EVB-T172-FlexCAN-Example-Interrupt/ta-p/2142069&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2. Regarding the LPI2C speed, your "Clock_Ip_ReferencePoints" configuration is incorrect; the clock is not the I2C module's clock.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 08:19:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-baurate-error/m-p/2184647#M53457</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-10-13T08:19:13Z</dc:date>
    </item>
  </channel>
</rss>

