I am using uVision V2.10 and sometimes have problems in the debugger setting breakpoints. Code lines that allow you to set breakpoints have a grey block on the left side of the code display. I get these grey blocks on some function declaration lines and final closing braces. Lines of C code are also skipped sometimes, although the code is executed. I can't set a breakpoint on these lines. Can anyone help? Thanks
No debugger (I know of) can handle optimized code. Even at the default optimization there will be a few cases of this. Erik
Thanks Erik, Reducing code optimization did help.