lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Need help with tcp-raw-api app. Wrong checksum sometime


From: Simon Goldschmidt
Subject: Re: [lwip-users] Need help with tcp-raw-api app. Wrong checksum sometimes calculatet ....THX !!!
Date: Tue, 10 Nov 2009 07:35:53 +0100

Steffen wrote:
> Thx for your fast answeres ! I don't use an operating system, so i don't 
> have threads.  The target is a PowerPc MPC5567. I call the 
> "SendDiagnoseMessage()" function, when results from another Bussystem 
> are available.
> My ETH Controller is in Interrupt mode ! When calling the 
> "SendDiagnoseMessage()" function,it is possible i get interrupted by the 
> receive Interrupt of the ETH controller,
>  (I told you that the wrong checksum only occurs, when a paket is 
> received 1ms bevor i send with"SendDiagnoseMessage()"). I think normaly 
> this should be no problem because the receive function allocates a new 
> pbuf  which is another than the send pbuf.

Do you only allocate a pbuf in interrupt context or do you also pass this pbuf 
into the stack? With interrupt context, it's the same as multithreading: it's 
not supported. Instead, put the received pbuf on a list and process this list 
in the main application context.

Simon
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser




reply via email to

[Prev in Thread] Current Thread [Next in Thread]