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.
 
 
 
 
 
 

50 lines
1.4 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. #OLD SYNTAX: jtag_device 8 0x1 0x1 0xfe
  26. jtag newtap $_CHIPNAME unknown1 -irlen 8 -ircapture 0x01 -irmask 1
  27. #OLD SYNTAX: jtag_device 4 0x1 0xf 0xe
  28. # This is the "arm946" chip.
  29. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x0e -irmask 0xf
  30. #OLD SYNTAX: jtag_device 5 0x1 0x1 0x1e
  31. jtag newtap $_CHIPNAME unknown2 -irlen 5 -ircapture 1 -irmask 1
  32. #arm946e-s and
  33. set _TARGETNAME $_CHIPNAME.cpu
  34. target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e
  35. $_TARGETNAME configure -event reset-start { jtag_rclk 16 }
  36. $_TARGETNAME configure -event reset-init {
  37. # We can increase speed now that we know the target is halted.
  38. jtag_rclk 3000
  39. }
  40. $_TARGETNAME configure -work-area-phys 0x50000000 -work-area-virt 0x50000000 -work-area-size 16384 -work-area-backup 1