I using IAR EWARM 6.5x and FreeRTOS 7.1.0
I have 3 questions related to memory management.
1) I am a bit confused on the relationship between the heap size in the IAR linker script and the configTOTAL_HEAP_SIZE in FreeRTOSConfig.h, if any. Is configTOTAL_HEAP_SIZE only for the RTOS and the size in the linker script for everything else? I am using heap.4. I dont see anything in the map file that resides in the heap space defined by the linker script.
2) I understand the Stack size in the linker script is only used by main before the scheduler starts. I know each task has its own stack, Does that allocation for these stacks come out the memory defined by configTOTAL_HEAP_SIZE ?
3) I am using lwIP in my application and it uses malloc and free as defined in mem.h. Should I use pvPortMalloc and pvPortFree instead? The lwIP example I based my app off of came from NXP and used FreeRTOS so I dont understand why it wouldnt already use pvPortMalloc and pvPortFree.
Thanks for any help.