[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] How to use LWIP from FreeRTOS tasks - a thread safety q
Jeffrey A. Wormsley
Re: [lwip-users] How to use LWIP from FreeRTOS tasks - a thread safety question
Tue, 12 Jul 2022 13:50:21 -0400
No real help here, but that CMSIS layer is intended to let you write your application to one API, then port it to multiple RTOSes or even full desktop/server OSes, presumably without changes. And digging through that code is always (read "never") fun.
>Hi Peter - Can you start at the beginning?
>Has this ever worked, or for 2 years it always crashed if you used LWIP?
>What exactly "crashes the whole thing"?
>You're aware of the numerous issues surrounding STM-provided Ethernet
>Hope this helps,
>Best Regards, Dave
I have spent more time on that LWIP_TCPIP_CORE_LOCKING=1 issue.
Tracing through the code, it does appear that eventually LWIP does end
up using FreeRTOS mutexes.
It breaks something else however, and I can't easily trace it because
DHCP fails to work, and one can't really trace that because taking a
breakpoint causes timeouts etc. Also that code is too convoluted for
me to understand :)
I have been trying to find advice around the place and this post
summarises my latest findings on this
lwip-users mailing list