S32K314 lwip tcp/ip multiple definition issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K314 lwip tcp/ip multiple definition issue

ソリューションへジャンプ
2,497件の閲覧回数
malove
Contributor IV

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.

タグ(4)
0 件の賞賛
返信
1 解決策
6 返答(返信)
1,512件の閲覧回数
sathishkumar_sunmugavel
Contributor IV

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.

0 件の賞賛
返信
1,352件の閲覧回数
malove
Contributor IV

Thank you!

0 件の賞賛
返信
2,442件の閲覧回数
malove
Contributor IV

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.

0 件の賞賛
返信
2,395件の閲覧回数
malove
Contributor IV

Thank you @PavelL 

0 件の賞賛
返信
2,473件の閲覧回数
PavelL
NXP Employee
NXP Employee

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

0 件の賞賛
返信