Skip to content

Conversation

@jreineckearm
Copy link
Contributor

Addresses #463

  • Custom reset logic calls pauseIfNeeded before calling customResetCommands.
  • It decrements the pauseCounter if > 0 after that. We do not want to automatically set the target running after the reset (or call continueIfNeeded) unless the commands do that. Even if it was running when pressing the reset button. This is to have a somewhat well-defined behavior. See issue description. The decrement is necessary to avoid breaking the logic the next time it is called in a different context.

Signed-off-by: Jens Reinecke <jens.reinecke@arm.com>
Signed-off-by: Jens Reinecke <jens.reinecke@arm.com>
Remove step used to test if my expectations around step
while running for various modes is true.

Signed-off-by: Jens Reinecke <jens.reinecke@arm.com>
@jreineckearm jreineckearm marked this pull request as ready for review October 24, 2025 14:38
@jreineckearm jreineckearm changed the title Silently stop target before reset if running Silently pause target before reset if running Oct 24, 2025
Signed-off-by: Jens Reinecke <jens.reinecke@arm.com>
Copy link
Contributor

@thorstendb-ARM thorstendb-ARM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with STLink on Nucleo-L476. Runs as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants