Skip to main content
Visitor II
September 28, 2023
Question

STM32F407 LWIP TCP Server Rx Stalling

  • September 28, 2023
  • 2 replies
  • 3022 views

Hello, 
I'm working on a STM32F407 LwIP acting as a TCP server with a bare winsock based client on Windows 10.
The project is derived from CubeMX V1.27.1 with the tcp_echoserver.c module creating and communicating to the client.
After a few transfer of bytes, I debug hit the  RxAllocStatus = RX_ALLOC_ERROR; located in HAL_ETH_RxAllocateCallback from ethernetif.c and the transfer receive exchange stalls. Wireshark indicates that TCP ZeroWindow packet pointing that the rx buffer is full.
Are there any solutions to this particular scenario. Pbuf Free and other mechanisms do not help.
@Tesla DeLorean or any members, please advise.

    This topic has been closed for replies.

    2 replies

    Visitor II
    October 31, 2023

    I am running into the same issue too. Seems like the line "LWIP_MEMPOOL_ALLOC(RX_POOL);" is not able geta valid pbuf., did you ever resolve your issue? 

    Visitor II
    October 31, 2023

    Hi Piranha, I studied your post before. However, I am not able to pin point where the problem is. Can you tell me which one should I look at please?

    Graduate II
    October 31, 2023

    Or why do you think you have just one problem? The topic reports many bugs! From where comes that wrong thinking that you can fix just one of many bugs and the device will somehow magically not be affected by all the other bugs?