projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers/am335xgpio: Migrate to adapter gpio commands
[fw/openocd]
/
tcl
/
target
/
stm8l.cfg
diff --git
a/tcl/target/stm8l.cfg
b/tcl/target/stm8l.cfg
index f3c94280aed288573cf448a1373994473549eea6..583a2a4834341672e4b7e9edd5c52aa4395c671a 100644
(file)
--- a/
tcl/target/stm8l.cfg
+++ b/
tcl/target/stm8l.cfg
@@
-1,10
+1,12
@@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
# script for stm8l family
#
# stm8 devices support SWIM transports only.
#
# script for stm8l family
#
# stm8 devices support SWIM transports only.
#
-transport select s
tlink_s
wim
+transport select swim
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
@@
-62,7
+64,7
@@
if { [info exists BLOCKSIZE] } {
set _BLOCKSIZE 0x80
}
set _BLOCKSIZE 0x80
}
-hla newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0
+swim newtap $_CHIPNAME cpu
set _TARGETNAME $_CHIPNAME.cpu
set _TARGETNAME $_CHIPNAME.cpu
@@
-78,8
+80,10
@@
$_TARGETNAME configure -optionstart $_OPTIONSTART -optionend $_OPTIONEND -blocks
# Set stm8l type
$_TARGETNAME configure -enable_stm8l
# 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
reset_config srst_only