diff options
author | Jonas Norling <jonas.norling@cyanconnode.com> | 2017-10-17 11:38:16 +0200 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2018-02-24 17:57:13 +0000 |
commit | 30f334e3ae0a9008d274ae76093c1eb3470ff08a (patch) | |
tree | 7fa8029d166d826b88b6b9950cdddfd744bc8f70 /tcl/target | |
parent | 9d7db2dc86ea59115a0979bd654d9b2b273a6d6c (diff) | |
download | riscv-openocd-30f334e3ae0a9008d274ae76093c1eb3470ff08a.zip riscv-openocd-30f334e3ae0a9008d274ae76093c1eb3470ff08a.tar.gz riscv-openocd-30f334e3ae0a9008d274ae76093c1eb3470ff08a.tar.bz2 |
efm32: Add JTAG definitions to EFM32 target file
This makes it possible to program newer EFM32 and EFR32 chips with
JTAG, as opposed to SWD.
Change-Id: Ia3e8c1bbc66fc1f33e8cf2087ccf0d1b4dfd74e1
Signed-off-by: Jonas Norling <jonas.norling@cyanconnode.com>
Reviewed-on: http://openocd.zylin.com/4262
Tested-by: jenkins
Reviewed-by: Fredrik Hederstierna <fredrik@hederstierna.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'tcl/target')
-rw-r--r-- | tcl/target/efm32.cfg | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tcl/target/efm32.cfg b/tcl/target/efm32.cfg index 33610d5..e0c553f 100644 --- a/tcl/target/efm32.cfg +++ b/tcl/target/efm32.cfg @@ -1,5 +1,8 @@ # -# efm32 target +# Silicon Labs (formerly Energy Micro) EFM32 target +# +# Note: All EFM32 chips have SWD support, but only newer series 1 +# chips have JTAG support. # source [find target/swj-dp.tcl] @@ -21,10 +24,14 @@ if { [info exists WORKAREASIZE] } { if { [info exists CPUTAPID] } { set _CPUTAPID $CPUTAPID } else { - set _CPUTAPID 0x2ba01477 + if { [using_jtag] } { + set _CPUTAPID 0x4ba00477 + } { + set _CPUTAPID 0x2ba01477 + } } -swj_newdap $_CHIPNAME cpu -expected-id $_CPUTAPID +swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID adapter_khz 1000 |