adapter driver cmsis-dap
adapter speed 5000
transport select swd

swd newdap SAML22 cpu -irlen 4
dap create SAML22.dap -chain-position SAML22.cpu

set _TARGETNAME SAML22.cpu
target create $_TARGETNAME cortex_m -dap SAML22.dap
cortex_m reset_config sysresetreq
