From 0187ced9ed2bb2d76901584ef6d19d3df1754816 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20PRUD=27HOMME?= Date: Wed, 24 Sep 2014 22:26:50 +0200 Subject: [PATCH] stm32: add L0xx CPUTAPID MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add CPUTAPID for stm32 L0xx mcu devices. Using -expected-id to add the new id with the id for L1xx devices. This for reduce the duplicated code. Change-Id: I48bd230884ecf38fa200c620b547bdf3b5f59132 Signed-off-by: Rémi PRUD'HOMME Reviewed-on: http://openocd.zylin.com/2315 Tested-by: jenkins Reviewed-by: Andrey Yurovsky Reviewed-by: Spencer Oliver --- tcl/target/stm32l.cfg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 tcl/target/stm32l.cfg diff --git a/tcl/target/stm32l.cfg b/tcl/target/stm32l.cfg old mode 100644 new mode 100755 index 27ebf828d5..1fa06f0f46 --- a/tcl/target/stm32l.cfg +++ b/tcl/target/stm32l.cfg @@ -43,11 +43,12 @@ if { [info exists CPUTAPID] } { # Section 24.6.3 set _CPUTAPID 0x4ba00477 } { - set _CPUTAPID 0x2ba01477 + set _CPUTAPID1 0x2ba01477 + set _CPUTAPID2 0x0bc11477 } } -swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID +swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID1 -expected-id $_CPUTAPID2 if { [info exists BSTAPID] } { # FIXME this never gets used to override defaults... -- 2.30.2