Skip to main content
MKabu.1
Associate II
August 31, 2020
Solved

Cant find BoardConfiguration.cpp file in version 4.13.0

  • August 31, 2020
  • 4 replies
  • 1333 views

I want to uncomment #define SINGLE_FRAME_BUFFER_INTERNAL to use single frame buffer in internal SRAM and i dont want TouchGFX to generate codes about FMC. Where exactly BoardConfiguration.cpp generated.

This topic has been closed for replies.
Best answer by Martin KJELDSEN

We don't use that define with the Generator. It was mostly for BoardConfiguration.cpp's that could handle both double and single. TouchGFX Generator just calls setFrameBufferStartAddresses with one, two or three arguments. And in the case of single FB we use a specific framebuffer strategy.

/Martin

4 replies

MKabu.1
MKabu.1Author
Associate II
August 31, 2020

@Martin KJELDSEN​  can you help?

Martin KJELDSEN
Principal III
August 31, 2020

How did you generate the project? If through TouchGFX Generator / CubeMX then it's not called BoardConfiguration anymore, but TouchGFXConfiguration.cpp and its located in the TouchGFX/target/generated/ folder.

The define is there because you chose SINGLE Framebuffer in the generator (if you did) and you can just choose something else.

/Martin

MKabu.1
MKabu.1Author
Associate II
August 31, 2020

Well i started the project on TouchGFX, created my GUI and generated to code to open the project from .project file with STM32CubeIDE. From the CubeMX i changed the Double Frame option to single But i couldnt find the #define SINGLE_FRAME_BUFFER_INTERNAL in TouchGFXConfiguration.cpp. Do suggest me to start project from CubeMX perspective and import to CubeIDE and lastly add GUI from .part file from scratch?

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
August 31, 2020

We don't use that define with the Generator. It was mostly for BoardConfiguration.cpp's that could handle both double and single. TouchGFX Generator just calls setFrameBufferStartAddresses with one, two or three arguments. And in the case of single FB we use a specific framebuffer strategy.

/Martin