Skip to main content
paolog
Associate III
December 3, 2021
Solved

Frame buffer allocation aborts program

  • December 3, 2021
  • 2 replies
  • 1064 views

I'm testing TouchGFX on an STM32WB55 Nucleo Board. I configured the board using CubeMX, and designed a very simple screen in TouchFGX 4.18. I'm using an SPI LCD with ARGB222 format, and a partial buffer (just 1 block of 20 lines). Variable 'memory' is correctly allocated when debugging (MDK_ARM).

Returning from allocateBlock(), the program goes into abort() function (called by _ZN8touchgfx3HAL27configurePartialFrameBufferEtttt).

Am I missing something from the configuration?

This topic has been closed for replies.
Best answer by paolog

Ok... looking at the source of simulator I found out that the assertion is coming from the fact that "REFRESH_STRATEGY_PARTIAL_FRAMEBUFFER only supports 16bit or 24bit framebuffer". I missed that in reading the documentation...

2 replies

paolog
paologAuthor
Associate III
December 13, 2021

I'm still stuck into this. I changed the board and the development system, but the problem is still there. CubeMX IDE shows that the problem comes from an assertion at the beginning of library function touchgfx::HAL::configurePartialFrameBuffer().

Is there any chance to know what is checked in that assertion?

paolog
paologAuthorBest answer
Associate III
December 14, 2021

Ok... looking at the source of simulator I found out that the assertion is coming from the fact that "REFRESH_STRATEGY_PARTIAL_FRAMEBUFFER only supports 16bit or 24bit framebuffer". I missed that in reading the documentation...