Skip to main content
MMoha.3
Associate III
January 23, 2021
Question

TouchGFX Put Partial FrameBuffer Location in SDRAM

  • January 23, 2021
  • 6 replies
  • 1443 views

I'm setting up my LCD in SPI mode on my STM32F429 Discovery board. So the framebuffer is set as partial (ManyBlockAllocator).

So my question is whether I can define this framebuffer in the SDRAM to save up some space.

Thanks in advance

This topic has been closed for replies.

6 replies

Romain DIELEMAN
ST Employee
January 25, 2021

Hi,

It is possible to store the framebuffer in the SDRAM (have not tried personally yet with partial framebuffers). Here are links to the documentation to help you: how to put the Framebuffer in external RAM, selecting the Hardware components and the partial framebuffer strategy.

/Romain

MMoha.3
MMoha.3Author
Associate III
January 25, 2021

Hi Romain,

Thanks for the response.

I have already read the links that you sent, but the difference with partial framebuffers is that partial ones are not simply stored as a single variable. The function that constructs the buffer is defined in the FrameBufferAllocator.hpp file and I cannot find a way to use LOCATION_PRAGMA for instance to set the location that the buffers are stored.

I tried to put the LOCATION_PRAGMA there but I had no luck and encountered this error: "section attribute not allowed for 'memory' "0693W000007CZS2QAO.png

Alexandre RENOUX
Visitor II
January 28, 2021

Hello @MMoha.3​ ,

FYI, Partial Framebuffer was created for low cost solution where you don't have external RAM. If the Partial Framebuffer fits perfectly in G0, I'm pretty confident it should fit in the internal RAM of an F429 (256 Kbytes for F429 against 36 Kbytes for G0).

I don't understand your use case, could you elaborate ?

/Alexandre