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.
 
 
 
 
 
 

28 lines
915 B

  1. #STR730 CPU
  2. jtag_khz 3000
  3. #use combined on interfaces or targets that can’t set TRST/SRST separately
  4. #reset_config trst_and_srst srst_pulls_trst
  5. reset_config trst_and_srst srst_pulls_trst
  6. #jtag scan chain
  7. #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
  8. jtag_device 4 0x1 0xf 0xe
  9. #jtag nTRST and nSRST delay
  10. jtag_nsrst_delay 500
  11. jtag_ntrst_delay 500
  12. target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
  13. [new_target_name] configure -event reset-start { jtag_khz 10 }
  14. [new_target_name] configure -event reset-init { jtag_khz 3000 }
  15. [new_target_name] configure -event old-gdb_program_config { script event/str730_program.script }
  16. [new_target_name] configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
  17. #flash bank <driver> <base> <size> <chip_width> <bus_width>
  18. flash bank str7x 0x20000000 0x00040000 0 0 0 STR3x