This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RL debbuger crash when using optimization Level 2 & 3

Hi
When I use optimization level 2 or 3, the debbuger crash and the Uvision halt.
I'm using uVision 4.21 and ULINK Pro with STM32F103ZC (the same problem also with the ST-LINK V2).
Thanks

Parents
  • Are you sure the debugger crashes?

    Might it not be that you put a breakpoint and then press Run. And don't get the program to stop at the breakpoint because higher optimization levels have rearranged the actual code generation so you no longer have any good matching between source lines and blocks of one or more assembler instructions?

    If you do press run and have the breakpoint at the wrong place, then the debugger will run and run and run, without "returning" to the editor.

Reply
  • Are you sure the debugger crashes?

    Might it not be that you put a breakpoint and then press Run. And don't get the program to stop at the breakpoint because higher optimization levels have rearranged the actual code generation so you no longer have any good matching between source lines and blocks of one or more assembler instructions?

    If you do press run and have the breakpoint at the wrong place, then the debugger will run and run and run, without "returning" to the editor.

Children