cortex_a: fix endiannes issues on TI TMS570
[openocd.git] / tcl / target / lpc1850.cfg
blob94aec38fef3b66f6699397cd79f59accc08da396
2 adapter_khz 500
4 if { [info exists CHIPNAME] } {
5         set _CHIPNAME $CHIPNAME
6 } else {
7         set _CHIPNAME lpc1850
10 if { [info exists ENDIAN] } {
11    set _ENDIAN $ENDIAN
12 } else {
13    set _ENDIAN little
16 # M3 JTAG mode TAP
18 if { [info exists M3_JTAG_TAPID] } {
19    set _M3_JTAG_TAPID $M3_JTAG_TAPID
20 } else {
21    set _M3_JTAG_TAPID 0x4ba00477
24 jtag newtap $_CHIPNAME m3 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M3_JTAG_TAPID
26 set _TARGETNAME $_CHIPNAME.m3
27 target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position $_TARGETNAME
29 # if srst is not fitted use SYSRESETREQ to
30 # perform a soft reset
31 cortex_m reset_config sysresetreq