Skip to main content
Associate III
July 4, 2025
Question

STM32CUBEMX configured with freeRTOS and touchGFX , but STM32CUBE IDE have some error and TouchGFX can't into terget

  • July 4, 2025
  • 1 reply
  • 246 views

I use stm32H750ZBT6 to built a LCD driver , when i finished configuring with freeROS , toouchGFX , but STM32CUBE IDE have some error after compiling , touchGFX can't run into target , also,target icon is grey.

the error list photo as follows: 

 

 

 

TouchGFX don't run into target and target icon is grey:

miker_1-1751618728726.png

 

STM32CUBEMX add toucuGFX and freeROS :

miker_0-1751618603161.png

 

STM32CUBEMX  error list after compiling : 

D:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: SC550_43.elf section `.text' will not fit in region `FLASH'

D:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: SC550_43.elf section `TouchGFX_Framebuffer' will not fit in region `RAM_D1'

D:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 862828 bytes

D:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: region `RAM_D1' overflowed by 56040 bytes

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:120: SC550_43.elf] Error 1

"make -j12 all" terminated with exit code 2. Build might be incomplete.

1 reply

Osman SOYKURT
Technical Moderator
July 4, 2025

Hello @miker ,

1- To be able to run on target, you have to write your own Makefile, and configure your touchgfx project to exexute compilation target command :

OsmanSOYKURT_0-1751634969626.png

You should try to get inspiration from our existing TBS to know what to put in your Makefile (in the gcc folder).

2- If you want to add an OS, we have an article explaining step by step how to do it. Please refer to this page

3- These logs are characteristic to wrong configuration of your linker file. You should try to check if the linker file of your STM32CubeIDE project is correct and you're placing your elements in the correct sections.

Osman SOYKURTST Software Developer | TouchGFX