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.
 
 
 
 
 
 

40 lines
1.2 KiB

  1. #Marvell/Intel PXA270 Script
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME pxa270
  6. }
  7. if { [info exists ENDIAN] } {
  8. set _ENDIAN $ENDIAN
  9. } else {
  10. set _ENDIAN little
  11. }
  12. #IDs for pxa270. Choose one. Are there others?#
  13. #set CPUTAPID 0x79265013
  14. #set CPUTAPID 0x49265013
  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. # 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 260
  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. set _TARGETNAME $_CHIPNAME.cpu
  28. jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID
  29. target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME -variant pxa27x
  30. # maps to PXA internal RAM. If you are using a PXA255
  31. # you must initialize SDRAM or leave this option off
  32. $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x5c000000 -work-area-size 0x10000 -work-area-backup 0