Memory Allocators in FreeRTOS: heap1 to heap5 (Part 3)

Memory Allocators in FreeRTOS: heap1 to heap5 (Part 3)

heap1   Design Concept  Using fixed-size memory blocks divided into multiple equal-sized memory blocks.      Usage Process   1  Initialization  2  Call  Using xNextFreeByte as a marker, find the starting address of the unallocated bytes and return the byte position 3  Release  Not supported Understanding pvPortMalloc()   Memory allocation needs to consider two aspects of byte alignment     1  Memory allocation byte alignment  2  Memory heap starting address byte alignment   … Read more