With configSUPPORT_STATIC_ALLOCATION set to 1 and configSUPPORT_DYNAMIC_ALLOCATION set to 0 within the FreeRTOSConfig.h file, the pvPortMallocSocket macro within the FreeRTOS_Socket.c file still expects a memory allocation scheme (i.e. heap_4.c) and configSUPPORT_DYNAMIC_ALLOCATION be set to 1. I already modified NetworkInterface.c and FreeRTOS_Sockets.c to utilize static allocation of RTOS objects much like the other +TCP stack modules already had… ?
Yes, you are correct. This is a bug in the FreeRTOS+TCP stack. Currently, you can modify your code locally or use dynamic allocation.
We have added this to our backlog. Currently are working on other important things and we will get to fixing this problem in a while.
If you want to create a PR, you are very welcome. To track this issue and make sure it doesn’t get lost, I have created an issue in the FreeRTOS+TCP library repository: FreeRTOS+TCP library doesn’t compile with static allocation turned on and dynamic allocation turned off.
Thanks again for bringing this issue to our attention.