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

Is FreeRTOS Dynamically Allocated Memory?

Is FreeRTOS Dynamically Allocated Memory?

Follow+Star PublicNumber, don’t miss the wonderful content Author | strongerHuang WeChat Public Account | Embedded Column Some readers might ask: Can FreeRTOS create tasks and delete tasks? Is it dynamically allocated memory? xTaskCreate(LED_Task, "LED_Task", 128, NULL, 6, NULL); If we want to elaborate on this question, there are many related knowledge points involved. Below are … Read more