diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-21 15:59:41 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-21 15:59:41 +0000 |
commit | dfbb9f3e89ae6a3769d0df2167208c7c07e22e3c (patch) | |
tree | 2d41deb5babf30f4dcd18e8085ffdfc378034660 /src/target/target/str912.cfg | |
parent | c1ee650a9aead0bd25d7aa37fd65e5a3ed0c6e38 (diff) | |
download | openocd+libswd-dfbb9f3e89ae6a3769d0df2167208c7c07e22e3c.tar.gz openocd+libswd-dfbb9f3e89ae6a3769d0df2167208c7c07e22e3c.tar.bz2 openocd+libswd-dfbb9f3e89ae6a3769d0df2167208c7c07e22e3c.tar.xz openocd+libswd-dfbb9f3e89ae6a3769d0df2167208c7c07e22e3c.zip |
- jtag_khz/speed are now single parameter only. These are used
from pre/post_reset event scripts. Adding the second parameter was
a mistake seen in retrospect. this gives precise control in post_reset
for *when* the post reset speed is set. The pre_reset event was
added *after* the second parameter to jtag_khz/speed
- the target implementations no longer gets involved in the reset mode
scheme. Either they reset a target into a halted mode or not.
target_process_reset()
detects if the reset halt failed or not.
- tcl target event names are now target_N_name. Mainly internal
at this early stage, but best to get the naming right now.
- added hardcoded reset modes from gdb_server.c. I don't know precisely what
these defaults should be or if it should be made configurable. Perhaps some
hardcoded defaults will do for now and it can be made configurable later.
- bugfix in cortex_m3.c for reset_run_and_xxx?
- issue syntax error upon obsolete argument in target command instead of
printing message that will surely drown in the log
git-svn-id: svn://svn.berlios.de/openocd/trunk@849 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/target/str912.cfg')
-rw-r--r-- | src/target/target/str912.cfg | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/target/target/str912.cfg b/src/target/target/str912.cfg index bce03d8d..14bb4973 100644 --- a/src/target/target/str912.cfg +++ b/src/target/target/str912.cfg @@ -1,7 +1,26 @@ # script for str9 -# jtag speed -jtag_khz 16 3000 +# jtag speed. We need to stick to 16kHz until we've finished reset. + +jtag_khz 16 +proc target_0_pre_reset {} { + jtag_khz 16 +} + +proc target_0_post_reset {} { + # We can increase speed now that we know the target is halted. + jtag_khz 3000 + + # -- Enable 96K RAM + # PFQBC enabled / DTCM & AHB wait-states disabled + mww 0x5C002034 0x0191 + + str9x flash_config 0 4 2 0 0x80000 + flash protect 0 0 7 off + + +} + jtag_nsrst_delay 100 jtag_ntrst_delay 100 @@ -20,7 +39,6 @@ jtag_device 5 0x1 0x1 0x1e target arm966e little 1 arm966e run_and_halt_time 0 30 -target_script 0 reset event/str912_reset.script working_area 0 0x50000000 16384 nobackup |