2020-01-26 08: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);
}
2020-02-02 01:14 AM
Hi ,
Can you tell me how u managed to build/
load an Ethernet app and t which board?
Thanks
Eli
2020-02-02 04:13 AM
Better leave sys_***() functions for lwIP internal use and for your application use your RTOS's normal functions.
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.
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.
2020-02-08 03: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:
2020-02-08 09: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