2024-12-16 08:22 AM
Hi Everyone.
I use STM32F412G-DISCO to custom TFT 320x240 and set up the touchGFX the same.
But when I generate the code it shows me the error "STM32F412G-DISCO.elf section `FramebufferSection' will not fit in region `RAMFB'
I checked in the flash file. the RAMFB is configurated 128K
I don't know how to fix this. Can anyone help me advice in this case?
2024-12-16 08:35 AM
Simply 320x240x2 = 150k then cant fit into 128k
2024-12-17 01:25 AM
Hello @HAnh ,
As MM said, your framebuffer is too big for the size of your RAMFB.
The color depth of your pixels is RGB565 so 5+6+5 = 16 bits which is 2 bytes.
So you will need 240 * 320 * 2bytes = 153600 bytes.
You need to either :
Regards,