<?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 MCXE31B: ethernetif.c is not compiled in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXE31B-ethernetif-c-is-not-compiled/m-p/2339854#M5107</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I 'm trying to port this example project:&lt;BR /&gt;\mcuxsdk\examples\lwip_examples\lwip_ping_enet_qos\bm&lt;BR /&gt;board:&lt;BR /&gt;\mcuxsdk\examples\_boards\frdmmcxe31b&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To my own project for a custom board.&lt;/P&gt;&lt;P&gt;In the prj.conf file I have these lines:&lt;/P&gt;&lt;P&gt;CONFIG_MCUX_COMPONENT_component.silicon_id=y&lt;BR /&gt;CONFIG_MCUX_COMPONENT_driver.enet_qos=y&lt;BR /&gt;CONFIG_MCUX_COMPONENT_middleware.lwip=y&lt;BR /&gt;CONFIG_MCUX_COMPONENT_middleware.lwip.contrib.ping=y&lt;BR /&gt;CONFIG_MCUX_COMPONENT_middleware.lwip.enet_ethernetif=y&lt;BR /&gt;CONFIG_MCUX_PRJSEG_middleware.lwip.generated_config=y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it seems like the file&lt;/P&gt;&lt;P&gt;\mcuxsdk\middleware\lwip\port\ethernetif.c&lt;BR /&gt;&lt;BR /&gt;is not compiled.&lt;/P&gt;&lt;P&gt;It's not in the generated compile_commands.json file.&lt;/P&gt;&lt;P&gt;and when I build I get this error:&lt;/P&gt;&lt;P&gt;C:/work/mcx/mcuxpresso-sdk/voltra_mcx/apps/voltra_hello_world/voltra_hello_world.c:123:(.text.main+0xbe): undefined reference to `ethernetif_wait_linkup'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I need to change so that ethernetif.c is built.&lt;/P&gt;&lt;P&gt;In the example project it builds and everything works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2026 07:49:00 GMT</pubDate>
    <dc:creator>jonasa</dc:creator>
    <dc:date>2026-03-26T07:49:00Z</dc:date>
    <item>
      <title>MCXE31B: ethernetif.c is not compiled</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXE31B-ethernetif-c-is-not-compiled/m-p/2339854#M5107</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I 'm trying to port this example project:&lt;BR /&gt;\mcuxsdk\examples\lwip_examples\lwip_ping_enet_qos\bm&lt;BR /&gt;board:&lt;BR /&gt;\mcuxsdk\examples\_boards\frdmmcxe31b&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To my own project for a custom board.&lt;/P&gt;&lt;P&gt;In the prj.conf file I have these lines:&lt;/P&gt;&lt;P&gt;CONFIG_MCUX_COMPONENT_component.silicon_id=y&lt;BR /&gt;CONFIG_MCUX_COMPONENT_driver.enet_qos=y&lt;BR /&gt;CONFIG_MCUX_COMPONENT_middleware.lwip=y&lt;BR /&gt;CONFIG_MCUX_COMPONENT_middleware.lwip.contrib.ping=y&lt;BR /&gt;CONFIG_MCUX_COMPONENT_middleware.lwip.enet_ethernetif=y&lt;BR /&gt;CONFIG_MCUX_PRJSEG_middleware.lwip.generated_config=y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it seems like the file&lt;/P&gt;&lt;P&gt;\mcuxsdk\middleware\lwip\port\ethernetif.c&lt;BR /&gt;&lt;BR /&gt;is not compiled.&lt;/P&gt;&lt;P&gt;It's not in the generated compile_commands.json file.&lt;/P&gt;&lt;P&gt;and when I build I get this error:&lt;/P&gt;&lt;P&gt;C:/work/mcx/mcuxpresso-sdk/voltra_mcx/apps/voltra_hello_world/voltra_hello_world.c:123:(.text.main+0xbe): undefined reference to `ethernetif_wait_linkup'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I need to change so that ethernetif.c is built.&lt;/P&gt;&lt;P&gt;In the example project it builds and everything works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 07:49:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXE31B-ethernetif-c-is-not-compiled/m-p/2339854#M5107</guid>
      <dc:creator>jonasa</dc:creator>
      <dc:date>2026-03-26T07:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: MCXE31B: ethernetif.c is not compiled</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXE31B-ethernetif-c-is-not-compiled/m-p/2339911#M5108</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/157113"&gt;@jonasa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May i ask which IDE you are using?&lt;/P&gt;
&lt;P&gt;Can you share your project so that i can check it?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 09:19:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXE31B-ethernetif-c-is-not-compiled/m-p/2339911#M5108</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-26T09:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: MCXE31B: ethernetif.c is not compiled</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXE31B-ethernetif-c-is-not-compiled/m-p/2339915#M5109</link>
      <description>&lt;P&gt;I think I solved it, this line was missing in prj.conf:&lt;BR /&gt;&lt;BR /&gt;CONFIG_MCUX_COMPONENT_component.phydp8384x=y&lt;/P&gt;&lt;P&gt;I guess that&amp;nbsp;&lt;BR /&gt;CONFIG_MCUX_COMPONENT_middleware.lwip.enet_ethernetif&lt;BR /&gt;is set to&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;no&lt;/EM&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;if no PHY chip is set?&lt;/P&gt;&lt;P&gt;Are there any documentation of these dependencies between the&amp;nbsp;CONFIG_MCUX_COMPONENT flags?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 09:25:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXE31B-ethernetif-c-is-not-compiled/m-p/2339915#M5109</guid>
      <dc:creator>jonasa</dc:creator>
      <dc:date>2026-03-26T09:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: MCXE31B: ethernetif.c is not compiled</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXE31B-ethernetif-c-is-not-compiled/m-p/2340237#M5111</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/157113"&gt;@jonasa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can refer to these document.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/mcuxsdk/25.03.00/html/develop/sdk/component_development.html" target="_blank"&gt;Software Component — MCUXpresso SDK Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/mcuxsdk/latest/html/develop/build_system/Software_Componentization.html" target="_blank"&gt;Software Componentization — MCUXpresso SDK Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 10:53:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXE31B-ethernetif-c-is-not-compiled/m-p/2340237#M5111</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-26T10:53:07Z</dc:date>
    </item>
  </channel>
</rss>

