eir1ocd.cfg 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #
  2. # For more information about the configuration files, take a
  3. # look at the "Open On-Chip Debugger (openocd)" documentation.
  4. #
  5. # This config file was tested with OpenOCD version r717
  6. #
  7. # daemon configuration
  8. telnet_port 4444
  9. gdb_port 3333
  10. # tell gdb our flash memory map
  11. # and enable flash programming
  12. gdb_memory_map enable
  13. gdb_flash_program enable
  14. #
  15. # interface, if you want to use an other interface
  16. # you must replace this section here
  17. #
  18. #################### interface start ####################
  19. interface ft2232
  20. ft2232_device_desc "Turtelizer JTAG/RS232 Adapter"
  21. ft2232_layout turtelizer2
  22. ft2232_vid_pid 0x0403 0xbdc8
  23. ##################### interface end #####################
  24. # jtag speed
  25. # start slow, speed up after reset
  26. jtag_khz 1000 6000
  27. #delays on reset lines
  28. jtag_nsrst_delay 200
  29. jtag_ntrst_delay 200
  30. #use combined on interfaces or targets that can't set TRST/SRST separately
  31. reset_config srst_only srst_pulls_trst
  32. #jtag scan chain
  33. #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
  34. jtag_device 4 0x1 0xf 0xe
  35. #target <type> <startup mode>
  36. #target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
  37. target arm7tdmi little run_and_init 0 arm7tdmi
  38. run_and_halt_time 0 30
  39. target_script 0 reset eir1ocd.ini
  40. working_area 0 0x00200000 0x4000 nobackup
  41. #flash bank <driver> <base> <size> <chip_width> <bus_width>
  42. flash bank at91sam7 0 0 0 0 0
  43. #################### command section ####################
  44. # must start with init
  45. init
  46. reset init