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

Open
#449 2 comments 0 reactions 1 assignee View on GitHub

@moninom1 is already working on this.

Since Feb 27, 2024.

Assessment

This issue has not been assessed yet.

Description

bug

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

Dominant language
C
Stars
215
Forks
222
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FreeRTOS/FreeRTOS-Plus-TCP

All issues in FreeRTOS/FreeRTOS-Plus-TCP

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.