You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
976 B

  1. ######################################
  2. # Target: Atmel AT91SAM9260
  3. ######################################
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME at91sam9260
  8. }
  9. if { [info exists ENDIAN] } {
  10. set _ENDIAN $ENDIAN
  11. } else {
  12. set _ENDIAN little
  13. }
  14. if { [info exists CPUTAPID ] } {
  15. set _CPUTAPID $CPUTAPID
  16. } else {
  17. # force an error till we get a good number
  18. set _CPUTAPID 0x0792603f
  19. }
  20. reset_config trst_and_srst
  21. #
  22. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  23. jtag_nsrst_delay 200
  24. jtag_ntrst_delay 200
  25. ######################
  26. # Target configuration
  27. ######################
  28. set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
  29. target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
  30. # Internal sram1 memory
  31. $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00300000 -work-area-size 0x1000 -work-area-backup 1