mcf5223x InterNiche Stack dropping udp packets

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mcf5223x InterNiche Stack dropping udp packets

1,234 Views
admin
Specialist II
I am trying to send out a couple of udp packets at a time and the stack seems to drop some of the packets in the send_arp function. I see the error:
 
 tftp_udpsend(): udp_send() error -22
 
on the hyper terminal. I narrowed it down to the SEND_DROPPED error it is returning. Is this because I am not putting a delay in between sending each packet?
 
This is the code where it happens the most:
 
Code:
emg_udpsend( replyip, TESTFIX_FPORT, TESTFIX_LPORT, (void *)(data_buff ), 1000);emg_udpsend( replyip, TESTFIX_FPORT, TESTFIX_LPORT, (void *)(data_buff+500) , 1000);emg_udpsend( replyip, TESTFIX_FPORT, TESTFIX_LPORT, (void *)(data_buff+1000), 1000);emg_udpsend( replyip, TESTFIX_FPORT, TESTFIX_LPORT, (void *)(data_buff+1500), 1000);emg_udpsend( replyip, TESTFIX_FPORT, TESTFIX_LPORT, (void *)(data_buff+2000), 1000);emg_udpsend( replyip, TESTFIX_FPORT, TESTFIX_LPORT, (void *)(data_buff+2500), 1000);emg_udpsend( replyip, TESTFIX_FPORT, TESTFIX_LPORT, (void *)(data_buff+3000), 1000);emg_udpsend( replyip, TESTFIX_FPORT, TESTFIX_LPORT, (void *)(data_buff+3500), 1000);emg_udpsend( replyip, TESTFIX_FPORT, TESTFIX_LPORT, (void *)(data_buff+4000), 1000);emg_udpsend( replyip, TESTFIX_FPORT, TESTFIX_LPORT, (void *)(data_buff+4500), 1000);

 Has anyone else run into this problem?
 
Thank you
Todd
Labels (1)
0 Kudos
1 Reply

213 Views
TrevorCurry_eu
Contributor I
Hi Todd,

I don't have anything specific to your problem but a bug I have just found may apply:

I have a serial to TCP application that was periodically dropping a transmit - the TCP retransmit timeout kicked in so the message was not lost but the extra latency was the problem. This turned out to be the setup in fec_init() where the RCR and TCR had different duplex settings (DRT and FDEN bits were both set). Since I was running half duplex, I cleared the TDR, FDEN bit and the problem went away.

I hope that helps.
Trevor
0 Kudos