Skip to content
Commit 7b31b0e2 authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Marti Bolivar
Browse files

scripts: west_commands: openocd: Use 'reset init' by default

Instead of 'reset halt', default the command to reset and halt the target
to 'reset init'.

OpenOCD strictly requires 'reset init' to halt and prepare the device
before flash programming.
See https://openocd.org/doc/html/Flash-Commands.html

 chapter
"12.2 Preparing a Target before Flash Programming."

For targets implementing the init hook, it will allows to perform some
target specific init improvements (such as speed flash improvements).
Targets not implementing this hook will end up executing the usual and
previous 'halt'.

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
parent 03c8deb5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment