cancel
Showing results for 
Search instead for 
Did you mean: 

Issues using TouchGFX Generator with Partial Frame Buffers

ebray
Associate II

I'm using STM32CubeIDE 1.3.1 with TouchGFX Generator 4.13.0 to create a project using Partial Frame Buffers. I've found a few issues that appear to be related to the code generation template for TouchGFXGeneratedHAL.cpp:

  1. The variable blockAllocator is declared after it is used. This leads to a "not declared" error when compiling.
  2. The declaration for blockAllocator causes "error: 'ManyBlockAllocator' does not name a type" during compilation. ManyBlockAllocator is in the touchgfx namespace and this needs to be included in the declaration to resolve the error. (eg. touchgfx::ManyBlockAllocator)
  3. The declaration for blockAllocator allocates the memory for the partial frame buffers. However, the frameBuf variable used for the single and double buffer schemes is still declared in the code. This effectively allocates a single full-sized frame buffer in addition to the partial buffers. This unnecessarily consumes a lot of RAM and defeats the purpose of the partial frame buffer scheme.
1 REPLY 1
ebray
Associate II

In addition to the above issues, the extern declarations for transmitFrameBufferBlock() and isTransmittingData() also need to be placed before they are used in the code.