<?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 Problem when TJA1100 is configured as slave in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-when-TJA1100-is-configured-as-slave/m-p/1373107#M12556</link>
    <description>&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use SJA1105 and TJA1100 on my board, but I have some problems.&lt;/P&gt;&lt;P&gt;The block diagram of my system is as follows, MCU1 and MCU2 run different platforms (RTOS and Linux), and all of them support TCP/IP stack.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wzf_0-1637204397532.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162483iA339D953274EFF19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wzf_0-1637204397532.png" alt="Wzf_0-1637204397532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;H/W Configurations of TJA1100 are as follows:&lt;/P&gt;&lt;P&gt;CONFIG0:&amp;nbsp;HIGH, PHY configured as Master&lt;/P&gt;&lt;P&gt;CONFIG1:&amp;nbsp;LOW, Managed operation&lt;/P&gt;&lt;P&gt;CONFIG3/2:&amp;nbsp;LOW HIGH, RMII mode (external 50MHz oscillator)&amp;nbsp;&amp;lt;-- SJA1105 supplies 50MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I configure the TJA1100 (by MCU1) as a master, Media Converter as a slave, link is OK.&lt;/P&gt;&lt;P&gt;Then I use PC to ping MCU1 or MCU2, results are also OK.&lt;/P&gt;&lt;P&gt;Dumped register data from TJA1100 when link down and link up are as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wzf_1-1637204420205.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162484iC2E5C479E1A6FAD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wzf_1-1637204420205.png" alt="Wzf_1-1637204420205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I configure the TJA1100 as a slave, Media Converter as a master, link is OK too.&lt;/P&gt;&lt;P&gt;But when I power on my board, and TJA1100 turns to Normal Mode at the first time, it spends a lot of time (&amp;gt; 1.5min) to establish the first link. After this first link up, I disconnect the cable between TJA1100 and Media Converter, link down immediately. Then I connect the cable again, link up immediately.&lt;/P&gt;&lt;P&gt;Then I use PC to ping MCU1 or MCU2, results are NG.&lt;/P&gt;&lt;P&gt;Dumped register data from TJA1100 when link down and link up are as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wzf_2-1637204438536.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162485iCB58A26BF7756239/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wzf_2-1637204438536.png" alt="Wzf_2-1637204438536.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to use Wireshark to find out the reason why ping fails.&lt;/P&gt;&lt;P&gt;I compare the communication logs when TJA1100 works as a master and slave.&lt;/P&gt;&lt;P&gt;I found that when TJA1100 works as a slave, 9-byte extra random data are added to the tail of an ethernet package, it causes ARP reply package be dropped by the net card of PC, and ping failure.&lt;/P&gt;&lt;P&gt;(Due to the same results when I use MCU1 and MCU2, It’s hard to consider that there are bugs in MCU1 or MCU2 software)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wzf_3-1637204455015.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162486iE21816E49249AB45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wzf_3-1637204455015.png" alt="Wzf_3-1637204455015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As a comparison, ARP reply package is as follows when TJA1100 works as a master.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wzf_4-1637204559252.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162487i9947F04D6A4B8CC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wzf_4-1637204559252.png" alt="Wzf_4-1637204559252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Questions I want to ask are as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why the first link up spends a lot of time when TJA1100 works as a slave ?&lt;/LI&gt;&lt;LI&gt;What may cause the 9-byte extra random data in the ethernet package ?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Nov 2021 03:11:05 GMT</pubDate>
    <dc:creator>Wzf</dc:creator>
    <dc:date>2021-11-18T03:11:05Z</dc:date>
    <item>
      <title>Problem when TJA1100 is configured as slave</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-when-TJA1100-is-configured-as-slave/m-p/1373107#M12556</link>
      <description>&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use SJA1105 and TJA1100 on my board, but I have some problems.&lt;/P&gt;&lt;P&gt;The block diagram of my system is as follows, MCU1 and MCU2 run different platforms (RTOS and Linux), and all of them support TCP/IP stack.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wzf_0-1637204397532.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162483iA339D953274EFF19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wzf_0-1637204397532.png" alt="Wzf_0-1637204397532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;H/W Configurations of TJA1100 are as follows:&lt;/P&gt;&lt;P&gt;CONFIG0:&amp;nbsp;HIGH, PHY configured as Master&lt;/P&gt;&lt;P&gt;CONFIG1:&amp;nbsp;LOW, Managed operation&lt;/P&gt;&lt;P&gt;CONFIG3/2:&amp;nbsp;LOW HIGH, RMII mode (external 50MHz oscillator)&amp;nbsp;&amp;lt;-- SJA1105 supplies 50MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I configure the TJA1100 (by MCU1) as a master, Media Converter as a slave, link is OK.&lt;/P&gt;&lt;P&gt;Then I use PC to ping MCU1 or MCU2, results are also OK.&lt;/P&gt;&lt;P&gt;Dumped register data from TJA1100 when link down and link up are as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wzf_1-1637204420205.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162484iC2E5C479E1A6FAD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wzf_1-1637204420205.png" alt="Wzf_1-1637204420205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I configure the TJA1100 as a slave, Media Converter as a master, link is OK too.&lt;/P&gt;&lt;P&gt;But when I power on my board, and TJA1100 turns to Normal Mode at the first time, it spends a lot of time (&amp;gt; 1.5min) to establish the first link. After this first link up, I disconnect the cable between TJA1100 and Media Converter, link down immediately. Then I connect the cable again, link up immediately.&lt;/P&gt;&lt;P&gt;Then I use PC to ping MCU1 or MCU2, results are NG.&lt;/P&gt;&lt;P&gt;Dumped register data from TJA1100 when link down and link up are as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wzf_2-1637204438536.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162485iCB58A26BF7756239/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wzf_2-1637204438536.png" alt="Wzf_2-1637204438536.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to use Wireshark to find out the reason why ping fails.&lt;/P&gt;&lt;P&gt;I compare the communication logs when TJA1100 works as a master and slave.&lt;/P&gt;&lt;P&gt;I found that when TJA1100 works as a slave, 9-byte extra random data are added to the tail of an ethernet package, it causes ARP reply package be dropped by the net card of PC, and ping failure.&lt;/P&gt;&lt;P&gt;(Due to the same results when I use MCU1 and MCU2, It’s hard to consider that there are bugs in MCU1 or MCU2 software)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wzf_3-1637204455015.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162486iE21816E49249AB45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wzf_3-1637204455015.png" alt="Wzf_3-1637204455015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As a comparison, ARP reply package is as follows when TJA1100 works as a master.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wzf_4-1637204559252.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162487i9947F04D6A4B8CC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wzf_4-1637204559252.png" alt="Wzf_4-1637204559252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Questions I want to ask are as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why the first link up spends a lot of time when TJA1100 works as a slave ?&lt;/LI&gt;&lt;LI&gt;What may cause the 9-byte extra random data in the ethernet package ?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 03:11:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Problem-when-TJA1100-is-configured-as-slave/m-p/1373107#M12556</guid>
      <dc:creator>Wzf</dc:creator>
      <dc:date>2021-11-18T03:11:05Z</dc:date>
    </item>
  </channel>
</rss>

