Add initial openocd config file
This commit is contained in:
parent
cce5848449
commit
7ea6fb8e07
|
@ -0,0 +1,15 @@
|
|||
source [find interface/stlink-v2.cfg]
|
||||
|
||||
set _CHIPNAME nrf51
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
set _CPUTAPID 0x0bb11477
|
||||
set _WORKAREASIZE 0x4000
|
||||
|
||||
transport select hla_swd
|
||||
hla newtap $_CHIPNAME cpu -expected-id $_CPUTAPID
|
||||
target create $_TARGETNAME hla_target -chain-position $_TARGETNAME
|
||||
|
||||
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
||||
|
||||
flash bank $_CHIPNAME.flash nrf51 0x00000000 0 1 1 $_TARGETNAME
|
||||
flash bank $_CHIPNAME.uicr nrf51 0x10001000 0 1 1 $_TARGETNAME
|
Loading…
Reference in New Issue