cfg: Fix Kinetis kwikstik/kx config
[openocd.git] / tcl / target / at91sam3nXX.cfg
blob19bd33a9e8f801a5e76e7a0089f65c024f95f88d
3 # Configuration for Atmel's SAM3N series
6 source [find target/swj-dp.tcl]
8 if { [info exists CHIPNAME] } {
9         set _CHIPNAME $CHIPNAME
10 } else {
11         set _CHIPNAME at91sam3n
14 if { [info exists CPUTAPID] } {
15         set _CPUTAPID $CPUTAPID
16 } else {
17         set _CPUTAPID 0x4ba00477
20 swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
22 set _TARGETNAME $_CHIPNAME.cpu
23 target create $_TARGETNAME cortex_m -endian little -chain-position $_TARGETNAME
25 set _FLASHNAME $_CHIPNAME.flash
26 flash bank flash0 at91sam3 0x00400000 0 0 0 $_TARGETNAME
28 if {![using_hla]} {
29    # if srst is not fitted use SYSRESETREQ to
30    # perform a soft reset
31    cortex_m reset_config sysresetreq