How to implement and use a LWIP in PPC440

Posted on 2010-08-19
Last Modified: 2012-05-10

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

Question by:DBTechnique
  • 3
  • 3
LVL 12

Expert Comment

ID: 33482634
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)

Author Comment

ID: 33482881
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

Author Comment

ID: 33527182
nobody ??
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

LVL 12

Expert Comment

ID: 33529281
I never used lwip, but as far as I can see from the website, it can be used with or without an operating system.


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.
LVL 12

Accepted Solution

HappyCactus earned 500 total points
ID: 33529307
Looking around I found that lwip seems to be an outdated project (latest "news" dates 2003). uIP[1] seems to be the evolution of that project, it was ported to many platform (see [2]). If you are not tied to a specific soft processor and architecture, I suggest you to see the ports page and see if you can change cpu/ ethernet controller and have the uIP already ported.


Author Comment

ID: 33634187
thank you

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Thin Client Comparison - ET 3 441
Beagle Board or Arduino Camera 4 1,259
Video is occasionally breaking up 8 230
Why Two pairs of CAN_H and CAN_L going into One CAN Transciever ? 5 25
If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question