1 of 1 people found this helpful
When after code optimization a program doesn't run anymore check for the following:
Every global variable that is changed within an interrupt handler must be declared as volatile.
Btw: Code optimization can be set on a .c file basis.
3 of 3 people found this helpful
If you are using GCC, you can switch to MDK ARMCC. The later does a better job optimizing the code.