<?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: S32G2 Linux LLCE debugfs interface in S32G</title>
    <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2048912#M12705</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241501"&gt;@carlos_o&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;I'm not getting an error per sé, the llececan interface just stops receiving packets after I've created the filter. The script I've attached runs fine without any errors, but then the output of&lt;BR /&gt;"candump any,0:0,#FFFFFFFF" gives no output, whereas before running the script it was printing whatever was on the bus.&lt;BR /&gt;I specifically checked for network errors in `/sys/class/net/llcecan10/statistics/`, but there are none.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2025 08:30:01 GMT</pubDate>
    <dc:creator>m_bez</dc:creator>
    <dc:date>2025-02-21T08:30:01Z</dc:date>
    <item>
      <title>S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2037201#M12504</link>
      <description>&lt;P&gt;I'm trying to set up LLCE filters to route some messages on can10 to can11, and route other messages to the host.&lt;/P&gt;&lt;P&gt;First, I would like to ask where the documentation for the debugfs interface is. There is an example in the S32G2_LinuxBSP_42.0_User_Manual.pdf, and modifying this allows the creation of filters between interfaces. However, I'm not sure how to create a filter that uses a mask or ID to send some traffic to the Linux host.&lt;/P&gt;&lt;P&gt;The file /sys/kernel/debug/llce_can_core/can_destinations/add/README refers to the LLCE Firmware User Guide. Where can I find this document, or perhaps some more examples of LLCE filter configurations?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 12:40:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2037201#M12504</guid>
      <dc:creator>m_bez</dc:creator>
      <dc:date>2025-02-03T12:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2037978#M12514</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246314"&gt;@m_bez&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;When you install the LLCE Driver + Firmware package, you can locate the LLCE Firmware User Guide at&lt;/P&gt;
&lt;P&gt;C:\NXP\S32G_LLCE_1_0_9\firmware\llce_interface\doc&lt;/P&gt;
&lt;P&gt;if you use the default install location.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 20:06:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2037978#M12514</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-02-04T20:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2038379#M12519</link>
      <description>Great, got it. Thanks! Will see if I can get the debugFS interface figured out from that.</description>
      <pubDate>Wed, 05 Feb 2025 08:05:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2038379#M12519</guid>
      <dc:creator>m_bez</dc:creator>
      <dc:date>2025-02-05T08:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2038800#M12522</link>
      <description>&lt;P&gt;Let me know if you have more questions.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 19:34:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2038800#M12522</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-02-05T19:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2039123#M12528</link>
      <description>&lt;P&gt;I've looked at the firmware user guide, but I can't see any reference to the debugfs interface. Specifically, I'm having trouble creating a filter that sends traffic to the host, based on a mask, without forwarding that traffic to a different interface. This should be possible, since such filters are the ones set up by default:&lt;BR /&gt;&lt;BR /&gt;```&lt;BR /&gt;oot@s32g274a-n4c0a53:~# cat /sys/kernel/debug/llce_can_core/can_filters/list&lt;BR /&gt;hw_ctrl status can_mask_id msg_id tag mb_count addr rx_intf entry mb_type | opt_auth opt_host&lt;BR /&gt;logging opt_custom can_dest&lt;BR /&gt;0 enabled 0x00000000 0x00000000 0x0000 0x0010 512 15 mask long |&lt;BR /&gt;1 enabled 0x00000000 0x00000000 0x0001 0x0010 513 14 mask long |&lt;BR /&gt;2 enabled 0x00000000 0x00000000 0x0002 0x0010 514 13 mask long |&lt;BR /&gt;3 enabled 0x00000000 0x00000000 0x0003 0x0010 515 12 mask long |&lt;BR /&gt;4 enabled 0x00000000 0x00000000 0x0004 0x0010 516 11 mask long |&lt;BR /&gt;5 enabled 0x00000000 0x00000000 0x0005 0x0010 517 10 mask long |&lt;BR /&gt;6 enabled 0x00000000 0x00000000 0x0006 0x0010 518 9 mask long |&lt;BR /&gt;7 enabled 0x00000000 0x00000000 0x0007 0x0010 519 8 mask long |&lt;BR /&gt;8 enabled 0x00000000 0x00000000 0x0008 0x0010 520 7 mask long |&lt;BR /&gt;9 enabled 0x00000000 0x00000000 0x0009 0x0010 521 6 mask long |&lt;BR /&gt;10 enabled 0x00000000 0x00000000 0x010a 0x0010 522 5 mask short |&lt;BR /&gt;11 enabled 0x00000000 0x00000000 0x010b 0x0010 523 4 mask short |&lt;BR /&gt;```&lt;BR /&gt;&lt;BR /&gt;But I need to create a filter similar to these, only with a mask other than 0x00000000&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 07:53:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2039123#M12528</guid>
      <dc:creator>m_bez</dc:creator>
      <dc:date>2025-02-06T07:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2039536#M12551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246314"&gt;@m_bez&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please refer to the chapter &lt;STRONG&gt;12.3.5.1 CAN2CAN demo&lt;/STRONG&gt; of the BSP User Manual.&lt;/P&gt;
&lt;P&gt;There is an example adding a filter with a custom msg_id.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-06 135518.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322795i4190090E42D5943B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-06 135518.png" alt="Screenshot 2025-02-06 135518.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;[Page 104, Linux BSP 42.0 User Manual for S32G2 platforms] &lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 19:56:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2039536#M12551</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-02-06T19:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2039806#M12562</link>
      <description>&lt;P&gt;Yes, this is the interface I'm having trouble with. I have some questions about that example&lt;/P&gt;&lt;P&gt;First, how do I set up the filter to communicate with the host linux system? How do I configure the lice_can_destination to not use a different CAN interface?&lt;/P&gt;&lt;P&gt;Second, if I were to use another channel to achieve the same, and I set opt_host to I, then the first message behaves as expected, but then no messages get forwarded, and I start getting bus errors after 16 messages&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 08:43:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2039806#M12562</guid>
      <dc:creator>m_bez</dc:creator>
      <dc:date>2025-02-07T08:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2040229#M12571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246314"&gt;@m_bez&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I found the following information used as example for this:&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;# llcecan link up&lt;BR /&gt;ip link set up llcecan14 type can bitrate 500000 dbitrate 5000000 fd on&lt;BR /&gt;ip link set up llcecan15 type can bitrate 500000 dbitrate 5000000 fd on&lt;/P&gt;
&lt;P&gt;# disable current basic filter&lt;BR /&gt;echo disabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/set_status/status&lt;BR /&gt;echo 512 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/set_status/addr&lt;BR /&gt;echo 1 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/set_status/execute&lt;BR /&gt;echo 513 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/set_status/addr&lt;BR /&gt;echo 1 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/set_status/execute&lt;/P&gt;
&lt;P&gt;# llcecan14 basic filter&lt;/P&gt;
&lt;P&gt;echo 0xFF &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/can_dest&lt;BR /&gt;echo 0x7F0 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/can_mask_id&lt;BR /&gt;echo mask &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/entry&lt;BR /&gt;echo 14 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/hw_ctrl&lt;BR /&gt;echo 0xe &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/tag&lt;BR /&gt;echo 0x10 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/mb_count&lt;BR /&gt;echo long &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/mb_type&lt;BR /&gt;echo 0x543 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/msg_id&lt;BR /&gt;echo enabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/status&lt;BR /&gt;echo disabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/opt_auth&lt;BR /&gt;echo disabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/opt_custom&lt;BR /&gt;echo disabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/opt_host&lt;BR /&gt;echo disabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/logging&lt;BR /&gt;echo 1 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/execute&lt;/P&gt;
&lt;P&gt;candump any,0:0,#FFFFFFFF &amp;gt;log &amp;amp;&lt;/P&gt;
&lt;P&gt;# accepted&lt;BR /&gt;cansend llcecan15 546#22335566&lt;/P&gt;
&lt;P&gt;#discarded&lt;BR /&gt;cansend llcecan15 556#22335566&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;About your first questions. Do you want the filter only to communicate with the host? or communicate with the host and simultaneously send it to another llce_can?&lt;/P&gt;
&lt;P&gt;Could you explain in more detail the behavior of your second question?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 23:33:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2040229#M12571</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-02-07T23:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2040773#M12583</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241501"&gt;@carlos_o&lt;/a&gt; , thanks for the help.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I found the following information used as example for this:&lt;BR /&gt;I'll work through the example, but it looks like OPT_HOST is disabled, and the previeous example you gave indicates that this disables host communication&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;Do you want the filter only to communicate with the host&lt;BR /&gt;Some Addresses need to be sent to the host&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;or communicate with the host and simultaneously send it to another llce_can?&lt;BR /&gt;All other traffic not sent to the host should be sent to another interface.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt; Could you explain in more detail the behavior of your second question?&lt;BR /&gt;The filter and host are set up as follows:&lt;BR /&gt;```&lt;BR /&gt;hw_ctrl status can_mask_id msg_id tag mb_count addr rx_intf entry mb_type | opt_auth opt_host logging opt_custom can_dest&lt;BR /&gt;10 disabled 0x00000000 0x00000000 0x0000 0x0010 524 5 mask short | disabled enabled disabled disabled 0&lt;BR /&gt;id routing_opts can_id_remap ch_list&lt;BR /&gt;0 0x00000000 0x00000000 11&lt;BR /&gt;```&lt;BR /&gt;If I send a single message to can10, it gets routed to can 11, as well as the host. Messages after that do not get routed. After I've sent 16 messages without one being delivered, the can interface on the host starts reporting a bus error every time I send a message.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 09:04:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2040773#M12583</guid>
      <dc:creator>m_bez</dc:creator>
      <dc:date>2025-02-10T09:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2041104#M12589</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246314"&gt;@m_bez&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The example only is for reference to how to configure the filters.&lt;/P&gt;
&lt;P&gt;Thanks for clarifying your goal with the filters, let me know the results you get and if it solves the problem with the bus error msg.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 17:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2041104#M12589</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-02-10T17:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2041501#M12600</link>
      <description>&lt;P&gt;&amp;gt; The example only is for reference&lt;BR /&gt;Tee example doesn't include the creation of destinations, does this still need to happen? or is destination 0xFF created by default?&lt;BR /&gt;&amp;gt;&amp;nbsp;let me know the results&lt;BR /&gt;The value of the mask_id (0x7F) doesn't make sense to me. How does it relate to the addresses being filtered? All other parameters in the example make sense to me, and are already how I configure the filters, but it has no host communication.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 07:31:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2041501#M12600</guid>
      <dc:creator>m_bez</dc:creator>
      <dc:date>2025-02-11T07:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2042745#M12624</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246314"&gt;@m_bez&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Q:&amp;nbsp;Tee example doesn't include the creation of destinations, does this still need to happen? or is destination 0xFF created by default?&lt;/P&gt;
&lt;P&gt;A: Yes, you still need to create a destination.&lt;/P&gt;
&lt;P&gt;Q:&amp;nbsp;The value of the mask_id (0x7F) doesn't make sense to me. How does it relate to the addresses being filtered? All other parameters in the example make sense to me, and are already how I configure the filters, but it has no host communication.&lt;/P&gt;
&lt;P&gt;A: This mask_id is only an example and work as if you put a mask id in a CAN communication to take some action when a msg arrive with some id that pass the mask.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, to enable the communication with the host you only need to set the opt_host config to "enable"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the subdirectories at the /sys/kernel/debug/llce_can_core/ have a README file that explain the possible configurations.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 16:28:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2042745#M12624</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-02-12T16:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2043210#M12632</link>
      <description>&lt;P&gt;Thanks for your response. However, setting opt_host to "enabled" causes unexpected behavior as described earlier. Specifically, when opt_host is enabled, the first message behaves as expected, but subsequent messages do not get forwarded, and after 16 messages, the CAN interface on the host starts reporting bus errors.&lt;/P&gt;&lt;P&gt;Could you provide more detailed guidance on how to configure the filter to communicate with the host without causing these issues?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 08:11:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2043210#M12632</guid>
      <dc:creator>m_bez</dc:creator>
      <dc:date>2025-02-13T08:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2043668#M12642</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246314"&gt;@m_bez&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Let me review with the internal team what can be the root causes of this issue. This may take a longer response time. I'll come ASAP with further information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 17:48:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2043668#M12642</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-02-13T17:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2045681#M12667</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246314"&gt;@m_bez&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems like the filter status of your filter is disable. Could you please enable it with "echo enabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/status"?&lt;/P&gt;
&lt;P&gt;Retry to send the data after that and let me know the results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 17:15:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2045681#M12667</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-02-17T17:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2046096#M12672</link>
      <description>&lt;P&gt;hey &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241501"&gt;@carlos_o&lt;/a&gt;, if I set the filter explicitly to enabled before executing, I get a permission error trying to write to the file&lt;BR /&gt;`/sys/kernel/debug/llce_can_core/can_filters/add/set_status: Permission denied`&lt;BR /&gt;If I list the filters after, they seem to be enumerated as enabled in any case&lt;BR /&gt;```&lt;BR /&gt;root@s32g274a-n4c0a53:~# cat /sys/kernel/debug/llce_can_core/can_filters/list&lt;BR /&gt;hw_ctrl status can_mask_id msg_id tag mb_count addr rx_intf entry mb_type | opt_auth opt_host&lt;BR /&gt;logging opt_custom can_dest&lt;BR /&gt;0 enabled 0x00000000 0x00000000 0x0000 0x0010 512 15 mask long |&lt;/P&gt;&lt;P&gt;1 enabled 0x00000000 0x00000000 0x0001 0x0010 513 14 mask long |&lt;/P&gt;&lt;P&gt;2 enabled 0x00000000 0x00000000 0x0002 0x0010 514 13 mask long |&lt;BR /&gt;3 enabled 0x00000000 0x00000000 0x0003 0x0010 515 12 mask long |&lt;BR /&gt;4 enabled 0x00000000 0x00000000 0x0004 0x0010 516 11 mask long |&lt;BR /&gt;5 enabled 0x00000000 0x00000000 0x0005 0x0010 517 10 mask long |&lt;BR /&gt;6 enabled 0x00000000 0x00000000 0x0006 0x0010 518 9 mask long |&lt;BR /&gt;7 enabled 0x00000000 0x00000000 0x0007 0x0010 519 8 mask long |&lt;BR /&gt;8 enabled 0x00000000 0x00000000 0x0008 0x0010 520 7 mask long |&lt;BR /&gt;9 enabled 0x00000000 0x00000000 0x0009 0x0010 521 6 mask long |&lt;BR /&gt;10 disabled 0x00000000 0x00000000 0x010a 0x0010 522 5 mask short |&lt;BR /&gt;11 disabled 0x00000000 0x00000000 0x010b 0x0010 523 4 mask short |&lt;BR /&gt;10 enabled 0x00000000 0x00000000 0x0000 0x0010 524 5 mask short | disabled enabled disabled disabled 0&lt;BR /&gt;11 enabled 0x00000000 0x00000000 0x0000 0x0010 525 4 mask short | disabled enabled disabled disabled 1&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Setting the status works, if I write, the address, "disabled" and execute into the respective files in `/sys/kernel/debug/llce_can_core/can_filters/set_status`, then the status visibly changes form 'enabled' to 'disabled' when I list the filters.&lt;/P&gt;&lt;P&gt;Enabling and disabling the filter doesn't seem to affect the behvior initially. It still only forwards a single message and reports bus errors after 16 messages. Once it starts reporting bus errors, disabling and enabling the filter doesn't make it forward a single message again. That only happens if I reboot and reconfigure the filter.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2046096#M12672</guid>
      <dc:creator>m_bez</dc:creator>
      <dc:date>2025-02-18T07:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2046110#M12673</link>
      <description>Some more info that might be of use, the errors that get generated increment the values in&lt;BR /&gt;/sys/class/net/llcecan10/statistics/rx_dropped&lt;BR /&gt;and&lt;BR /&gt;/sys/class/net/llcecan10/statistics/rx_errors&lt;BR /&gt;&lt;BR /&gt;For the two llcecan interfaces in question.</description>
      <pubDate>Tue, 18 Feb 2025 08:07:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2046110#M12673</guid>
      <dc:creator>m_bez</dc:creator>
      <dc:date>2025-02-18T08:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2046581#M12681</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246314"&gt;@m_bez&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for sharing the details, I'm reviewing with the internal team the possibles root causes of this issue. We appreciate your patience.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 18:41:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2046581#M12681</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-02-18T18:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2047518#M12690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246314"&gt;@m_bez&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The Internal team shares the following example of the complete configuration of a filter:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;# llcecan link up
ip link set up llcecan14 type can bitrate 500000 dbitrate 5000000 fd on
ip link set up llcecan15 type can bitrate 500000 dbitrate 5000000 fd on

# disable current basic filter
echo disabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/set_status/status
echo 512 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/set_status/addr
echo 1 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/set_status/execute
echo 513 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/set_status/addr
echo 1 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/set_status/execute

# llcecan14 basic filte

echo 0xFF &amp;gt;  /sys/kernel/debug/llce_can_core/can_filters/add/can_dest
echo 0x7F0 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/can_mask_id
echo mask &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/entry
echo 14 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/hw_ctrl
echo 0xe &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/tag
echo 0x10 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/mb_count
echo long &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/mb_type
echo 0x540 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/msg_id
echo enabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/status
echo 1 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/execute&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;After executing the above command, a filter as shown below will be created.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_o_0-1739988050013.png" style="width: 584px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324800i2B609C0C93FE10D0/image-dimensions/584x40?v=v2" width="584" height="40" role="button" title="carlos_o_0-1739988050013.png" alt="carlos_o_0-1739988050013.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;# Create a destination to be used for LLCE CAN14→LLCE CAN15 route.
echo 0x0 &amp;gt; /sys/kernel/debug/llce_can_core/can_destinations/add/can_id_remap
echo 15 &amp;gt; /sys/kernel/debug/llce_can_core/can_destinations/add/ch_list
echo 0x1 &amp;gt; /sys/kernel/debug/llce_can_core/can_destinations/add/routing_opts
echo 1 &amp;gt; /sys/kernel/debug/llce_can_core/can_destinations/add/execute
cat /sys/kernel/debug/llce_can_core/can_destinations/add/execute &amp;gt; \
/sys/kernel/debug/llce_can_core/can_filters/add/can_dest
echo 0x7F0 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/can_mask_id
echo mask &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/entry
echo 14 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/hw_ctrl
echo 0xe &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/tag
echo 0x10 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/mb_count
echo long &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/mb_type
echo 0x530 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/msg_id
echo enabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/status
echo disabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/opt_auth
echo disabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/opt_custom
echo disabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/opt_host
echo disabled &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/logging
echo 1 &amp;gt; /sys/kernel/debug/llce_can_core/can_filters/add/execute&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;After executing the above command, an additional filter will be created as shown in the figure below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_o_1-1739988082656.png" style="width: 588px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324801i0BFBBFF3284F988F/image-dimensions/588x47?v=v2" width="588" height="47" role="button" title="carlos_o_1-1739988082656.png" alt="carlos_o_1-1739988082656.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You need to disable the unused filters in the filter list to prevent interference between filters. After testing, the first filter will receive IDs between 0x540~0x54F to the host, and route IDs between 0x530~0x53F to llcecan15. If you need a CAN frame to be received by the host and routed to another channel at the same time, opt_host enable of the corresponding filter is required.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 18:02:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2047518#M12690</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-02-19T18:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 Linux LLCE debugfs interface</title>
      <link>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2048034#M12699</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241501"&gt;@carlos_o&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you very much, this is very helpful, I'm happy to report that the filter is added to the list as expected. However, the filter doesn't work. As a sanity check, I've created a filter that exactly replicates the default one, with a mask of 0x000000. When I do this, I get traffic on the interface before I recreate the filter, but nothing after. I don't see any values increasing in `&lt;SPAN&gt;/sys/class/net/llcecan10/statistics/&lt;/SPAN&gt;` that would indicate an error.&lt;BR /&gt;Due to hardware constraints, I'm using different interfaces (llcecan10 and llcecan11), and normal CAN in stead of canFD, so I've needed to change the example slightly. I'm attaching the script I'm using to test this. Could you please check if I'm making some mistake, or if the behavior is indeed unexpected.&lt;BR /&gt;&lt;BR /&gt;I also tried to create an exact matching filter, for address 0x77, from the example in the documentation, but the interface just stops receiving communication.&lt;BR /&gt;&lt;BR /&gt;the interface is up when I check `ip link show`, and if I do `cansend 000#AABBCCDD` the interface is able to send frames correctly. It just stops receiving frames once I create the basic filter that is exactly the same as the default filter:&lt;BR /&gt;&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;root@s32g274a-n4c0a53:~# cat /sys/kernel/debug/llce_can_core/can_filters/list&lt;BR /&gt;hw_ctrl status can_mask_id msg_id tag mb_count addr rx_intf entry mb_type | opt_auth opt_host logging opt_custom can_dest&lt;BR /&gt;0 enabled 0x00000000 0x00000000 0x0000 0x0010 512 15 mask long |&lt;BR /&gt;[...]&lt;BR /&gt;8 enabled 0x00000000 0x00000000 0x0008 0x0010 520 7 mask long |&lt;BR /&gt;9 enabled 0x00000000 0x00000000 0x0009 0x0010 521 6 mask long |&lt;BR /&gt;10 enabled 0x00000000 0x00000000 0x010a 0x0010 522 5 mask short |&lt;BR /&gt;11 disabled 0x00000000 0x00000000 0x010b 0x0010 523 4 mask short |&lt;BR /&gt;11 enabled 0x00000000 0x00000000 0x000e 0x0010 524 4 mask short |&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;&lt;BR /&gt;Another question about the example, could you please explain the 0x7F0 values that get written to /sys/kernel/debug/llce_can_core/can_filters/add/can_mask_id for both filters?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 09:14:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G2-Linux-LLCE-debugfs-interface/m-p/2048034#M12699</guid>
      <dc:creator>m_bez</dc:creator>
      <dc:date>2025-02-20T09:14:10Z</dc:date>
    </item>
  </channel>
</rss>

