cancel
Showing results for 
Search instead for 
Did you mean: 

I create a project and build it in STM32CUBEIDE, and then got " region `ROM' overflowed" error; But it works in Keil IDE.

johnson jiang
Associate II

Hi all:

I create a project on top of STM32F030K6T6 , and then i want to build it in stm32cubeide, i got the following error:

"c:\st\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: region `ROM' overflowed by 14600 bytes

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:47: rf_cooking.elf] Error 1

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

And then i change to build the project in Keil ide. It works and i can see the memory usage from map file, it totally occupies 20.54K size.

"  Total RO Size (Code + RO Data)        20988 ( 20.50kB)

  Total RW Size (RW Data + ZI Data)       1208 (  1.18kB)

  Total ROM Size (Code + RO Data + RW Data)   21036 ( 20.54kB)"

I am new to STM32CUBEIDE, can anyone gives me any suggestion about how i can change the setting in STM32CUBEIDE and so it can generate the executeble.

Thanks a lot!

1 REPLY 1
johnson jiang
Associate II

Hi:

Does anyone get the same condition?