Guide to Dynamic Memory Usage in FreeRTOS: Choosing Between malloc and pvPortMalloc
In embedded development, you might write something like this: uint8_t* buf = malloc(1024); // Allocate 1KB of memory It seems convenient, but in a multitasking system like FreeRTOS, there are some details regarding memory management that need attention. Differences Between malloc Heap and FreeRTOS Heap Feature malloc / free pvPortMalloc / vPortFree Heap Source C … Read more