diff options
author | Ake Rehnman <ake.rehnman@gmail.com> | 2020-03-29 21:57:53 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-05-24 21:34:48 +0100 |
commit | 2bc24c06d3ae11d3ec5b128cb1af556669e6c708 (patch) | |
tree | 5bc3bfcccb4724f24b368d30d10d39eb926e8b74 /tcl | |
parent | 1156fcd79e2700c7094b0a5ab435a4b7f31a8f41 (diff) | |
download | riscv-openocd-2bc24c06d3ae11d3ec5b128cb1af556669e6c708.zip riscv-openocd-2bc24c06d3ae11d3ec5b128cb1af556669e6c708.tar.gz riscv-openocd-2bc24c06d3ae11d3ec5b128cb1af556669e6c708.tar.bz2 |
stm8 target: make adapter speed settings work
Previously the adapter speed settings were hard-coded to
connect with low speed then switch over to high speed
regardless what was mentioned in the cfg files. Now the
stm8 target intercept adapter speed settings and configure
the stm8 control registers accordingly.
Change-Id: I7419514e5214e4b43b9d51253cf5b7f04a233533
Signed-off-by: Ake Rehnman <ake.rehnman@gmail.com>
Reviewed-on: http://openocd.zylin.com/5548
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r-- | tcl/target/stm8l.cfg | 6 | ||||
-rw-r--r-- | tcl/target/stm8s.cfg | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tcl/target/stm8l.cfg b/tcl/target/stm8l.cfg index 782350f..a06c4cb 100644 --- a/tcl/target/stm8l.cfg +++ b/tcl/target/stm8l.cfg @@ -78,8 +78,10 @@ $_TARGETNAME configure -optionstart $_OPTIONSTART -optionend $_OPTIONEND -blocks # Set stm8l type $_TARGETNAME configure -enable_stm8l -# Set low speed at debug entry -adapter speed 363 +# Set high speed +adapter speed 800 +# Set low speed +#adapter speed 363 reset_config srst_only diff --git a/tcl/target/stm8s.cfg b/tcl/target/stm8s.cfg index 277cdc9..2dae655 100644 --- a/tcl/target/stm8s.cfg +++ b/tcl/target/stm8s.cfg @@ -75,8 +75,10 @@ $_TARGETNAME configure -optionstart $_OPTIONSTART -optionend $_OPTIONEND -blocks # Uncomment this line to enable interrupts while instruction step #$_TARGETNAME configure -enable_step_irq -# Set low speed at debug entry -adapter speed 363 +# Set high speed +adapter speed 800 +# Set low speed +#adapter speed 363 reset_config srst_only |