Very strange .bss RAM overflow
Hello all!
I’m currently building a project with SW4STM32 using a STM32F070F6 but the identical behaviour was also observed on a STM32F030xx.
In my code where I read, over the I2C bus, I’ve defined locally variables... (Is there some way to paste/format code here?)
That compiles and works flawless.
If I define the variable gradScale globally in the file then the linker complaines about the .bss RAM region being overflowed by
“region `RAM’ overflowed by 24608 bytes”.
24608 bytes!?!?!?!?! What the (insert prefered angry word) is going on?
Can somebody point me to what I’m doing wrong here. I’m an experienced programmer on lower level programming but not as much in C.
Thanks in advance!