cancel
Showing results for 
Search instead for 
Did you mean: 

i get a error for ram " `.bss' will not fit in region `RAM' " on cube ide,help me please

Neşet Aydın
Associate

i developing a analogue dial for my project with littlevgl library on stm32f746-disco, my module working on visual studio, but i add my module cube ide, compiler give a error "Description Resource Path Location Type make: * [makefile:115: stm32f746_disco_no_os.elf] Error 1 stm32f746_disco_no_os C/C++ Problem cubeide" and before compiler gave "`.bss' will not fit in region `RAM'" and "region `RAM' overflowed by 35956 bytes" but ram 340kb, how can i solve this problem please help me.

this images from visual studio and cube ide;0690X00000BuxtkQAB.jpg

0690X00000BuxtzQAB.jpg

2 REPLIES 2
turboscrew
Senior III

The .bss is the section for all statically allocated non-initialized data.

From what's shown, one can't tell what's wrong. Maybe you have too much initialized data? Or maybe the section is just too big.

There can also be something wrong with the linker script.

berendi
Principal

Check the code for large arrays that should be const but aren't.