<?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: TJA1100 example code in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190426#M9943</link>
    <description>&lt;P&gt;Is it NOT advisable, not possible, not recommended, to try to use the&amp;nbsp;TJA1100 chip outside Linux? (i.e. FreeRTOS)&amp;nbsp; &amp;nbsp;Are the resources simply not available?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone been able to drive the&amp;nbsp;TJA1100 chip from bare metal C code?&amp;nbsp; Users of the&amp;nbsp;TJA1100HN&amp;nbsp;evaluation board must be able to drive it somehow, but how?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 21:22:38 GMT</pubDate>
    <dc:creator>rsating</dc:creator>
    <dc:date>2020-11-27T21:22:38Z</dc:date>
    <item>
      <title>TJA1100 example code</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/710311#M5216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using development board with microcontroller and TJA1100. Is there a code for TJA1100 register setting example from Power-on to Link-up?&lt;BR /&gt;We already get application hints (AH1310).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Shinichi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 05:43:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/710311#M5216</guid>
      <dc:creator>shinichitakko</dc:creator>
      <dc:date>2017-09-22T05:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: TJA1100 example code</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/710312#M5217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sending you the codes in the attachment of this post. This is only source codes which are available right now.&lt;/P&gt;&lt;P&gt;Please check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 10:59:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/710312#M5217</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-09-25T10:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: TJA1100 example code</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/710313#M5218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any plan to upstream this driver ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak Das&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 05:42:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/710313#M5218</guid>
      <dc:creator>DeepakDas</dc:creator>
      <dc:date>2017-10-06T05:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: TJA1100 example code</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190221#M9940</link>
      <description>&lt;P&gt;Have any new examples of code become available in the last 3 years?&lt;/P&gt;&lt;P&gt;There are not yet any examples (that I could find) showing use of&amp;nbsp;100BASE-T1 and&amp;nbsp;TJA1100 in S32 Design Studio, and no&amp;nbsp;100BASE-T1 communication blocks in the Simulink Model Based Design Toolbox.&amp;nbsp; Also no examples for the&amp;nbsp;TJA1100HN Evaluation Board.&lt;/P&gt;&lt;P&gt;We purchased the&amp;nbsp;MPC5775B&amp;nbsp;EVB which has Automotive Ethernet&amp;nbsp;100BASE-T1, but I'm struggling to understand how to get started with making it work.&amp;nbsp; A simple "hello world" example would be great.&lt;/P&gt;&lt;P&gt;I looked at the code in the ZIP files, which is interesting.&amp;nbsp; It covers a lot related to status and configuration, but nothing related to sending and receiving packets of data.&lt;/P&gt;&lt;P&gt;Could anyone let us know where to start with regard to sending and receiving data?&lt;/P&gt;&lt;P&gt;It would be wonderful to have Simulink blocks in a future NXP MBDT release that support&amp;nbsp;100BASE-T1.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 09:55:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190221#M9940</guid>
      <dc:creator>rsating</dc:creator>
      <dc:date>2020-11-27T09:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: TJA1100 example code</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190425#M9942</link>
      <description>&lt;P&gt;I notice in "Linux_driver_TJA110" the file "nxp.c" has the following code below, suggesting the operating system gets a handle to a "work queue" for sending data, and interrupts are set to alert the operating system to received data.&amp;nbsp; Is that right?&lt;/P&gt;&lt;P&gt;Given the above, the structures "phy_device" and "phy_queue" seem quite important to understanding how the code works, but they are never defined in the C or H files.&lt;/P&gt;&lt;P&gt;Could anyone provide a S32DS project (or anything) that shows how to fully build this code?&amp;nbsp; Such that everything is defined, and we can trace through it?&lt;/P&gt;&lt;P&gt;Can anyone help provide header files and libraries we would need to build code in S32DS that would drive the&amp;nbsp;&lt;SPAN&gt;TJA1100 chip?&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is difficult to get started without more guidance.&lt;/P&gt;&lt;P&gt;= = = = = = = = =&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;static int nxp_config_init(struct phy_device *phydev)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;{&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; . . .&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; /* enable all interrupts */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; phydev-&amp;gt;interrupts = PHY_INTERRUPT_ENABLED;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; phydev-&amp;gt;drv-&amp;gt;config_intr(phydev);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; /* Setup and queue a polling function:&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; * The phy_queue is normally used to schedule the interrupt handler&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; * from interrupt context after an irq has been received.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; * Here it is repurposed as scheduling mechanism for the poll function&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; if (((struct nxp_specific_data *)phydev-&amp;gt;priv)-&amp;gt;poll_setup == 0) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cancel_work_sync(&amp;amp;phydev-&amp;gt;phy_queue);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; INIT_WORK(&amp;amp;phydev-&amp;gt;phy_queue, poll);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue_work(system_power_efficient_wq, &amp;amp;phydev-&amp;gt;phy_queue);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ((struct nxp_specific_data *)phydev-&amp;gt;priv)-&amp;gt;poll_setup = 1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; . . .&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;}&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 21:13:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190425#M9942</guid>
      <dc:creator>rsating</dc:creator>
      <dc:date>2020-11-27T21:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: TJA1100 example code</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190426#M9943</link>
      <description>&lt;P&gt;Is it NOT advisable, not possible, not recommended, to try to use the&amp;nbsp;TJA1100 chip outside Linux? (i.e. FreeRTOS)&amp;nbsp; &amp;nbsp;Are the resources simply not available?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone been able to drive the&amp;nbsp;TJA1100 chip from bare metal C code?&amp;nbsp; Users of the&amp;nbsp;TJA1100HN&amp;nbsp;evaluation board must be able to drive it somehow, but how?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 21:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190426#M9943</guid>
      <dc:creator>rsating</dc:creator>
      <dc:date>2020-11-27T21:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: TJA1100 example code</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190429#M9944</link>
      <description>&lt;P&gt;From hints in other posts in the forum, I found an example NXP ethernet driver as part of a larger GIT repository from Freescale that in theory could build successfully:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://github.com/Freescale/linux-fslc/blob/4.14.x%2Bfslc/drivers/net/ethernet/nxp/lpc_eth.c" target="_blank"&gt;https://github.com/Freescale/linux-fslc/blob/4.14.x%2Bfslc/drivers/net/ethernet/nxp/lpc_eth.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And from the #include statements found the header that defines &lt;STRONG&gt;phy_device&lt;/STRONG&gt; and &lt;STRONG&gt;phy_queue&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://github.com/Freescale/linux-fslc/blob/4.14.x%2Bfslc/include/linux/phy.h" target="_blank"&gt;https://github.com/Freescale/linux-fslc/blob/4.14.x%2Bfslc/include/linux/phy.h&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The code in the ZIP files depends on Linux to do a lot of the footwork (MAC, state machines, etc.) for interaction with the&amp;nbsp;&lt;SPAN&gt;TJA1100 chip. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This suggests it would be a really difficult path to drive the&amp;nbsp;TJA1100 chip from bare metal code.&amp;nbsp; Wonder if NXP staff can confirm this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the Linux path is advised, is there a reference Linux build shared on GIT that shows the device driver code included in the repository?&amp;nbsp; I could not find any.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or could we get a hint, letting us know of a similar device driver integration in a GIT repository we can look to for guidance?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the file "nxp.c" the call to &lt;STRONG&gt;nxp_config_init(phydev)&lt;/STRONG&gt; appears to be the only interface to the outside world. But "lpc_eth.c" found in the Linux GIT repository&amp;nbsp;has quite a different interface, so it is not helpful as an example to follow.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 21:59:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190429#M9944</guid>
      <dc:creator>rsating</dc:creator>
      <dc:date>2020-11-27T21:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: TJA1100 example code</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190539#M9946</link>
      <description>&lt;P&gt;Based on the following, a bare metal implementation seems feasible, if the&amp;nbsp;&lt;SPAN&gt;TJA1100&amp;nbsp;driver code could be integrated with the SDK.&amp;nbsp; If anyone has a working example, that would be great.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;= = = = = =&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From the S32 SDK for PA overview:&lt;BR /&gt;&lt;A href="https://www.nxp.com/design/software/development-software/s32-sdk/s32-software-development-kit-for-power-architecture:S32SDK-POWER-ARCHITECTURE" target="_blank"&gt;https://www.nxp.com/design/software/development-software/s32-sdk/s32-software-development-kit-for-power-architecture:S32SDK-POWER-ARCHITECTURE&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"S32 SDK for Power Architecture supports Ethernet (TCP/IP+LWIP+WOLFSSL)"&lt;/P&gt;&lt;P&gt;From "Lightweight TCP/IP (lwIP) Stack with SDK" on NXP Community Forum:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Lightweight-TCP-IP-lwIP-Stack-with-SDK/ta-p/1119884" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Lightweight-TCP-IP-lwIP-Stack-with-SDK/ta-p/1119884&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"run in both bare metal and RTOS environment"&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"Suitable for use in embedded system with tens of free RAM and room for around 40 kilobytes of code ROM"&lt;/P&gt;&lt;P&gt;= = = = = = =&lt;/P&gt;&lt;P&gt;lwIP 2.1.2 - Lightweight IP stack&lt;/P&gt;&lt;P&gt;lwIP is a small independent implementation of the TCP/IP protocol suite.&lt;/P&gt;&lt;P&gt;The focus of the lwIP TCP/IP implementation is to reduce the RAM usage&lt;BR /&gt;while still having a full scale TCP. This making lwIP suitable for use&lt;BR /&gt;in embedded systems with tens of kilobytes of free RAM and room for&lt;BR /&gt;around 40 kilobytes of code ROM.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 23:19:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1190539#M9946</guid>
      <dc:creator>rsating</dc:creator>
      <dc:date>2020-11-28T23:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: TJA1100 example code</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1459897#M14067</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How about 5 years later then?&lt;/P&gt;&lt;P&gt;I was using this driver with my old BSP (using imx6d) I was in kernel 4.1 and now moving to 5.2, I noticed the driver&lt;A href="https://github.com/torvalds/linux/blob/master/drivers/net/phy/nxp-tja11xx.c" target="_self"&gt; drivers/net/phy/nxp-tja11xx.c&lt;/A&gt; which doesn't seems to work as expected, I'm going to reintegrate the old one and hope for it to work, but is there anything new about using TJA1100 with Linux and imx6 boards?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 09:05:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/TJA1100-example-code/m-p/1459897#M14067</guid>
      <dc:creator>ycardaillac</dc:creator>
      <dc:date>2022-05-18T09:05:42Z</dc:date>
    </item>
  </channel>
</rss>

