Skip to main content
Jack li1
Associate III
November 4, 2019
Solved

Working with Partial Frame Buffer memory (4.12.3)

  • November 4, 2019
  • 1 reply
  • 3819 views

Hi:

I have some problem about t Partial Frame Buffer memsory.I declared ManyBlockAllocator<360*182,2, 2> frameBufferAllocator in the program just like in the tutorial,but displayed the error .Are there any detailed tutorials about how to use Partial Frame Buffer memory? 

Thank you very much!!

B,R

Jack li

Error[Li005]: no definition for "touchgfx::FrameBufferAllocatorWaitOnTransfer()"

Best answer by Martin KJELDSEN

Actually,

Here's the project - Check out the file STMicroelectronics\target\TouchGFXHAL.cpp to check out the HAL part is implemented. The functions in there sometimes call other functions that are defined in LCDManager.c to do the actual SPI transfers to the display.

The general idea here is to, as always when have a custom display interface like SPI, to implement the transfer of the framebuffer to the GRAM on the display in the function:

void HAL::flushFrameBuffer(Rect& rect);

This port just uses a hardware timer to drive touchgfx. I think i'll just leave this code with you and you can read the article and ask me questions.

/Martin

1 reply

Martin KJELDSEN
Principal III
November 4, 2019

Hi @Jack li​,

Some methods are expected once you enable the partial framebuffer strategy. It's something you must implement - There's no complete guide on how to make partial framebuffers work except what you read in this article.

https://touchgfx.zendesk.com/hc/en-us/articles/360008040699-Lowering-memory-requirements-using-Partial-Frame-Buffers-

I'll try to write a small piece on how to make Partial Framebuffers work on a G0 with a serial display. Stay tuned!

/Martin

Jack li1
Jack li1Author
Associate III
November 4, 2019

Hi @Martin KJELDSEN​ :

Thanks a lot,I desperately need this feature right now,so could you update this article as soon as possible?

Thank you very much!!

B,R

Jack li