]> git.sur5r.net Git - openocd/blob - tcl/target/nrf52.cfg
flash Kinetis: implement automatic bank creation based on device probe
[openocd] / tcl / target / nrf52.cfg
1 #
2 # Nordic nRF52 series: ARM Cortex-M4 @ 64 MHz
3 #
4
5 source [find target/swj-dp.tcl]
6
7 if { [info exists CHIPNAME] } {
8         set _CHIPNAME $CHIPNAME
9 } else {
10         set _CHIPNAME nrf52
11 }
12
13 if { [info exists CPUTAPID] } {
14         set _CPUTAPID $CPUTAPID
15 } else {
16         set _CPUTAPID 0x2ba01477
17 }
18
19 swj_newdap $_CHIPNAME cpu -expected-id $_CPUTAPID
20
21 set _TARGETNAME $_CHIPNAME.cpu
22 target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME
23
24 adapter_khz 10000
25
26 if { ![using_hla] } {
27         cortex_m reset_config sysresetreq
28 }