]> git.sur5r.net Git - openocd/commitdiff
stm32: add L0xx CPUTAPID
authorRémi PRUD'HOMME <prudhomme.remi@gmail.com>
Wed, 24 Sep 2014 20:26:50 +0000 (22:26 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 6 Oct 2014 18:41:20 +0000 (18:41 +0000)
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 <prudhomme.remi@gmail.com>
Reviewed-on: http://openocd.zylin.com/2315
Tested-by: jenkins
Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
tcl/target/stm32l.cfg [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 27ebf82..1fa06f0
@@ -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...