Skip to main content
JunBeom Kim
Associate
November 12, 2019
Question

Does TouchGFX use uHeap area by heap.2 ?

  • November 12, 2019
  • 1 reply
  • 736 views

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 ?

This topic has been closed for replies.

1 reply

Martin KJELDSEN
Principal III
November 29, 2019

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