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.5 KiB

  1. # Crossbow Technology iMote2
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME imote2
  6. }
  7. if { [info exists ENDIAN] } {
  8. set _ENDIAN $ENDIAN
  9. } else {
  10. set _ENDIAN little
  11. }
  12. if { [info exists CPUTAPID ] } {
  13. set _CPUTAPID $CPUTAPID
  14. } else {
  15. # force an error till we get a good number
  16. set _CPUTAPID 0xffffffff
  17. }
  18. # PXA271 and an Intel Strataflash of 32 Megabytes (p30)
  19. #
  20. # Marvell/Intel PXA270 Script
  21. # set jtag_nsrst_delay to the delay introduced by your reset circuit
  22. # the rest of the needed delays are built into the openocd program
  23. jtag_nsrst_delay 800
  24. # set the jtag_ntrst_delay to the delay introduced by a reset circuit
  25. # the rest of the needed delays are built into the openocd program
  26. jtag_ntrst_delay 0
  27. #use combined on interfaces or targets that can't set TRST/SRST separately
  28. reset_config trst_and_srst separate
  29. #jtag scan chain
  30. jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID
  31. set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
  32. target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME -variant pxa27x
  33. $_TARGETNAME configure -work-area-virt 0x0x5c000000 -work-area-phys 0x0x5c000000 -work-area-size 0x10000 -work-area-backup 1
  34. # maps to PXA internal RAM. If you are using a PXA255
  35. # you must initialize SDRAM or leave this option off
  36. #flash bank <driver> <base> <size> <chip_width> <bus_width>
  37. # works for P30 flash
  38. flash bank cfi 0x00000000 0x2000000 2 2 0