2025-01-08 10:09 PM
Hi Everyone, Happy New Year.
I have started working on this project and till now i have added 5 screens in the touchgfx, from touchgfx side the project is running fine on the simulator but it is not getting builded on the cubeIDE. I am running out flash memory.
so please help me how to resolve this issue.
C:/ST/STM32CubeIDE_1.16.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: STM32H503RB-NUCLEO-GFX01M2.elf section `.rodata' will not fit in region `FLASH'
C:/ST/STM32CubeIDE_1.16.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 1512 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:98: STM32H503RB-NUCLEO-GFX01M2.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
Also i am building this project in Release mode. so is there any way to flash this code into SPI_FlASH as i have only 128 kb internal flash but the display flash is 8 MB.
2025-01-16 08:45 PM
Hello Everyone,
I am actively looking into this problem can anyone help me out from this.
2025-01-16 09:12 PM
Optimize level config for C and C++ ???
Assets in external flash ?
2025-01-16 09:15 PM
Thanks for your reply.
Assets are kept in ext Flash only and can you please elaborate this Optimize level config for C and C++ as i am not aware of it?
2025-01-16 10:34 PM
try use higher value as you have now...
2025-01-16 10:45 PM
I have this configuration
2025-01-16 10:49 PM
Ahhh set -O3 in both G++ and GCC
2025-01-17 01:32 AM
still getting the same issue
2025-01-17 02:59 AM
Are you sure SAME? I dont see previous error... And manage your app is your job, what you ask?
Open memory details in App analyzer on your screenshot and locate issue...
2025-01-17 08:55 AM
Not actually i dont know why this error is occurring. also in memory details i see that most of the space in flash is occupied by .text region (112.4kb/128kb).
I am using handleKeyEvent function for navigating and selecting the ui elements. i am wondering if this causing an issue?
is there any way of storing the code in SPI flash and access that. for this i have made changes in .ld file but the bootloader doesnt know about it.