Xilinx Lwip

I have been having issues using the Xilinx Lwip library. I checked out their example code for the web server and was unable to figure out where they were getting the lwip_init function from. The compiler was telling me that the function couldn't be found. It would be great if someone had some sample code or if someone could just start by telling me what I need to include to get the lwip_init. Thanks a million.

Greg

Reply to
Greg
Loading thread data ...

Download the latest lwIP code:

formatting link
This code base has init.c which includes lwip_init.

Bill

Reply to
Bill A.

I downloaded the new one and told Xilinx to include the path. Still same problem.

Reply to
Greg

I've built 1.2 and the current snapshot development release without problems, but I did have to update the project to add new files new that were not in the 1.2 build. And I added the call to lwip_init (previously I had my own function which did similarly to the new function). Do you see init.c and is the Makefile including it?

Bill

Reply to
Bill A.

t
g

y I

e

Yes I updated the path to include the new files and it still is not working for me. The weird thing is that there is a lwip_init function in the xadapter.c file but not in the xadapter.h file. The xadapter file has lwip_init_raw but no lwip_init oddly. If I manually add the prototype to the header the project compiles. I can't say if it works when I do that as we are using the lltemac and I am conversing with xilinx as to what we must do to use the lltemac with the ml405 board and xilinx kernel. If anyone knows how to do this that would be helpful as well.

Reply to
Greg

The savannah site has a user's suport group too - it was very helpful when I've asked a question.

The xadapter.c may be colliding now since lwip_init didn't exist before - maybe that's what got the ball rolling to get it included. I don't recall if I had to add the prototype or not. I did have to add more #includes because of the changes.

Bill

Reply to
Bill A.

t
y
e

ll

Alright turns out the solution to this problem is don't use C++ on the initialization. You must use the gcc compiler on a .c file in order for the lwip_init to be pulled in. Just figured I would post this for the record for anyone who might have the same issue in the future.

Reply to
Greg

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.