X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Ftarget%2Fstr750.cfg;h=d00eae092b84bb9cd7b51fc30727ee43942b6804;hp=e6c094805b6f275cf3358de9fdd2d416194b254f;hb=dfbb9f3e89ae;hpb=9bd0116866d35be18890d0c008dc380e60a52597 diff --git a/src/target/target/str750.cfg b/src/target/target/str750.cfg index e6c094805b..d00eae092b 100644 --- a/src/target/target/str750.cfg +++ b/src/target/target/str750.cfg @@ -1,29 +1,37 @@ -#STR750 CPU - -#use combined on interfaces or targets that can’t set TRST/SRST separately -#reset_config trst_and_srst srst_pulls_trst -reset_config trst_and_srst srst_pulls_trst - -#jtag scan chain -#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) -jtag_device 4 0x1 0xf 0xe - -#jtag nTRST and nSRST delay -jtag_nsrst_delay 500 -jtag_ntrst_delay 500 - -#target configuration -daemon_startup reset - -#target -#target arm7tdmi -target arm7tdmi little run_and_halt 0 arm7tdmi - -run_and_halt_time 0 30 - -working_area 0 0x40000000 0x4000 nobackup - -#flash bank -flash bank str7x 0x20000000 0x00040000 0 0 0 STR75x -flash bank str7x 0x200C0000 0x00004000 0 0 0 STR75x - +#STR750 CPU + +# jtag speed +jtag_khz 10 +proc target_0_pre_reset {} { + jtag_khz 10 +} +proc target_0_post_reset {} { + jtag_khz 3000 +} + +#use combined on interfaces or targets that can’t set TRST/SRST separately +#reset_config trst_and_srst srst_pulls_trst +reset_config trst_and_srst srst_pulls_trst + +#jtag scan chain +#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) +jtag_device 4 0x1 0xf 0xe + +#jtag nTRST and nSRST delay +jtag_nsrst_delay 500 +jtag_ntrst_delay 500 + +#target +#target arm7tdmi +target arm7tdmi little 0 arm7tdmi + +run_and_halt_time 0 30 + +target_script 0 gdb_program_config event/str750_program.script + +working_area 0 0x40000000 0x4000 nobackup + +#flash bank +flash bank str7x 0x20000000 0x00040000 0 0 0 STR75x +flash bank str7x 0x200C0000 0x00004000 0 0 0 STR75x +