Skip to main content
Stefan Raschhofer
Associate
May 24, 2018
Question

Disable TCP in lwIP with 0 connections

  • May 24, 2018
  • 3 replies
  • 1128 views
Posted on May 24, 2018 at 15:10

When I disable TCP of the lwIP in CubeMX and set the MEMP_NUM_TCP_PCB to 0, I can't compile without error 

MEMP_NUM_TCP_PCB has to be > 0.

Seems like a bug?

    This topic has been closed for replies.

    3 replies

    Technical Moderator
    May 24, 2018
    Posted on May 24, 2018 at 17:20

    Hello

    stefan.raschhofer

    ,

    Please, we need some informationto check your issue:

    Which device andCubeMx version are you using ?

    Can you confirm please that this issue is reproduced with the latest version of CubeMx 4.1 ?

    We will check this issue and come back to you asap.

    Best Regards

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Stefan Raschhofer
    Associate
    May 25, 2018
    Posted on May 25, 2018 at 07:01

    Hi Imen,

    yes, CubeMx 4.25.1.

    It's for a STM32F777VI, Firmware Package STM32Cube FW_F7 V1.11.0.

    Regards

    Nawres GHARBI
    Technical Moderator
    May 29, 2018
    Posted on May 29, 2018 at 14:21

     ,

     ,

    Hi Stefan, ,

    Yes I confirm, ' ♯ define ,LWIP_TCP 0' is no generated in lwipopts.h when the TC is disabled. ,

    Please add it manually and it will be fixed for the 4.26.1

    Stefan Raschhofer
    Associate
    May 30, 2018
    Posted on May 30, 2018 at 08:19

    Ok. Thanks for the quick response.