<?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: IMX8MP: CAN FD can't leave self loopback mode in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1567353#M198556</link>
    <description>&lt;P&gt;But what makes it can not use single CAN communication in test 3-1 3-2?&lt;/P&gt;&lt;P&gt;We found with the 'loopback on' need to make the CAN listening too to transfer the data.&lt;/P&gt;&lt;P&gt;So we thing it might be the 'can't leave self-loopback mode'.&lt;/P&gt;&lt;P&gt;Or the 'loopback on' test is wrong with my script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides, I don't see the 'loopback on' command in '&lt;EM&gt;&lt;STRONG&gt;FSL-UT-CAN-003.txt&lt;/STRONG&gt;&lt;/EM&gt; '.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 08:01:22 GMT</pubDate>
    <dc:creator>yoooh8668</dc:creator>
    <dc:date>2022-12-09T08:01:22Z</dc:date>
    <item>
      <title>IMX8MP: CAN FD can't leave self loopback mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1560245#M198051</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I use imx8mp to run the loopback test, but seems like it can't leave the self loopback mode.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H3&gt;Here is the test script:&lt;/H3&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash

COUNT=1
while true
do
        echo -e "\n count=$COUNT\n"
        COUNT=$(($COUNT+1))

        echo -e "\n##test 1 wire-loopback"
        ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on
        ip link set can1 up type can bitrate 500000 dbitrate 2000000 fd on
        candump can1 &amp;amp;
        candump can0 &amp;amp;
        cansend can0 123##1
        cansend can1 123##1
        sleep 2
        echo -e "# kill all candump and set can to down"
        killall candump
        ip link set can0 down
        ip link set can1 down

        echo -e "\n##test2 self-loopback"
        ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on loopback on
        ip link set can1 up type can bitrate 500000 dbitrate 2000000 fd on loopback on
        candump can1 &amp;amp;
        candump can0 &amp;amp;
        cansend can0 123##1
        cansend can1 123##1
        sleep 2
        echo -e "# kill all candump and set can to down"
        killall candump
        ip link set can0 down
        ip link set can1 down

        echo -e "\n##test 3-1 wire-loopback can0-&amp;gt; can1"
        ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on
        ip link set can1 up type can bitrate 500000 dbitrate 2000000 fd on
        candump can1 &amp;amp;
        cansend can0 123##1
        sleep 2
        echo -e "# kill all candump and set can to down"
        killall candump
        ip link set can0 down
        ip link set can1 down

        echo -e "\n##test 3-2 wire-loopback can1-&amp;gt;can0"
        ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on
        ip link set can1 up type can bitrate 500000 dbitrate 2000000 fd on
        candump can0 &amp;amp;
        cansend can1 123##1
        sleep 2
        echo -e "# kill all candump and set can to down"
        killall candump
        ip link set can0 down
        ip link set can1 down
done&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&amp;nbsp;Here is the result:&lt;/H3&gt;&lt;LI-CODE lang="markup"&gt;root@edm-g-imx8mp:~# ./2_test_can.sh 

 count=1


##test 1 wire-loopback
RTNETLINK answers: Device or resource busy
RTNETLINK answers: Device or resource busy
  can0  123  [00] 
  can0  123  [00] 
  can1  123  [00] 
  can1  123  [00] 
# kill all candump and set can to down

##test2 self-loopback
[  716.425196] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[  716.435328] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
  can0  123  [00] 
  can0  123  [00] 
  can1  123  [00] 
  can1  123  [00] 
# kill all candump and set can to down

##test 3-1 wire-loopback can0-&amp;gt; can1
[  718.468560] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[  718.479017] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
# kill all candump and set can to down

##test 3-2 wire-loopback can1-&amp;gt;can0
[  720.511155] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[  720.521521] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
# kill all candump and set can to down

 count=2


##test 1 wire-loopback
[  722.553288] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[  722.563775] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
  can0  123  [00] 
  can0  123  [00] 
  can1  123  [00] 
  can1  123  [00] 
# kill all candump and set can to down

##test2 self-loopback
[  724.597857] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[  724.608352] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
  can0  123  [00] 
  can0  123  [00] 
  can1  123  [00] 
  can1  123  [00] 
# kill all candump and set can to down

##test 3-1 wire-loopback can0-&amp;gt; can1
[  726.642325] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[  726.652862] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
# kill all candump and set can to down

##test 3-2 wire-loopback can1-&amp;gt;can0
[  728.684203] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[  728.694695] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Nov 2022 02:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1560245#M198051</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2022-11-28T02:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP: CAN FD can't leave self loopback mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1562025#M198191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209297"&gt;@yoooh8668&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I don't think this issue could be due to can't leaving self-loopback mode as CAN works again as &lt;EM&gt;" 1 wire-loopback"&lt;/EM&gt; in the count 2 test.&lt;/P&gt;
&lt;P&gt;To test CAN functionality in imx SoCs one can try looking at &lt;EM&gt;&lt;STRONG&gt;root/test/can/doc/FSL-UT-CAN-003.txt&lt;/STRONG&gt;&lt;/EM&gt; at &lt;EM&gt;&lt;STRONG&gt;imx-test.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 12:48:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1562025#M198191</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-11-30T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP: CAN FD can't leave self loopback mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1567353#M198556</link>
      <description>&lt;P&gt;But what makes it can not use single CAN communication in test 3-1 3-2?&lt;/P&gt;&lt;P&gt;We found with the 'loopback on' need to make the CAN listening too to transfer the data.&lt;/P&gt;&lt;P&gt;So we thing it might be the 'can't leave self-loopback mode'.&lt;/P&gt;&lt;P&gt;Or the 'loopback on' test is wrong with my script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides, I don't see the 'loopback on' command in '&lt;EM&gt;&lt;STRONG&gt;FSL-UT-CAN-003.txt&lt;/STRONG&gt;&lt;/EM&gt; '.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 08:01:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1567353#M198556</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2022-12-09T08:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP: CAN FD can't leave self loopback mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1568900#M198678</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209297"&gt;@yoooh8668&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please provide me with the part number of the processor you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 09:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1568900#M198678</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-12-13T09:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP: CAN FD can't leave self loopback mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1573100#M199078</link>
      <description>&lt;P&gt;Sorry for late reply.&lt;BR /&gt;&lt;BR /&gt;it's PIMXL8DNVNL ZAB.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 10:38:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1573100#M199078</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2022-12-21T10:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP: CAN FD can't leave self loopback mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1573609#M199126</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209297"&gt;@yoooh8668&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;PIMXL8DNVNLZAB&lt;/EM&gt; is a consumer-grade SOC.&lt;/P&gt;
&lt;P&gt;It should be mentioned that only industrial grade i.MX8MP Processors support CAN-FD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 08:34:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1573609#M199126</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-12-22T08:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP: CAN FD can't leave self loopback mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1575709#M199320</link>
      <description>&lt;P&gt;I got this part number from the web side, maybe it's wrong.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;U-Boot 2021.04-AUTOINC+g9368a0d86d (Aug 03 2022 - 08:29:30 +0000)

CPU:   i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 49C
Reset cause: POR
Model: TechNexion EDM-G-IMX8MP
DRAM:  8 GiB
MMC:   FSL_SDHC: 1, FSL_SDHC: 2&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;But the U-Boot say it's Industrial grade.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 03:13:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-CAN-FD-can-t-leave-self-loopback-mode/m-p/1575709#M199320</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2022-12-30T03:13:26Z</dc:date>
    </item>
  </channel>
</rss>

