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 am trying to use touchfgx on stm32,but I have some problems .the background on the hmi will rotate sometimes,the background has a lot moving lines and shapes that rotate along.I know I can use texture mapper to realize it,but that need many texture...
hello @ferro The answer is affirmtive. this is log output using (noinit):Memory Programming ...Opening and parsing file: ST-LINK_GDB_server_a18780.srecFile : ST-LINK_GDB_server_a18780.srecSize : 442.54 KB Address : 0x08000000 Erasing memory corresp...
hello @ferro I tried change like this:uint32_t frameBuf[(480 * 480 * 2 + 3) / 4] __attribute__ ((section (".noinit")));this frameBuf array is indeed only in ram now.and the program still works fine.thanks for your advice.
I found the framebuf[] in TouchGFXGeneratedHAL.cpp file.It says this: // Use the section "TouchGFX_Framebuffer" in the linker script to specify the placement of the bufferLOCATION_PRAGMA_NOLOAD("TouchGFX_Framebuffer")uint32_t frameBuf[(480 * 480 * 2 ...