oharboe
e18e23e1b6
Added checks for target->type->read/write_memory, soft_reset_halt and run_algorithm that the target has been examined.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@581 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-15 18:08:36 +00:00
oharboe
5aa93a5e8a
target read/write is no longer attempted for target_xxx() functions when the target has not been examined(fails w/error).
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@580 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-15 17:03:13 +00:00
ntfreak
9bd0116866
- added new and missing target scripts - stm32stick and str730
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@579 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-14 08:15:23 +00:00
oharboe
6a775dff38
retired fast_memory_access. It's always fast now.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@578 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-14 07:57:01 +00:00
ntfreak
80d20326a7
- split str71x driver into banks
...
- support new str91x/str9xpec devices
- update target scripts and docs for changes
git-svn-id: svn://svn.berlios.de/openocd/trunk@577 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-14 07:26:13 +00:00
oharboe
53c41935cd
moved out stuff that wasn't already moved from openocd.pdf to the target library.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@576 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-14 06:26:53 +00:00
oharboe
f2047d4775
Added a few tweaks while playing with texi.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@575 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-14 06:02:11 +00:00
oharboe
61ab13f895
TRST is asserted *before* target->type->assert_reset() is invoked. Removed old code.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@574 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-14 01:34:45 +00:00
oharboe
f62ba35507
More robust handling of unknown target state for step/continue packet.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@573 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-13 13:29:33 +00:00
oharboe
7280d4a2c7
A dummy driver to test codepath w/no contact w/target.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@572 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-13 13:21:49 +00:00
oharboe
23837f5a3a
allows launching OpenOCD w/telnet+gdb server w/the
...
target powered down.
git-svn-id: svn://svn.berlios.de/openocd/trunk@571 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-13 12:08:06 +00:00
oharboe
7de51ceef9
allows launching OpenOCD w/telnet+gdb server w/the
...
target powered down.
git-svn-id: svn://svn.berlios.de/openocd/trunk@570 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-13 11:42:49 +00:00
oharboe
d9f50cb7d6
- Set up ICE registers after TRST
...
- Work in progress to allow launching GDB/telnet server *before* jtag
chain enum, validate & examine
git-svn-id: svn://svn.berlios.de/openocd/trunk@569 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-13 10:09:27 +00:00
oharboe
fdd5582f7e
found two more gaffes for reset wip
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@568 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-11 15:56:57 +00:00
oharboe
d300ecfc8e
fixed gaffe for default examine implementation
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@567 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-11 15:49:31 +00:00
oharboe
c688c1cf48
Reset wip. Just adding hooks. This is just to reduce the size of the actual change, no change in behaviour.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@566 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-11 14:11:16 +00:00
oharboe
c4a2fdbc39
Reset wip. Just adding hooks. This is just to reduce the size of the actual change, no change in behaviour.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@565 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-11 14:06:42 +00:00
oharboe
0d7d64b5e9
Wip - split target setup and target examination
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@564 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-11 11:19:17 +00:00
oharboe
7805be1b3a
added target->type->examine(). Eventually this will allow for bringing up telnet/gdb *before* jtag chain has been validated + it might fix some reset halt problems seen as examine() needs to run after TRST has been asserted.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@563 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-11 06:52:52 +00:00
oharboe
a7d3a4a7f8
Improved XScale performance for embedded hosted OpenOCD
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@562 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-11 06:45:27 +00:00
mifi
df9adb7b23
- remove AC_C_VARARRAYS and set check of autoconf back to 2.59
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@561 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-10 19:49:47 +00:00
oharboe
2b16509675
stop using variable sized arrays. That's something that belongs to C++ and not C.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@560 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-10 19:44:56 +00:00
ntfreak
518bce6c08
- added svn props for newly added parport.cfg
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@559 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-10 11:45:54 +00:00
ntfreak
9c3dec377e
- single core context used, removed debug context as thought unnecessary.
...
- DCRDR now used to access special core registers - info is currently omitted from the cortex_m3 TRM ARM have told me this is the preferred access method and the docs will be updated soon.
- now checks for User Thread Mode and Thread mode when halted.
- removed repeated function declarations from command.c
- cortex_m3_prepare_reset_halt removed, updated cortex_m3_assert_reset to suit
git-svn-id: svn://svn.berlios.de/openocd/trunk@558 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-10 11:43:48 +00:00
ntfreak
1ade331ba9
- due to previous patch adding AC_C_VARARRAYS, autoconf v2.61 min required
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@557 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-10 10:11:04 +00:00
oharboe
44fd861b75
target lib wip
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@556 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-09 14:21:14 +00:00
oharboe
b22ae9006b
back out Don Porges workaround for some device with manufcaturer # 0x1a2
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@555 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-09 12:58:19 +00:00
ntfreak
23939e4fc3
- add missing svn props
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@554 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-09 07:31:24 +00:00
oharboe
2585fc3420
Don Porges fixed c99 issues.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@553 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-09 05:55:23 +00:00
oharboe
a064722743
- added "init" command. "init" and "reset" at end of startup script is equivalent
...
to daemon_startup(still supported).
- print warning if srst and trst change state at the same time when srst_and_trst
is seperate
- reset now performs a trst, examines and validates the jtag chain before targets
assert reset
- if startup fails to examine and validate the jtag chain, try a reset before
trying again
git-svn-id: svn://svn.berlios.de/openocd/trunk@552 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-09 05:50:34 +00:00
oharboe
94320a1dc3
use jtag.c's cur/end_state global variables.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@551 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-08 19:23:50 +00:00
oharboe
de330ca559
Edwin Olson found bug & tested fix for flash write_image for stellaris.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@550 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-08 18:55:39 +00:00
oharboe
30cda620cb
lm3s6965.cfg contributed by Edwin Olson
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@549 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-08 16:37:01 +00:00
oharboe
a4ed848171
added a couple of LOG_ERROR() messages to improve logfile.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@548 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-08 16:27:50 +00:00
oharboe
eabb49b570
Pavel pointed out that jtag_add_tlr() is better than jtag_add_tms().
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@547 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-08 13:08:36 +00:00
oharboe
4b2defe678
The endstate now reports the endstate of the queue instead of
...
reading endstate variable internal to the driver.
git-svn-id: svn://svn.berlios.de/openocd/trunk@546 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-08 09:03:49 +00:00
oharboe
0d4f8fc824
Spen fixed various issues w.r.t. setting up the sockets for optimal performance.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@545 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-07 17:29:21 +00:00
oharboe
2b7504c279
- only if "reset halt" or "reset init" are issued will the reset vector be set up
...
- If communication fails during assert between assert/deassert and during
assert, warnings are printed. The warning suggests using srst_only if the
clock locks up as that would allow the reset vector to be set up before
asserting reset.
git-svn-id: svn://svn.berlios.de/openocd/trunk@544 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-07 10:48:44 +00:00
oharboe
a2c45daf78
at91eb40a.elf moved to src/target/ecos
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@543 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-07 05:42:28 +00:00
oharboe
769fa69b9a
avoid patch trouble by isolating troublesome line...
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@542 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-06 19:59:32 +00:00
ntfreak
bb0830da6d
- added note to docs about gdb 6.8 and memory map support
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@541 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-05 10:07:12 +00:00
oharboe
381dc0efab
- the reset mode parameter is now DEPRECATED. It is implemented
...
as an optional parameter with default reset_init. This is to streamline
things w.r.t. the target library.
git-svn-id: svn://svn.berlios.de/openocd/trunk@540 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-04 14:09:03 +00:00
oharboe
35b3c95299
- reverted some of the changes that possibly broke arm926ejs. Waiting
...
for a bit more info before I can tell with confidence whether or not
this would have any effect.
- worked on error propagation and output for flash
git-svn-id: svn://svn.berlios.de/openocd/trunk@539 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-04 13:47:38 +00:00
oharboe
7abe97565e
added query of reset speed
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@538 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-04 07:43:04 +00:00
mifi
32cc2202f0
- added test results
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@537 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-03 19:42:30 +00:00
oharboe
d3f0549f08
- Work on fixing erase check. Many implementations are plain broken.
...
Wrote a default flash erase check fn which uses CFI's target algorithm
w/fallback to memory reads.
- "flash info" no longer prints erase status as it is stale.
- "flash erase_check" now prints erase status. erase check can take a
*long* time. Work in progress
- arm7/9 with seperate srst & trst now supports reset init/halt
after a power outage. arm7/9 no longer makes any assumptions
about state of target when reset is asserted.
- fixes for srst & trst capable arm7/9 with reset init/halt
- prepare_reset_halt retired. This code needs to be inside
assert_reset anyway
- haven't been able to get stm32 write algorithm to work. Fallback
flash write does work. Haven't found a version of openocd trunk
where this works.
- added target_free_all_working_areas_restore() which can
let be of restoring backups. This is needed when asserting
reset as the target must be assumed to be an unknown state.
Added some comments to working areas API
- str9 reset script fixes
- some guidelines
- fixed dangling callbacks upon reset timeout
git-svn-id: svn://svn.berlios.de/openocd/trunk@536 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-03 14:00:17 +00:00
oharboe
349f62f74f
Edgar Grimberg sharpened the str912 target script.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@535 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-02 14:47:21 +00:00
oharboe
6549d376e4
fix flash info - now reports erased state properly
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@534 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-02 14:40:35 +00:00
oharboe
2a2935573e
Added timeout(instead of infinite loop) to soft_reset_halt
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@533 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-02 06:37:08 +00:00
oharboe
b174a5b6a3
optional count argument to mwX
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@532 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-02 06:21:24 +00:00