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

BUG? Executing RESET Command through Source Code in uVision Debug Mode

Hi,

I'm using MDK 5.24a with µVision V5.24.2.0 and I have a really confusing behaviour.

When I'm in Debug Mode and stopped in a Breakpoint, I step into an other function. This function has several Defines including RESET. This is a Define and I can see it in the header file when I'm not in Debug Mode. When I do a right click on it to get some information, the Debugger just resets the target, like I send a command over the built-in console, but I don't type any command!.

Target: STM32F4

Just FYI...

Kind regards
Andreas

  • Defines likely turn into something else via the preprocessing done by the compiler. You'll want to dig back through the definitions to the point you have an actual instruction or function call.

    Probably NVIC_SystemReset() or something similar. Stepping into something the resets the core will likely do exactly that, in debug mode, or whatever.

    You'll need to provide more context to understand if this something abnormal.

  • This is a bug - RESET should not reset the target
    in this context.
    Will be fixed with the next MDK-Version - the
    core-debug-drivers SarmCM3.dll and SarmV8M.dll
    will include the fix.