Hi, I am new to using lwip. I am wondering if you can advice me on the same. I need to transfer data from PC to Microblaze microprocessor on a Xilinx FPGA board and vice versa as fast as possible. i dun need any error correction or the overheads like full TCP/IP. I am currently readin this article to understand about socket programming as an initial start: http://cscene.unitycode.org/topics/unix/cs2-13.xml.html Here are the questions that I have: 1) I am stuck at the part in the link above which says hp=gethostbyname(servername);a the code above is more for developing applications on PC. I am looking for lwip drivers to run on the Microblaze (32bit CPU) on the FPGA. cos i cannot find a similar function in lwip. any idea how to resolve this? i have tried looking for equiv functions like getnameinfo(), getaddrinfo() but these functions will work. :( 2) any other useful links to read for regards to this topic? i have tried looking at http://www.xilinx.com/ise/embedded/edk91i_docs/lwip_v2_00_a.pdf what do i need to purchase to let the sockets running on both PC and FPGA communicate with each other? possible to advice me on some documents to point me in the right direction? thanks Chris
lwip for FPGA
Started by ●June 30, 2008
Reply by ●July 1, 20082008-07-01
Here is an XAPP that should get you started. There is a TFTP server example using lwip which you can use to transfer data between the PC and Microblaze. www.xilinx.com/support/documentation/application_notes/xapp1026.pdf --parag On Jun 30, 4:20=A0am, chrisde...@gmail.com wrote:> Hi, > =A0 =A0I am new to using lwip. I am wondering if you can advice me on the > same. > =A0 =A0I need to transfer data from PC to Microblaze microprocessor on a > Xilinx FPGA board and vice versa as fast as possible. i dun need any > error correction or the overheads like full TCP/IP. I am currently > readin this article to understand about socket programming as an > initial start: > > http://cscene.unitycode.org/topics/unix/cs2-13.xml.html > > =A0 =A0Here are the questions that I have: > > 1) =A0 I am stuck at the part in the link above which says > =A0 =A0hp=3Dgethostbyname(servername);a > the code above is more for developing applications on PC. I am looking > for lwip drivers to run on the Microblaze (32bit CPU) on the FPGA. > > cos i cannot find a similar function in lwip. any idea how to resolve > this? i have tried looking for equiv functions like getnameinfo(), > getaddrinfo() but these functions will work. :( > > 2) any other useful links to read for regards to this topic? i have > tried looking athttp://www.xilinx.com/ise/embedded/edk91i_docs/lwip_v2_00_=a.pdf> > what do i need to purchase to let the sockets running on both PC and > FPGA communicate with each other? > > possible to advice me on some documents to point me in the right > direction? > > thanks > Chris
Reply by ●July 1, 20082008-07-01
"beeraka@gmail.com" wrote:> > Here is an XAPP that should get you started. There is a TFTP > server example using lwip which you can use to transfer data > between the PC and Microblaze. ... snip ...This is rather pointless without a proper quotation of the original enquiry, which you have lost by top-posting. Please do not top-post. Your answer belongs after (or intermixed with) the quoted material to which you reply, after snipping all irrelevant material. See the following links: <http://www.catb.org/~esr/faqs/smart-questions.html> <http://www.caliburn.nl/topposting.html> <http://www.netmeister.org/news/learn2quote.html> <http://cfaj.freeshell.org/google/> (taming google) -- [mail]: Chuck F (cbfalconer at maineline dot net) [page]: <http://cbfalconer.home.att.net> Try the download section.
Reply by ●July 8, 20082008-07-08
hi Chuck, I do not want to use TFTP as i will eventually need to write a customised program to do this. Let me extend my question further. 1) Are there any examples available or could anybody kindly guide me as to how to modify xapp1026 to convert the microblaze running on FPGA to a client instead of a server? I would like the PC to act as the server instead and would like to transfer data to the FPGA board from the PC http://www.xilinx.com/support/documentation/application_notes/xapp1026.pdf just curious, would it be straightforward just to omit the 2 lines on page 5 of the notes: pcb = tcp_listen(pcb); tcp_accept(pcb,accept_callback); and just add in tcp_connect(pcb, accept_callback); have i missed out anything? 2) what program should be running on the PC if i need it to behave as a server? could i just create a server program eg...from the link below (under server model) http://people.cs.uchicago.edu/~mark/51081/labs/LAB6/sock.html will the PC be able to communicate with FPGA with this configuration? thanks in advance for your time and patience. I am really new to this and have been stuck for quite a while on this. Chris