X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tcl%2Ftarget%2Fstm8l.cfg;h=a06c4cb60c6bc10aab41a0bff361ef711a5eb420;hp=5cc99e1913690cc4f53da9389247874a6ce4bf6d;hb=2bc24c06d3ae11d3ec5b128cb1af556669e6c708;hpb=020cb12077cb15be1700bf7733178acfb2b26428 diff --git a/tcl/target/stm8l.cfg b/tcl/target/stm8l.cfg index 5cc99e1913..a06c4cb60c 100644 --- a/tcl/target/stm8l.cfg +++ b/tcl/target/stm8l.cfg @@ -4,7 +4,7 @@ # stm8 devices support SWIM transports only. # -transport select stlink_swim +transport select swim if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME @@ -62,7 +62,7 @@ if { [info exists BLOCKSIZE] } { set _BLOCKSIZE 0x80 } -hla newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0 +swim newtap $_CHIPNAME cpu set _TARGETNAME $_CHIPNAME.cpu @@ -78,8 +78,10 @@ $_TARGETNAME configure -optionstart $_OPTIONSTART -optionend $_OPTIONEND -blocks # Set stm8l type $_TARGETNAME configure -enable_stm8l -# The khz rate does not apply here, only slow <0> and fast <1> -adapter_khz 1 +# Set high speed +adapter speed 800 +# Set low speed +#adapter speed 363 reset_config srst_only