lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Stuck in netconn_write()


From: Thomas Johansen
Subject: Re: [lwip-users] Stuck in netconn_write()
Date: Wed, 16 Jan 2013 09:24:52 +0100

Hi,

Yes, I use configUSE_PREEMPTION 1

There is no vTaskDelay() in my Idle task, but the __wfi instruction. Schould 
wait for the next tick interrupt

Thomas

From: address@hidden [mailto:address@hidden On Behalf Of Nikolas Karakotas
Sent: 16. januar 2013 00:09
To: Mailing list for lwIP users
Subject: Re: [lwip-users] Stuck in netconn_write()

Hi,

Have you set this flag:
configUSE_PREEMPTION 1

Also in your Idle tasks do you call vTaskDelay?

Regards,
Nick

From: Thomas Johansen
Sent: Tuesday, January 15, 2013 10:55 PM
To: address@hidden
Subject: [lwip-users] Stuck in netconn_write()

Hi all
I have a LPC1788 running FreeRTOS and lwIP.
When a task, using netconn_write function, has a to low FreeRTOS priority, then 
it can lockup sometimes.
I have a function I use for sending Ethernet data via the netconn API.
To protect the TX function I use a critical section so one task can complete 
the transmit before a new one can do it.
But if I the calling task has a low FreeRTOS priority the task is stuck in the 
netconn_write(..) function??
It seems strange to me. It never returns from it.
Using higher priority, seems to solve the issue.
If the calling tasks has priority of at least 3, it seems to be fine. (I 
haven't tried higher)
The lwip recevie, transmit and tcp_ip task has the FreeRTOS priority at 3,3 and 
4
The NVIC priority are set accordingly to Cortex M3 and FreeRTOS guideline. 
(Higer is lower:-))
Any idea why it does that?
Thomas


________________________________________
______________________ Appended by AGRAMKOW Fluid Systems A/S 
_______________________

This e-mail and any attachments may contain information which is confidential, 
proprietary, privileged or otherwise protected by law. The information is 
solely intended for the named addressee (or a person responsible for delivering 
it to the addressee). If you are not the intended recipient of this message, 
you are not authorized to read, print, retain, copy or disseminate this message 
or any part of it. If you have received this e-mail in error, please notify the 
sender Immediately by return e-mail and delete it from your computer.


________________________________________
This e-mail has been scanned by http://www.comendo.com and does not contain 
virus.
________________________________________
________________________________________
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
________________________________________
This e-mail has been scanned by http://www.comendo.com and does not contain 
virus.
________________________________________

______________________ Appended by AGRAMKOW Fluid Systems A/S 
_______________________

This e-mail and any attachments may contain information which is confidential, 
proprietary, privileged or otherwise protected by law. The information is 
solely intended for the named addressee (or a person responsible for delivering 
it to the addressee). If you are not the intended recipient of this message, 
you are not authorized to read, print, retain, copy or disseminate this message 
or any part of it. If you have received this e-mail in error, please notify the 
sender Immediately by return e-mail and delete it from your computer.



****************************************************************************
This e-mail has been scanned by http://www.comendo.com and does not contain 
virus.
****************************************************************************

reply via email to

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