RT-STM32F407-DISCOVERY-MEMS -O2 -O0 Issue
Moderator: RoccoMarco
-
fallentemplar
- Posts: 6
- Joined: Tue Nov 06, 2012 8:53 pm
RT-STM32F407-DISCOVERY-MEMS -O2 -O0 Issue
I was trying to run RT-STM32F407-DISCOVERY-MEMS demo on my ST Discovery board. If I modify the make file to -O0 from -O2, the board mems demo program fails to run. After setting it back to O2, the program runs again. Does anyone have any idea of why this is?
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: RT-STM32F407-DISCOVERY-MEMS -O2 -O0 Issue
Hi,
Probably because a stack overflow, when compiling with -O0 the program takes a lot more space in stack frames.
Try increasing stack sizes if you need -O0.
Giovanni
Probably because a stack overflow, when compiling with -O0 the program takes a lot more space in stack frames.
Try increasing stack sizes if you need -O0.
Giovanni