Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12612 Discussions

Help with IP - sending packets PC to FPGA

Altera_Forum
Honored Contributor II
1,043 Views

I am working on a remote-operated vehicle project that requires sending packets back and forth between a PC and a Cyclone II FPGA. Thus far, I've tried example projects DE2_NET (on Altera's website, also used at UMass-Amherst), DE2_WEB (web server example offered by Terasic), and toyed with some source code for lwip, all on a DE2 evaluation board. One major problem is that I do not have the NIOS II EDS full version, so I don't have MicroC/OS-II, I think I need to find a way to do this without lwip (someone correct me if I'm wrong). 

 

I modified the DE2_NET project to send packets to my PC's MAC address (I've assigned the MAC address for the Cyclone II), but I don't know how to get the PC to receive the packets. I've run Ethereal to monitor network traffic, I can see the packets but they read as being sent from the PC to unknown destination, seems as though the PC can't resolve the source MAC address (they are connected over a LAN, not directly), and I don't know what IP address the DE2's been assigned. 

 

1) Can someone tell me how to assign an IP address to the FPGA without using lwip? 

2) Is there a way I can ping a MAC address directly to see if my connections are correct? 

3) Any other tricks I should know about passing packets in and out of the NIOS II? Keep it simple if possible, I've only been using this board for a couple weeks now. 

 

Thanks!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
309 Views

If you need networking, it is much easier to use uClinux. It is much less trouble and bugs than LWIP. Please follow the wiki, 

http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux)
0 Kudos
Altera_Forum
Honored Contributor II
309 Views

 

--- Quote Start ---  

originally posted by hippo@Nov 16 2006, 05:41 AM 

if you need networking, it is much easier to use uclinux. it is much less trouble and bugs than lwip. please follow the wiki, 

http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19461) 

--- quote end ---  

 

--- Quote End ---  

 

 

LWIP can also be used without an uOS 

 

but be warned 

1. i just was able to run LWIP in version 0.7.x and not newer ones (bugs) 

2. LWIP is really a slow thing  

 

 

and last but not least, search in the forum. there is a lot of help and information about LWIP in here. 

 

greetz Andreas
0 Kudos
Altera_Forum
Honored Contributor II
309 Views

Hippo, 

You suggested using the uCLinux for Ethernet development. Can you tell me what your average throughputs are for UPD? 

 

Also, what is the minimum code size for uCLinix running Ethernet. All I need is UDP communication with static IPs. I do not need telnet, ftp, dhcp, etc. Ideally, I would like to have this operate within the FPGA out of mRAM. Does anyone have experience with this? 

 

Thanks!
0 Kudos
Reply