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.
 
 
 
 
 
 

21 lines
997 B

  1. #Marvell/Intel PXA270 Script
  2. # set jtag_nsrst_delay to the delay introduced by your reset circuit
  3. # the rest of the needed delays are built into the openocd program
  4. jtag_nsrst_delay 260
  5. # set the jtag_ntrst_delay to the delay introduced by a reset circuit
  6. # the rest of the needed delays are built into the openocd program
  7. jtag_ntrst_delay 0
  8. #use combined on interfaces or targets that can’t set TRST/SRST separately
  9. reset_config trst_and_srst separate
  10. #jtag scan chain
  11. #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
  12. jtag_device 7 0x1 0x7f 0x7e
  13. target create target0 xscale -endian little -chain-position 0 -variant pxa27x
  14. # maps to PXA internal RAM. If you are using a PXA255
  15. # you must initialize SDRAM or leave this option off
  16. [new_target_name] configure -work-area-virt 0 -work-area-phys 0x5c000000 -work-area-size 0x10000 -work-area-backup 0
  17. #flash bank <driver> <base> <size> <chip_width> <bus_width>
  18. # works for P30 flash
  19. flash bank cfi 0x00000000 0x1000000 2 4 0