MCXE31B: ethernetif.c is not compiled

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCXE31B: ethernetif.c is not compiled

1,547 Views
jonasa
Contributor III

Hi, 

I 'm trying to port this example project:
\mcuxsdk\examples\lwip_examples\lwip_ping_enet_qos\bm
board:
\mcuxsdk\examples\_boards\frdmmcxe31b

To my own project for a custom board.

In the prj.conf file I have these lines:

CONFIG_MCUX_COMPONENT_component.silicon_id=y
CONFIG_MCUX_COMPONENT_driver.enet_qos=y
CONFIG_MCUX_COMPONENT_middleware.lwip=y
CONFIG_MCUX_COMPONENT_middleware.lwip.contrib.ping=y
CONFIG_MCUX_COMPONENT_middleware.lwip.enet_ethernetif=y
CONFIG_MCUX_PRJSEG_middleware.lwip.generated_config=y

 

But it seems like the file

\mcuxsdk\middleware\lwip\port\ethernetif.c

is not compiled.

It's not in the generated compile_commands.json file.

and when I build I get this error:

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'

 

What do I need to change so that ethernetif.c is built.

In the example project it builds and everything works.

 

Labels (1)
0 Kudos
Reply
3 Replies

1,535 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @jonasa 

May i ask which IDE you are using?

Can you share your project so that i can check it?

BR

Harry

0 Kudos
Reply

1,529 Views
jonasa
Contributor III

I think I solved it, this line was missing in prj.conf:

CONFIG_MCUX_COMPONENT_component.phydp8384x=y

I guess that 
CONFIG_MCUX_COMPONENT_middleware.lwip.enet_ethernetif
is set to  no  if no PHY chip is set?

Are there any documentation of these dependencies between the CONFIG_MCUX_COMPONENT flags?

 

0 Kudos
Reply

1,525 Views
Harry_Zhang
NXP Employee
NXP Employee
0 Kudos
Reply