求助:关于stm32单片机freertos任务中申请内存的问题

2019-12-09 20:01发布

本帖最后由 ma_xiang 于 2019-10-30 18:07 编辑

请问一下,1图和2图使用的内存是占用了哪一个存储空间
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
11条回答
azeng
2019-12-10 22:50
ma_xiang 发表于 2019-10-31 09:38
我用的是heap4

/*
* A sample implementation of pvPortMalloc() and vPortFree() that combines
* (coalescences) adjacent memory blocks as they are freed, and in so doing
* limits memory fragmentation.
*
* See heap_1.c, heap_2.c and heap_3.c for alternative implementations, and the
* memory management pages of http://www.FreeRTOS.org for more information.
*/


/* Allocate the memory for the heap. */
#if( configAPPLICATION_ALLOCATED_HEAP == 1 )
        /* The application writer has already defined the array used for the RTOS
        heap - probably so it can be placed in a special segment or address. */
        extern uint8_t ucHeap[ configTOTAL_HEAP_SIZE ];
#else
        static uint8_t ucHeap[ configTOTAL_HEAP_SIZE ];
#endif /* configAPPLICATION_ALLOCATED_HEAP */


都是开源的了,啥问题都是可以找到嘛,既不是heap也不是stack,是个静态数组。

一周热门 更多>