I recently upgraded to MCUXpresso v11.10.0, build 3148. I added a new project this morning using FreeRTOS and it appears that the heap_1.c, heap_2.c, heap_3.c, heap_4.c and heap_5.c are no longer included. This leads to undefined references to functions like vPortMalloc (and pretty much everything else memory related).
Is this on purpose? Where should we get the new heap files?
Hi,
I suggest you refer to the community:
https://embeddedartistry.com/blog/2018/01/15/implementing-malloc-with-freertos/
Hope it can help you
BR
Xiangjun Rong
The blog post you reference is about writing the memory allocation routines. That's not what I'm asking. I'm trying to figure out where the missing files are.
Hi,
I am sorry for misunderstanding you, the heap_x.c is located at the directory in SDK package.
Hope it can help you
BR
XiangJun Rong
Hi,
When you create a project or use the SDK example, the driver file which the example required will be copied to the project. If the driver is not used in the project, it is not copied.
Hope it can help you
BR
XiangJun Rong
Some soft of heap management is required for the FreeRTOS to compile. These files should be copied in when selecting FreeRTOS as the OS. They are not. I think this is a bug.
Sorry, I should have put that in there. It's the Kinetis MK22FN512VMP12.
Hi,
can you tell us the part number you are using?
BR
XiangJun Rong