2019-04-18 07:30 AM
My program suppose to be like following:
Once I call MX_LWIP_Init() in defaultTask a got stuck in ntpclientTask on
socket( AF_INET, SOCK_DGRAM, IPPROTO_UDP ); // Create a UDP socket.
at queue.c
BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
{
BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
TimeOut_t xTimeOut;
Queue_t * const pxQueue = ( Queue_t * ) xQueue;
configASSERT( pxQueue );
If I call MX_LWIP_Init() ans socket(...) in same task I have no issue.
Any idea how I can call MX_LWIP_Init() ans socket(...) in different tasks?
Thank you
Rudo
2019-04-23 11:34 AM
Well, You have to ensure that API is used only after initialization is completed. By the way, if defaultTask has the lowest priority, it starts executing as the last one.
2019-04-25 10:50 AM
Thanks a lot, it was my case.