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.
 
 
 
 
 
 

26 lines
535 B

  1. if { [info exists CHIPNAME] } {
  2. set _CHIPNAME $CHIPNAME
  3. } else {
  4. set _CHIPNAME s3c4510
  5. }
  6. if { [info exists ENDIAN] } {
  7. set _ENDIAN $ENDIAN
  8. } else {
  9. set _ENDIAN little
  10. }
  11. # This appears to be a "Version 1" arm7tdmi.
  12. if { [info exists CPUTAPID ] } {
  13. set _CPUTAPID $CPUTAPID
  14. } else {
  15. set _CPUTAPID 0x1f0f0f0f
  16. }
  17. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  18. set _TARGETNAME $_CHIPNAME.cpu
  19. target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME