2025-01-09 09:33 AM
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.
2025-01-09 10:47 AM
Why you ask, this is based on your app requirments and
2025-01-13 01:33 AM
Hello @PFlor.2 ,
It is recommended to keep the framebuffer location as "by allocation" to let TouchGFX decide where to put the framebuffer :
You can have a look at our TBS to see how we set it up.
Regards,
2025-01-13 07:27 AM
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:
By Address:
2025-01-13 08:26 AM
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.
2025-01-13 08:32 AM
yes, I hadn't reserved the RAM in the linkerscript yet so I will do that. I agree about using RAM3 and chose 0x20050000 for frame buffer1 and 0x20076000 for frame buffer2 (320x240 pixel display with 16-bit color).
If using "By Allocation" how do you choose noinit so the flash is not consumed?
2025-01-14 01:29 AM
Hello @PFlor.2 ,
This is how it is done in our TBS:
Is this what you are asking for?
Regards,