2 # Microchip (formerly Atmel) SAM L1x target
4 # Note: These devices support SWD only.
9 if { [info exists CHIPNAME] } {
10 set _CHIPNAME $CHIPNAME
15 if { [info exists WORKAREASIZE] } {
16 set _WORKAREASIZE $WORKAREASIZE
18 set _WORKAREASIZE 0x800
21 swd newdap $_CHIPNAME cpu -expected-id 0x0bf11477
22 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
24 set _TARGETNAME $_CHIPNAME.cpu
25 target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
27 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
30 cortex_m reset_config sysresetreq