2009995_en-US

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

2009995_en-US

2009995_en-US

S32K314 lwip tcp/ip multiple definition issue

Hello,

I am currently applying the lwIP TCP/IP stack to the S32K314 product and encountered a "multiple definition" error, so I am leaving a question.

When I add the TCP/IP stack to the peripherals and build, the following error occurs:

studyseok8466_0-1733736992222.png


However, when I remove the multiple definition issue using linker options, the build succeeds as follows:

studyseok8466_1-1733737019761.pngstudyseok8466_2-1733737043750.png


Using linker options to bypass the multiple definition issue does not seem like a proper solution, so I want to address the root cause of the problem.

Thank you.

Re: S32K314 lwip tcp/ip multiple definition issue

Thank you!

Re: S32K314 lwip tcp/ip multiple definition issue

Hi @malove 

In the actual example, fsdata.c is not included for the compilation. only fs.c included.
You can exclude the fsdata.c from build to avoid fsdata.o generation. which will help you to solve the problem without modifying the linker options.

sathishkumar_sunmugavel_0-1743950981551.png


Thanks,
Sathish.

Re: S32K314 lwip tcp/ip multiple definition issue

Thank you @PavelL 

Re: S32K314 lwip tcp/ip multiple definition issue

Hello @malove ,

I see your point now. Please check this:

Best regards,

Pavel

Re: S32K314 lwip tcp/ip multiple definition issue

Hello @PavelL 

What I want to clarify is that I am not trying to have two static IP addresses.

Instead, I am trying to resolve the issue where certain elements in the fsdata.c source file are being defined multiple times.

However, this file is not something I wrote myself; it is part of the TCP/IP stack that I am using as is. I am not sure how to modify or resolve this issue.

Re: S32K314 lwip tcp/ip multiple definition issue

Hello @malove ,

what is your goal? To have two static IP addresses? As far as I know, dual stack IPv4 and IPv6 should work on lwip. However, I did a web search but I didn't find a solution - all questions like this one mapping multiple * IP addresses to one Ethernet interface (LWIP) - NXP Community stayed unanswered or the solution didn't work. So, it looks like not feasible.

As David already replied to here S32K3 Lwip iperf test issue - NXP Community, LWIP is an open source and we do not have resources to support.

Best regards,

Pavel

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 09:15 PM
Updated by: