Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Program is stuck at tcp send

Honored Contributor II

I am using microc/os ii + interniche tcp/ip stack.  

When I try to send data from FPGA to PC via Ethernet, the program sometimes stuck in the send() function.  


The data length passed into the send() function is about 13000 bytes and I found that the send function will send 1500 bytes at a time. it will return after all the 13000 bytes are sent. Wireshark shows that the PC can receive 3 packets of 1500 bytes and send 2 acks back to the FPGA. Then the program is stuck and "no free buffers for rx" is printed repeatly. Wireshark shows that the window on both side are not empty. This doesn't happen every time so my guess is that it is OS time related or memory related.  


Does anyone have any idea how to fix it? :cry: Thank you.
0 Kudos
0 Replies