Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 912
  • Last Modified:

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

0
DBTechnique
Asked:
DBTechnique
  • 3
  • 3
1 Solution
 
HappyCactusCommented:
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)
0
 
DBTechniqueAuthor Commented:
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
0
 
DBTechniqueAuthor Commented:
nobody ??
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
HappyCactusCommented:
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.
0
 
HappyCactusCommented:
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.

[1] http://www.sics.se/~adam/uip/index.php/Main_Page
[2] http://www.sics.se/~adam/uip/index.php/Ports
0
 
DBTechniqueAuthor Commented:
thank you
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now