jtag/drivers/jlink: Use correct command errors
[openocd.git] / tcl / target / sharp_lh79532.cfg
blobaf6ceab886c519f134ce5441721efc7594e502e6
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 reset_config srst_only srst_pulls_trst
5 if { [info exists CHIPNAME] } {
6    set _CHIPNAME $CHIPNAME
7 } else {
8    set _CHIPNAME lh79532
11 if { [info exists ENDIAN] } {
12    set _ENDIAN $ENDIAN
13 } else {
14    set _ENDIAN little
17 if { [info exists CPUTAPID] } {
18    set _CPUTAPID $CPUTAPID
19 } else {
20   # sharp changed the number!
21    set _CPUTAPID 0x00002061
23 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
25 set _TARGETNAME $_CHIPNAME.cpu
26 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME