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

PROBLEMS WITH MACROS WHEN DEBUGGING

When I am debugging an assembler module in uVison2 v2.40 and I set a breakpoint in a
macro (standard macro), the debugger executes
all instruccions in that macro unless the last instruction.

But if I reach the macro by pressing step-over since a previous instruction, when I reach the macro and press step-over, the debugger start by the first instruction of the macro but I need to press step-over more
than once to get out of the macro. I need to press step-over as many times as instructions are executed inside the macro.

Does any one know how to execute a macro in one step as you can do in dScope?

  • Step-over differs from step-into only for the case of stepping to a subroutine call, not macro invocations. As far as the debugger is informed about these things, macros don't really exist.

    If you want to step over a macro, you'll probably have to move the cursor down one line and "run to cursor".