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-17 10:41 AM
MCUs designed for little FLASH placed loader and run big code on memory mapped external flash require config some parts in project and place in main top start init memory maped ext and then can jump to any adress here as in FLASH. Learn use this and manage files to link in regions.
For example KEIL have on every file this options and you can move resulted code to areas as you need
in gcc CubeIDE you require right LD file change and ...
2025-01-17 11:50 AM
>>Is there any way of storing the code in SPI flash and access that.
You'd need to double check the pin utilization. Check manuals and schematics. The latter should be under the "CAD Resources" tab for the display board.
For the NUCLEO-144 models and GFX02Z1, then yes typically the pins get to the QSPI (OSPI/XSPI) peripheral, and can be mapped into memory.
https://www.st.com/en/evaluation-tools/x-nucleo-gfx02z1.html
2025-01-19 01:22 AM - last edited on 2025-01-23 03:28 AM by Andrew Neil
Duplicate - merged.
Hi Everyone,
I am working on a project where i am facing an issue of running out of flash memory.
Can anyone tell me how i can store my whole application code into SPI flash(8 MB) instead of the boards flash(128 kb).
2025-01-19 03:25 AM