cancel
Showing results for 
Search instead for 
Did you mean: 

Does TouchGFX use uHeap area by heap.2 ?

JunBeom Kim
Associate II

As I know from ST Cube S/W vase, third-party S/W(ex: lwIP, FatFS, etc) using FreeRTOS is using memory management by FreeRTOS(heap_1.c, heap_2.c, heap_4,c), etc.

I think that TouchGFX internal engine doesn't use uHeap area.

also, I think that TouchGFX use .heap area by application.ld(GCC build).

I checked _sbrk() implementation in gccstubs.cpp.

It means that new() is called, dynamic memory is allocated from .heap area.

Is it correct ?

1 REPLY 1
Martin KJELDSEN
Chief III

Hi Jb,

TouchGFX does not use dynamic allocation of memory, so that's all up to the user to configure (via heap_x.c in the case of FreeRTOS). and configuring the .heap area if not using an RTOS.

/Martin