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.
 
 
 
 
 
 

27 lines
731 B

  1. # Hitex stm32 performance stick
  2. # set jtag speed
  3. jtag_khz 500
  4. jtag_nsrst_delay 100
  5. jtag_ntrst_delay 100
  6. #use combined on interfaces or targets that can't set TRST/SRST separately
  7. reset_config trst_and_srst
  8. #jtag scan chain
  9. #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
  10. jtag_device 4 0x1 0xf 0xe
  11. jtag_device 5 0x1 0x1 0x1e
  12. jtag_device 4 0x1 0xf 0xe
  13. target create target0 cortex_m3 -endian little -chain-position 0
  14. [new_target_name] configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0
  15. #flash bank str7x <base> <size> 0 0 <target#> <variant>
  16. flash bank stm32x 0 0 0 0 0
  17. # For more information about the configuration files, take a look at:
  18. # openocd.texi