FreeRTOS-Plus-TCP icon indicating copy to clipboard operation
FreeRTOS-Plus-TCP copied to clipboard

FreeRTOS+TCP library doesn't compile with static allocation turned on and dynamic allocation turned off

Open AniruddhaKanhere opened this issue 3 years ago • 2 comments

The library can use queue and IP-task stack which was allocated statically.

Currently, the stack builds when FreeRTOS-Kernel config configSUPPORT_DYNAMIC_ALLOCATION == 1 regardless of the value of configSUPPORT_STATIC_ALLOCATION .

However, with configSUPPORT_STATIC_ALLOCATION == 1 and configSUPPORT_DYNAMIC_ALLOCATION == 0, the stack fails to build since it is using pvPortMalloc in myriad socket functions.

EDIT: Here is the forum post which led to creation of this issue: https://forums.freertos.org/t/freertos-plus-tcp-with-static-memory-allocation/14815

AniruddhaKanhere avatar Apr 07 '22 18:04 AniruddhaKanhere

Has anyone found a way to use the FreeRTOS+TCP library with fully static memory allocation?

pedroluis5 avatar May 17 '25 19:05 pedroluis5

@pedroluis5

Thanks for your interest in FreeRTOS+TCP. We haven't had time to work on this feature yet. We intend to ship this by the end of the year.

tony-josi-aws avatar May 19 '25 06:05 tony-josi-aws