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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Does Ethernet need delay time when sending a packet?

Altera_Forum
Honored Contributor II
1,272 Views

Hi,when i try to send out a packet with a for loop.It can't be send.(i inspect through the wireshark).However, when i add the while loop like this: 

 

while(1) 

For(i=0;i<20;i++) 

SEND PACKET; 

 

It can send.I wonder is it there has a delay time that i need to include if i don't wan use the while loop.how long should i delay?Can anyone help me?Thank you.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
605 Views

Presumably the modified code sends lots of packets. 

If you are trying to send a single packet only (from a test program) you'll need to ensure the program doesn't exit/return immediately and that is likely to reset everything. 

I'm not sure what your 'SEND PACKET' does, but clearly it can also fail due to lack of buffers of fifo space (etc) in the MAC engine (unless your code runs slower than ethernet line rate).
0 Kudos
Reply