Link to home
Start Free TrialLog in
Avatar of DBTechnique
DBTechnique

asked on

How to implement and use a LWIP in PPC440

Hello,

I would like to know how to implement a LWIP stack in a PPC on a virtex5 FX.
Actually i found a lot of doc on Internet but it's alway too complex for me. I would like to have an input/output to my vhdl design to communicate with a computer via this LWIP.
The easiest example i found was the "echo server", but from that i don't know how to link the receive and send data to my vhdl design.

If someone can give me a good tutorial or example (other than web server) it would be very nice.

Thank you

Avatar of HappyCactus
HappyCactus
Flag of Italy image

Lwip should be installed on the host operating system. Are you using NIOS? maybe in the documentation page there are some hint or instruction.
When the stack is implemented with the O.S., you can use it as a normal TCPIP stack (with sockets and other stuff)
Avatar of DBTechnique
DBTechnique

ASKER

Ok, maybe my explanation was not so good, so i explain again my problem.

I'm working on the Firmware side of a project (on Xilinx Virtex5 FX). What i have to do is to build a TCP/IP connection, like that we can exchange data from the computer (with a independent SW) and the hardware (using the FW on the FPGA).

What i'm using to do that is a PowerPC440 that is resource of the Virtex5. And i would like to implement a soft-Mac-Ethernet IP to do the job.
The library that is usually (of course there are other) is called lwIP. I found some exemple on the net that use this library to make an embedded sw, but there are too simple or too complex.

So i would like to know if some could explain me how to do that or give me some link on tutorial or example.

Thank you
nobody ??
I never used lwip, but as far as I can see from the website, it can be used with or without an operating system.

Here: http://www.sics.se/~adam/lwip/os.html 

If I understood correctly, your situation is to have the stack running without an operating system, on a "single threaded application". It's described on the first part of that page.
(sidenote: there is a possibly subtle bug in that code, the check for time elapsed for call to tcp_tmr() should be ">=" instead of "==", because missing one call will lockout all the future time elapsing...)

I would start from that "single loop" application and implement an "echo server", for example. Then if you application is not too complex, I would work starting from that echo server, implementing all required functionality.

if your application is complex, I would think about installing an operating system (such NIOS or linux?)

Hope that helps, sorry for I cannot be more precise.
ASKER CERTIFIED SOLUTION
Avatar of HappyCactus
HappyCactus
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you