Skip to content

Commit

Permalink
tcl/target: Add initial Microchip SAML1x support
Browse files Browse the repository at this point in the history
There is not flash bank support at the moment.

Change-Id: I833c009d9d21cdeb70b57d67eb557d50ed0fb4de
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://openocd.zylin.com/5205
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
Reviewed-by: Matthias Welwarsky <[email protected]>
  • Loading branch information
Marc Schink authored and thinkfat committed Jun 19, 2019
1 parent 0d47d85 commit 56de276
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tcl/target/atsaml1x.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Microchip (formerly Atmel) SAM L1x target
#
# Note: These devices support SWD only.
#

transport select swd

if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME saml1x
}

if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE
} else {
set _WORKAREASIZE 0x800
}

swd newdap $_CHIPNAME cpu -expected-id 0x0bf11477
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu

set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap

$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0

if {![using_hla]} {
cortex_m reset_config sysresetreq
}

0 comments on commit 56de276

Please sign in to comment.