AnsweredAssumed Answered

STM32F10X - Stack gets corrupted by using big variables/arrays/structs

Question asked by menecken on Mar 14, 2014
Latest reply on Mar 17, 2014 by Andrew Neil
1.      Everything normal
01.PNG
2. Already strange behaviour. Stack size doesn't increase although test3 is one Byte larger 
02.PNG
3. Same here, stack doesnt grow
03.PNG
4. Stack is corrupted (with test 3 being 232 Bytes large)
04.PNG
5. Stack is corrupted with large arrays
05.PNG

I'm on a STM32F103RB - so I should have 20kBytes of RAM. Can anybody explain what's happening here and how I'm able to fix that?

How do I set the LDFLAGS without having a makefile?

Outcomes