doc: Improve ftdi driver section
[openocd.git] / tcl / target / ti_msp432p4xx.cfg
blob8600867077c7433272961f3097526633ea929a96
2 # Texas Instruments MSP432P4xx - ARM Cortex-M4F @ up to 48 MHz
4 # http://www.ti.com/MSP432
7 if { [info exists CHIPNAME] } {
8         set _CHIPNAME $CHIPNAME
9 } else {
10         set _CHIPNAME msp432p4xx
13 if { [info exists CPUTAPID] } {
14         set _DAP_TAPID $CPUTAPID
15 } else {
16         set _DAP_TAPID 0x4ba00477
19 if { [info exists DAP_SWD_ID] } {
20         set _DAP_SWD_ID $DAP_SWD_ID
21 } else {
22         set _DAP_SWD_ID 0x2ba01477
25 source [find target/swj-dp.tcl]
27 if { [using_jtag] } {
28         set _DAP_ID $_DAP_TAPID
29 } else {
30         set _DAP_ID $_DAP_SWD_ID
33 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_DAP_ID
35 set _TARGETNAME $_CHIPNAME.cpu
36 target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME
38 if { [info exists WORKAREASIZE] } {
39         set _WORKAREASIZE $WORKAREASIZE
40 } else {
41         # On MSP432P401x Bank0 (8k) is always powered
42         set _WORKAREASIZE 0x2000
45 $_TARGETNAME configure -work-area-phys 0x20000000 \
46                        -work-area-size $_WORKAREASIZE -work-area-backup 0
48 if { ![using_hla] } {
49         cortex_m reset_config sysresetreq
52 adapter_khz 500