lwip webserver is not loaded if multiple threads are used for receive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-26 8:44 PM
working code :
void recvfrom_init(void)
{
/* start the udp thread */
sys_thread_new("recvfromDev1", recvfrom1, NULL, 64, osPriorityAboveNormal);
}
not working code :
void recvfrom_init(void)
{
/* start the udp thread */
sys_thread_new("recvfromDev1", recvfrom1, NULL, 64, osPriorityAboveNormal);
sys_thread_new("recvfromDev2", recvfromDev2, NULL, 64, osPriorityAboveNormal);
}
- Labels:
-
Ethernet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-02 1:14 AM
Hi ,
Can you tell me how u managed to build/
load an Ethernet app and t which board?
Thanks
Eli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-02 4:13 AM
Better leave sys_***() functions for lwIP internal use and for your application use your RTOS's normal functions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-05 10:41 PM
Hi,
Build with scm-work bench (gcc) .
for ethernet connection, ethernet swich is used for local network/connection for PC and STM32H743zi board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-05 11:43 PM
hi Piranha,
Thanks for the information, i have tried that already .webserver works fine but the receive socket function is not working(frames are not received).
since these two different threads receive the ethernet frames from two different sockets with different initialization.
Can i know the reason why to avoid sys_***() functions for lwIPis there any limitations ?
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-08 3:46 AM
Those sys_***() functions are wrapper functions for lwIP to be compatible with different RTOSs. Your application code is already based on some RTOS you are using. If you are using RTOS in the rest of your application, why do you want to use it through unnecessary wrappers in some other parts of application?
For Ethernet related problems generally look here:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-08 9:26 PM
Can someone pls elaborate how exactly do I test this ?
How do I configure the PC and board in order to get the Ethernet connection and messages?
Thanks
Eli
