Skip to content

Conversation

@henrikbrixandersen
Copy link
Member

Add support for specifying a custom OpenOCD command to be used for resetting and halting a target.

As noted in the OpenOCD documentation, not all targets support the "reset halt" command for halt-on-reset.

Some targets support a software emulation via the "soft_reset_halt" command. Other targets may require a custom command (e.g. a command defined in the target configuration file).

Signed-off-by: Henrik Brix Andersen [email protected]

Copy link
Contributor

@chrta chrta left a comment

Choose a reason for hiding this comment

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

LGTM. This way now we can also omit the reset when starting the debugserver.

I have just one unrelated (and non-blocking) question/comment.

@henrikbrixandersen henrikbrixandersen force-pushed the openocd_reset_halt branch 2 times, most recently from 1ea6f4a to 76d10eb Compare August 27, 2021 15:01
Add support for specifying a custom OpenOCD command to be used for
resetting and halting a target.

As noted in the OpenOCD documentation, not all targets support the
"reset halt" command for halt-on-reset.

Some targets support a software emulation via the "soft_reset_halt"
command. Other targets may require a custom command (e.g. a command
defined in the target configuration file).

Signed-off-by: Henrik Brix Andersen <[email protected]>
@nashif nashif merged commit 7d94b0c into zephyrproject-rtos:main Aug 27, 2021
@henrikbrixandersen henrikbrixandersen deleted the openocd_reset_halt branch August 27, 2021 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants