<?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 Looking for CAN Protocol Reference Project for S32K148 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2146226#M51585</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm currently working on the CAN protocol using the S32K148 microcontroller. I'm looking for a basic reference project to help me get started, especially something beyond the default loopback example.&lt;/P&gt;&lt;P&gt;Unfortunately, I couldn't find a suitable example in the official SDK or example projects — only the loopback demo is available.&lt;/P&gt;&lt;P&gt;If anyone has a working CAN communication project (Tx/Rx using real CAN nodes or transceivers) for the S32K148, I’d really appreciate it if you could share or point me to one.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;M.J.David&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Aug 2025 13:36:53 GMT</pubDate>
    <dc:creator>Joseph_David</dc:creator>
    <dc:date>2025-08-04T13:36:53Z</dc:date>
    <item>
      <title>Looking for CAN Protocol Reference Project for S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2146226#M51585</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm currently working on the CAN protocol using the S32K148 microcontroller. I'm looking for a basic reference project to help me get started, especially something beyond the default loopback example.&lt;/P&gt;&lt;P&gt;Unfortunately, I couldn't find a suitable example in the official SDK or example projects — only the loopback demo is available.&lt;/P&gt;&lt;P&gt;If anyone has a working CAN communication project (Tx/Rx using real CAN nodes or transceivers) for the S32K148, I’d really appreciate it if you could share or point me to one.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;M.J.David&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 13:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2146226#M51585</guid>
      <dc:creator>Joseph_David</dc:creator>
      <dc:date>2025-08-04T13:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for CAN Protocol Reference Project for S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2146362#M51587</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249972"&gt;@Joseph_David&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Since the CAN transceiver for the S32K148-EVB does not need any special initialization, you can do some changes to the RTD example for it to work in normal operation:&lt;/P&gt;
&lt;P&gt;1. Firstly, enable the "Pins" component and initialize the CAN0 pins. (By default, PTE4 and PTE5):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_83766b.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350840i98DE2A6023DAB5FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_83766b.png" alt="Snag_83766b.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You also need to change the Pins' functional group name from "BOARD_InitPins" to "PortContainer_0_BOARD_InitPeripherals".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_86e62e.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350841iF1713E6851122013/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_86e62e.png" alt="Snag_86e62e.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;In Peripherals, change the FlexCAN operation mode from "Loopback" to "Normal mode or user mode":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_94ec34.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350849i81FF0C42F687E701/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_94ec34.png" alt="Snag_94ec34.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;3. Add in "Drivers" the "Port_Ip" component to the project, and inside it, define both CAN0_RX/TX pins (PCR 132 &amp;amp; 133):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_8d4623.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350846iCABDAFE2E57C93E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_8d4623.png" alt="Snag_8d4623.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_8a2d4a.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350845iB9693FE62354B9E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_8a2d4a.png" alt="Snag_8a2d4a.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4. Finally, in the main.c code, add the&amp;nbsp;&lt;SPAN&gt;Port_Ci_Port_Ip.h header, and initialize the pins with the following line:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;Port_Ci_Port_Ip_Init(NUM_OF_CONFIGURED_PINS_PortContainer_0_BOARD_InitPeripherals, g_pin_mux_InitConfigArr_PortContainer_0_BOARD_InitPeripherals);
&lt;/LI-CODE&gt;
&lt;P&gt;You can connect a CAN Analyzer, such as the PCAN-USB to header &lt;STRONG&gt;J11&lt;/STRONG&gt;, or simply add another EVB as a secondary node, and the example code will transmit 10 messages, as defined by the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;FLEXCAN_NUMBER_OF_MSG&lt;/STRONG&gt; definition:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_912605.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350847iD8B86B139327AD04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_912605.png" alt="Snag_912605.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 18:46:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2146362#M51587</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-08-04T18:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for CAN Protocol Reference Project for S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2146573#M51600</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200831"&gt;@Julián_AragónM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am looking for the Can_43_FLEXCAN and Canlf. I have attached one photo for reference.&amp;nbsp; If you have anything related to it let me know.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joseph_David_0-1754371620448.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350891i5DBBE664B28F5C8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joseph_David_0-1754371620448.png" alt="Joseph_David_0-1754371620448.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 05:28:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2146573#M51600</guid>
      <dc:creator>Joseph_David</dc:creator>
      <dc:date>2025-08-05T05:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for CAN Protocol Reference Project for S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2147793#M51647</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249972"&gt;@Joseph_David&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;You can do the same steps I've shared but in the MCAL layer. Add the Port component and initialize both PTE4 &amp;amp; PTE5 and disable Can Loop Back Mode in the CanController container.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_a4e3ca.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/351218i5289B820064B5E80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_a4e3ca.png" alt="Snag_a4e3ca.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 18:13:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2147793#M51647</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-08-06T18:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for CAN Protocol Reference Project for S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2148078#M51659</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200831"&gt;@Julián_AragónM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I have configurations in the MCAL Layer according to my pin configurations. I have disabled the loopback mode. I am getting bus synchronization issue. I am attaching the screen shots for reference. Once look into it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joseph_David_0-1754546074846.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/351283i217271A29A7032A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joseph_David_0-1754546074846.png" alt="Joseph_David_0-1754546074846.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joseph_David_1-1754546099045.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/351284iE80D7C694E0BB650/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joseph_David_1-1754546099045.png" alt="Joseph_David_1-1754546099045.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joseph_David_2-1754546127625.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/351285i7707070CC8CAE9B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joseph_David_2-1754546127625.png" alt="Joseph_David_2-1754546127625.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joseph_David_3-1754546204913.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/351286iE0E432FE89EAB3C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joseph_David_3-1754546204913.png" alt="Joseph_David_3-1754546204913.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joseph_David_4-1754546226044.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/351287i31F32190AC6FABDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joseph_David_4-1754546226044.png" alt="Joseph_David_4-1754546226044.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 05:57:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2148078#M51659</guid>
      <dc:creator>Joseph_David</dc:creator>
      <dc:date>2025-08-07T05:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for CAN Protocol Reference Project for S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2149417#M51711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249972"&gt;@Joseph_David&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Simply configuring the pins and disabling loopback should work. Also add the port component and initialize them. I've attached the project so you can test it:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_15dbddf.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/351630i620E8B26688F8986/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_15dbddf.png" alt="Snag_15dbddf.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 21:58:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Looking-for-CAN-Protocol-Reference-Project-for-S32K148/m-p/2149417#M51711</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-08-08T21:58:17Z</dc:date>
    </item>
  </channel>
</rss>

