X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tcl%2Ftarget%2Fat91samdXX.cfg;h=f0644d1773a66e60ec72d1ee2a064134b8575220;hp=47b4f5f161cf5ef71c44cd1ab06d416f37de431f;hb=ff555afc02d50ca57fc6e71787d34a8e985cf115;hpb=0c8ec7c826c60391034fe5f0ea90f8538ac94b38 diff --git a/tcl/target/at91samdXX.cfg b/tcl/target/at91samdXX.cfg index 47b4f5f161..f0644d1773 100644 --- a/tcl/target/at91samdXX.cfg +++ b/tcl/target/at91samdXX.cfg @@ -34,9 +34,10 @@ if { [info exists CPUTAPID] } { } swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID +dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu set _TARGETNAME $_CHIPNAME.cpu -target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position $_TARGETNAME +target create $_TARGETNAME cortex_m -endian $_ENDIAN -dap $_CHIPNAME.dap $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0 @@ -53,11 +54,6 @@ $_TARGETNAME configure -event reset-deassert-post { # srst_pulls_trst is not configured here to avoid an error raised in reset halt reset_config srst_gates_jtag -# Atmel's EDBG (on-board cmsis-dap adapter of Xplained kits) cannot -# stop the MCU before it starts executing code if hardware RESETN -# line is configured by command "reset_config srst_only" -# Use "reset_config none" (default) before flash programming. - # Do not use a reset button with other SWD adapter than Atmel's EDBG. # DSU usually locks MCU in reset state until you issue a reset command # in OpenOCD.