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.
 
 
 
 
 
 

47 lines
1.3 KiB

  1. # script for Insilica IS-5114
  2. # AKA: Atmel AT76C114 - an ARM946 chip
  3. # ATMEL sold his product line to Insilica...
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME is5114
  8. }
  9. if { [info exists ENDIAN] } {
  10. set _ENDIAN $ENDIAN
  11. } else {
  12. # this defaults to a little endian
  13. set _ENDIAN little
  14. }
  15. if { [info exists CPUTAPID ] } {
  16. set _CPUTAPID $CPUTAPID
  17. } else {
  18. # force an error till we get a good number
  19. set _CPUTAPID 0xffffffff
  20. }
  21. # jtag speed. We need to stick to 16kHz until we've finished reset.
  22. jtag_rclk 16
  23. reset_config trst_and_srst
  24. # Do not specify a tap id here...
  25. jtag newtap $_CHIPNAME unknown1 -irlen 8 -ircapture 0x01 -irmask 1
  26. # This is the "arm946" chip.
  27. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x0e -irmask 0xf
  28. jtag newtap $_CHIPNAME unknown2 -irlen 5 -ircapture 1 -irmask 1
  29. #arm946e-s and
  30. set _TARGETNAME $_CHIPNAME.cpu
  31. target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e
  32. $_TARGETNAME configure -event reset-start { jtag_rclk 16 }
  33. $_TARGETNAME configure -event reset-init {
  34. # We can increase speed now that we know the target is halted.
  35. jtag_rclk 3000
  36. }
  37. $_TARGETNAME configure -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 1