atsaml1x.cfg 723 B

123456789101112131415161718192021222324252627282930313233
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. #
  3. # Microchip (formerly Atmel) SAM L1x target
  4. #
  5. # Note: These devices support SWD only.
  6. #
  7. transport select swd
  8. if { [info exists CHIPNAME] } {
  9. set _CHIPNAME $CHIPNAME
  10. } else {
  11. set _CHIPNAME saml1x
  12. }
  13. if { [info exists WORKAREASIZE] } {
  14. set _WORKAREASIZE $WORKAREASIZE
  15. } else {
  16. set _WORKAREASIZE 0x800
  17. }
  18. swd newdap $_CHIPNAME cpu -expected-id 0x0bf11477
  19. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  20. set _TARGETNAME $_CHIPNAME.cpu
  21. target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
  22. $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
  23. if {![using_hla]} {
  24. cortex_m reset_config sysresetreq
  25. }