Hi, We are trying to move our (STM32F7xx) projects from Atollic TrueStudio 9.3.0 to the current STM32CubeIDE 1.6.1. I used the in built Import Atollic TrueSTUDIO project option. It converted it but now will not build.
It says that our BOOTCODE (section in our linker file) has overflowed, see below
c:\st\stm32cubeide_1.6.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: P5000 Comms Bootloader.elf section `.text' will not fit in region `BOOTCODE'
c:\st\stm32cubeide_1.6.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: region `BOOTCODE' overflowed by 3888 bytes
When I set the ide to produce the assembler (.s) file I see that the gcc flags applied are slightly different . So my questions is where are the default gcc flags set for the STM32CubeIDE defined i.e. which file(s) and how can I change them? I have notice that the versions ar ethe same for the Atollic TrueSTUDIO except for isl version (0.15)
.file "P5000_CODI_Modbus_Test_Board.c"
@ GNU C11 (GNU Tools for STM32 9-2020-q2-update.20201001-1621) version 9.3.1 20200408 (release) (arm-none-eabi)
@ compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP
Extract for STM32CubeIDE
...
@ GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
options passed:
-fpreprocessed Src\P5000_CODI_Modbus_Test_Board.i
-mcpu=cortex-m7
-mfpu=fpv5-d16
-mfloat-abi=hard
-mthumb
-march=armv7e-m+fp.dp
-auxbase-strip Src\P5000_CODI_Modbus_Test_Board.o
-g
-O0
-Wall
-std=gnu11
-fverbose-asm
-ffunction-sections
-fdata-sections
-fstack-usage
options enabled: ****** WHERE ARE THESE DEFINED? ******
-faggressive-loop-optimizations
-fassume-phsa
-fauto-inc-dec
-fcommon
-fdata-sections
...
Thanks.