cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, i hava got a problem with full scrren size controls. Sometimes, there will be a flash line end of the controls. What i suppose to do with this problem?

Dd.21
Associate II

Box

0693W000006H8vNQAS.jpg 

Container0693W000006H8vIQAS.jpgButton0693W000006H8vDQAS.jpg

17 REPLIES 17

The only thing I do for framebuffer that I set the address by setFrameBufferStartAddresses() in TouchGFXGeneratedHAL.cpp.

I think this is for the touchgfx framework. So , nothing to do.

What you have in LD linker files? And how IDE ?

When you use CubeIDE then you have file

STM32XXXXXXX_FLASH.ld and for example

/* Highest address of the user mode stack */
_estack = ORIGIN(RAM) + LENGTH(RAM);	/* end of "RAM" Ram type memory */
 
_Min_Heap_Size = 0x200 ;	/* required amount of heap  */
_Min_Stack_Size = 0x400 ;	/* required amount of stack */
 
/* Memories definition */
MEMORY
{
  CCMRAM    (xrw)    : ORIGIN = 0x10000000,   LENGTH = 64K
  RAM    (xrw)    : ORIGIN = 0x20000000,   LENGTH = 320K
  FLASH    (rx)    : ORIGIN = 0x8000000,   LENGTH = 2048K
}
 example from F469

your numbers and memory may differ, but when you plan framebuffer in RAM you need change this file or use normal aloccation as for example

uint8_t FB[320*360*3];

better but only in KEIL

__attribute__((at(address))) variable

in gcc section and modified LD file.

0693W000006HHJ3QAO.pngyes, i configured this. And, My IDE is STM32CUBEIDE

Hmm when realy this file is used for compile and flash your project, then i dont understand .

try change framebuffer to 0x20048000

RAM size to LENGTH = 288K

and dont place code as image here pls.

Sorry for the image.

Thank for your suggestions, and i will try this, but why? Seems to be getting smaller.

Only RAM is smaller, because when framebuffer start on 0x20048000

RAM must end here.

Fine, I get it​. Thanks a lot!

By the way, happy new year!