I'm a bit confused in regards to using the raw API in a multi-threaded enviromnent. The current documentation indicates that you can not call the raw API functions from a context outside of the main lwIP process. Is this true? I have old code that appears to refute that.
I have a project using FreeRTOS and what appears to be lwIP v1.1. In it there are separate tasks that call udp_send() while the bulk of lwIP runs in it's own task. This code runs without problem. I have attempted to upgrade lwIP to v1.3.1, but now the code crashes a non-lwIP task calls udp_send(). Sure enough, if I move that call to the the lwIP task it works. Is it just sheer luck that the old code works at all, or have I perhaps missed some new configuration option in my conversion from 1.1 to 1.3? Among other options, I have these set: #define NO_SYS 1 #define SYS_LIGHTWEIGHT_PROT 1 (with the relevant functions in sys_arch.c) - Joe _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
