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.
 
 
 
 
 
 

45 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. Are there more?
  13. if { [info exists CPUTAPID ] } {
  14. set _CPUTAPID $CPUTAPID
  15. } else {
  16. # set useful default
  17. set _CPUTAPID 0x49265013
  18. }
  19. if { [info exists CPUTAPID2 ] } {
  20. set _CPUTAPID2 $CPUTAPID2
  21. } else {
  22. # set useful default
  23. set _CPUTAPID2 0x79265013
  24. }
  25. # set jtag_nsrst_delay to the delay introduced by your reset circuit
  26. # the rest of the needed delays are built into the openocd program
  27. jtag_nsrst_delay 260
  28. # set the jtag_ntrst_delay to the delay introduced by a reset circuit
  29. # the rest of the needed delays are built into the openocd program
  30. jtag_ntrst_delay 250
  31. set _TARGETNAME $_CHIPNAME.cpu
  32. jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID -expected-id $_CPUTAPID2
  33. target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME -variant pxa27x
  34. # maps to PXA internal RAM. If you are using a PXA255
  35. # you must initialize SDRAM or leave this option off
  36. $_TARGETNAME configure -work-area-phys 0x5c000000 -work-area-size 0x10000 -work-area-backup 0