Skip to main content
Neşet Aydın
Visitor II
December 26, 2019
Question

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

  • December 26, 2019
  • 2 replies
  • 3088 views

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

This topic has been closed for replies.

2 replies

turboscrew
Senior III
December 27, 2019

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
December 27, 2019

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