Copying LWIP to custom project giving errors

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

Copying LWIP to custom project giving errors

984 Views
sharads
Contributor I

I have run the lwip_tcpecho_bm examples from SDK on LPCXpresso54608 eval board.

Now I want to copy the lwip library/folder to my new application developing for custom board based on LPC54606.

I have copied the lwip folder to new custome project but giving lot of undefined reference errors.

I have added paths in C compile and Linker includes as well but still giving error.

Please suggest how can I copy the LWIP package to new custom project?

Regards,

Sharad

Labels (1)
0 Kudos
3 Replies

856 Views
nxf58474
NXP Employee
NXP Employee

Hello Sharad,

 

Hope you are going well. What IDE are you using and which version?

 

Best Regards,

Ricardo

0 Kudos

856 Views
sharads
Contributor I

Thanks Ricardo,

I am doing good.

MCUXpresso IDE v11.0.0

Regards,

Sharad

0 Kudos

856 Views
nxf58474
NXP Employee
NXP Employee

Hello Sharad,

 

Here are the steps you need to follow to reference the project:

1. After copying the folder into the project, right click on the project and go to Properties.

2. There are two places where you need to add the folder, the first one is in C/C++ Build -> Settings, in MCU C Compiler go to Includes and click the symbol to Add...

 

Capture3.PNG

3. Click on workspace and select the project and look for the folder that was added.

 

You need to do this with all subfolders of the lwip folder.

 

../lwip/contrib/apps/tcpecho_raw

../lwip/port/arch

../lwip/src/include/compat/posix/arpa

../lwip/src/include/compat/posix/net

../lwip/src/include/compat/posix

../lwip/src/include/compat/posix/sys

../lwip/src/include/compat/stdc

../lwip/src/include/lwip

../lwip/src/include/lwip/priv

../lwip/src/include/lwip/prot

../lwip/src/include/netif

../lwip/src/include/netif/ppp

../lwip/src/include/netif/ppp/polarssl

../lwip/port

../lwip/src

../lwip/src/include

4. The next place to add the folder is C/C ++ General -> Paths and Symbols -> Source Location -> Add Folder.

 

Capture6.PNG

5. Look for the folder that was added (lwip), click Ok, then click Apply and Close.

 

You also need to overwrite the board folder, copy the utilities and component folders and do the same steps.

 

With this steps the lwip folder is referenced and shouldn't appear the errors you mentioned.

 

If you have any questions please don't hesitate to ask.

 

Best Regards,

Ricardo

0 Kudos