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.
 
 
 
 
 
 

38 lines
804 B

  1. ######################################
  2. # Target: Atmel AT91SAM9
  3. ######################################
  4. if { [info exists AT91_CHIPNAME] } {
  5. set _CHIPNAME $AT91_CHIPNAME
  6. } else {
  7. error "you must specify a chip name"
  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. set _CPUTAPID 0x0792603f
  18. }
  19. reset_config trst_and_srst separate trst_push_pull srst_open_drain
  20. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  21. adapter srst delay 300
  22. jtag_ntrst_delay 200
  23. adapter speed 3
  24. ######################
  25. # Target configuration
  26. ######################
  27. set _TARGETNAME $_CHIPNAME.cpu
  28. target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME