Why the touchgfx framebuffer goes into flash?
I made a touchgfx project by CubeIDE,when I choose touchgfx framebuffer by allocation,after build ,the framebuffer is placed into flash,then ram.I wonder why.
I made a touchgfx project by CubeIDE,when I choose touchgfx framebuffer by allocation,after build ,the framebuffer is placed into flash,then ram.I wonder why.
Hi
It seems to be located at RAM 0x2001b0 right ? I guess the issue is that it is initialized by C++ RTE. The frame buffers needs to be marked by some gcc speciofic __attribute__, hm is it 'noinit' ?
[Edit]
https://www.nongnu.org/avr-libc/user-manual/mem_sections.html
This sections is a part of the .bss section. What makes the .noinit section special is that variables which are defined as such:
will not be initialized to zero during startup as would normal .bss data.
[Edit 2]
I see file
\ST\touchgfx\framework\include\touchgfx\hal\Config.hpp
has many defines dealing with that sort of problems. It is a jungle and I run simulation so cant check with embedded toolchain.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.