AN4989 Rev 3
35/118
AN4989
Compiling for debug
117
3.1.2 Keil
®
MDK-Arm µVision
In Project
Option for Target->C/C++->Optimization
Figure 19. Keil
®
µVision Code Optimization option
Keil
®
documentation suggests that Level1 (-O1) can be a suitable alternative for debug.
Refer to www.keil.com support page
Compiler optimization levels and the debug view
for
details.