Skip to main content
PFlor.2
Senior II
January 9, 2025
Solved

TouchGFX framebuffer location for STM32H563

  • January 9, 2025
  • 3 replies
  • 2124 views

Is there a recommended RAM address for placing the framebuffer on the STM32H563?  I just picked out 0x20040000 but wondered if I should just put it at the beginning address (0x20000000), wasn't sure what is recommended.

Best answer by GaetanGodart

Hello @PFlor.2 ,

 

This code (talking about the NOLOAD)

GaetanGodart_0-1737106026768.png

prevents the framebuffer section from being loaded into the ram at startup.

Is it what you were asking?

 

Regards,

3 replies

MM..1
Chief III
January 9, 2025

Why you ask, this is based on your app requirments and

MM1_0-1736448460426.png

 

GaetanGodart
Technical Moderator
January 13, 2025

Hello @PFlor.2 ,

 

It is recommended to keep the framebuffer location as "by allocation" to let TouchGFX decide where to put the framebuffer :

GaetanGodart_0-1736760790828.png

You can have a look at our TBS to see how we set it up.

 

Regards,

PFlor.2
PFlor.2Author
Senior II
January 13, 2025

Thanks for the tip but I started that way and it appears that Flash memory is taken with this approach, by address does not utilize the flash space like by allocation does.  Can you advise on this?

By Allocation:

PFlor2_2-1736781996680.png

PFlor2_3-1736782043477.png

By Address:

PFlor2_1-1736781843496.png

PFlor2_0-1736781746898.png

 

MM..1
Chief III
January 13, 2025

If you choice by address, then linker script require reservations for this, for example

RAM  0x20000000 256k

RAMFB 0x20040000 ...

but as i show you better is use maybe RAM3

And by allocation result to init in flash when you dont mark it as noinit... result same size in flash and ram.

GaetanGodart
GaetanGodartBest answer
Technical Moderator
January 17, 2025

Hello @PFlor.2 ,

 

This code (talking about the NOLOAD)

GaetanGodart_0-1737106026768.png

prevents the framebuffer section from being loaded into the ram at startup.

Is it what you were asking?

 

Regards,

MM..1
Chief III
January 17, 2025

Are you sure Gaetan , that ALIGN(0x4) is ok for LTDC FIFO ?

PFlor.2
PFlor.2Author
Senior II
January 17, 2025

I'm using a SPI display so not using LTDC if that matters.