xQueueReceive API in freeRTOS of lwip stack

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

xQueueReceive API in freeRTOS of lwip stack

1,439 Views
rak14
Contributor III

Hi,

Board: S32K148 Microcontroller

lwip stack: v2.0.2

I'm trying to send the tcp packets continuously from client(PC) to server(uC) using tcpecho example given in lwip stack. After some time the tcpip task gets stuck in xQueueReceive API in tcp netconn_recv API.

May I know why it is getting stuck in xQueueReceive and how to resolve the same?

Thanks & regards,

Rak**bleep**h S

 

Tags (1)
0 Kudos
Reply
2 Replies

1,292 Views
NamLee
NXP Employee
NXP Employee

Hi rak14,

This below is answer from our team, please take a look.

>>

The issue was reproduced on the reported software version S32K1 SDK3.0.2 by sending messages every 100 ms, the TCP server stopped receiving messages. It looks like there is no indication of a new message from the enet driver.

 

Solutions and recommendations for the customer:

1.Integrate latest version of TCPIP, RTD and FreeRTOS for which this issue was already solved.

  • S32K1 RTD RTM 1.0.1
    • S32K1 FreeRTOS 1.0.1
    • S32K1 TCPIP 1.0.1

If integration of the latest software package is not possible please try the following:

 

2.Increase the RX/TX buffer size from 4 to 10 from enetif.h file

#define ENET_RXBD_NUM      4

#define ENET_TXBD_NUM      4

 

3.If the use-case allows start send messages every ~250 ms or slower in order to allow processing time for the tcp server.

 

Please try those solutions and let me know if you have further information.

Thank you,

Nam.

0 Kudos
Reply

1,376 Views
NamLee
NXP Employee
NXP Employee

Dear rak14,

A ticket about your issue was raised internal in our side and development team is checking it.

I already push for the answer, please wait us few days for any updates.

Thank you,

Nam.

0 Kudos
Reply