mifi
2c75fdf06c
- corrected rounding in ft2232_khz
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@654 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-10 12:35:11 +00:00
mifi
e2e874aa1f
- added support for ft2232/jtag_khz
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@653 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-10 12:11:02 +00:00
oharboe
36c8c0a069
printing available memory fails on win + mac. Disable for now until a robust way of doing this can be found.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@651 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-09 19:03:03 +00:00
oharboe
52377759a2
Michael Fischer spotted a problem in the reset routines for srst_pulls_trst. It is a bit of a mystery why this was only visible w/LPC2148.
...
Embedded ICE registers are now set up after SRST pulls TRST.
git-svn-id: svn://svn.berlios.de/openocd/trunk@650 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-09 18:38:51 +00:00
oharboe
fd66b702f0
disable code that prints available mem under windows. Does not compile.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@649 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-08 18:07:37 +00:00
oharboe
adf08b49d4
print available memory in log_level 3
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@648 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-07 18:05:58 +00:00
oharboe
ee793f0fcb
This matters for embedded devices, but is probably not observably better for PC hosted OpenOCD.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@647 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-07 14:25:34 +00:00
oharboe
a197e759ff
Edgar Grimberg plugged a leak found w/Valgrind.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@646 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-07 12:15:19 +00:00
oharboe
2b9dbccfcf
increase packet size to 16kBytes. Very slightly faster.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@645 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-07 12:14:26 +00:00
oharboe
ac1bd155c2
Edgar Grimberg found tiny memory leak
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@644 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-06 13:05:17 +00:00
ntfreak
32b274eb9b
- added svn props for newly added files
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@643 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-06 11:17:51 +00:00
oharboe
483ed5da4d
The target library is now the authorotative source of config examples
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@642 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-06 09:12:00 +00:00
oharboe
85407421f3
add missing reset script
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@641 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-06 08:57:41 +00:00
drath
d5f6c46346
- fixed xsvf_add_statemove()
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@640 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-03 10:33:16 +00:00
ntfreak
54eee1b063
- add -lusb to link for using libftdi under win32
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@635 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-01 19:31:13 +00:00
ntfreak
a565d0aa83
- add missing svn props
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@634 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-01 15:12:54 +00:00
oharboe
6f944037d8
now compiles again.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@632 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-30 19:26:05 +00:00
oharboe
1231443b59
lpc2148 fixes from Edgar Grimberg
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@631 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-30 18:59:39 +00:00
ntfreak
f8a117258a
- added new device to luminary flash driver
...
- only use SYSRESETREQ on affected luminary parts
git-svn-id: svn://svn.berlios.de/openocd/trunk@630 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-30 18:33:21 +00:00
oharboe
95efa83ef5
Edgar's naming convention fixes.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@629 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-30 09:34:31 +00:00
oharboe
06cdb3ad44
Edgar's added support for printing jtag_khz
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@628 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-30 09:13:54 +00:00
ntfreak
26414b39d4
- stm32x default to 128k if flash size failed.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@627 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-29 17:07:23 +00:00
oharboe
1f4308ddc4
Edgar Grimberg added a new rule for target scripts. Flash + verify must succeed.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@626 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-29 10:22:20 +00:00
ntfreak
8acafd1710
- updated cortex_m3 docs regarding luminary reset behaviour
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@625 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-29 06:56:03 +00:00
ntfreak
f2e10a6050
- add cortex_m3 variant luminary to fix reset issue with asserting SRST
...
- https://lists.berlios.de/pipermail/openocd-development/2008-April/002022.html for details
git-svn-id: svn://svn.berlios.de/openocd/trunk@624 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-28 20:05:17 +00:00
ntfreak
cab29a63de
- added ARMV7_GDB_HACKS define to armv7m.h, enabling all gdb hacks to be enabled/disabled for testing
...
- added armv7m dummy cpsr register to stop gdb setting thumb bit
git-svn-id: svn://svn.berlios.de/openocd/trunk@623 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-26 16:40:54 +00:00
ntfreak
6eb2264d56
- luminary flash now loader polls when finished
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@622 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-26 15:24:15 +00:00
oharboe
aa7975df3d
set communication speeds
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@621 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-26 14:53:06 +00:00
ntfreak
625e34918f
- incorrect ram size for lm3s811 target script
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@620 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-26 14:16:31 +00:00
ntfreak
5d6c997b51
- change str9 flash controller to read array after a level 1 protect
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@619 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-26 12:50:03 +00:00
oharboe
2fdb19e918
make debug_level 3 useful again... the log just drowns. perhaps introduce debug_level 4?
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@617 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-25 13:31:40 +00:00
oharboe
9334cd451b
Close dangling file handle
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@616 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-24 20:40:52 +00:00
ntfreak
040e254243
- added svn props for newly added files
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@615 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-24 11:09:28 +00:00
oharboe
831d41e750
Pavel Chromy's on chip flash loader
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@612 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-23 16:36:02 +00:00
ntfreak
96f47822fd
- added svn props for newly added files
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@610 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-23 13:10:27 +00:00
oharboe
f8701ea700
Tim Hudson contributed at91sam9260 target config files + some interface definitions.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@609 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-23 09:53:23 +00:00
oharboe
3ce7afc0da
regions outside flash are now read/write nocache by default. GDB 6.8 would mark non-flash areas as inacessible by default.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@607 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-23 08:07:39 +00:00
oharboe
26470de0e0
Tim Hudson: removed setting jtag_speed directly (which should not be done).
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@606 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-23 07:19:25 +00:00
oharboe
6510be8b8b
added fast option.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@604 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-23 05:42:42 +00:00
oharboe
30dc76644d
Andre Renaud support for the am29sl800db CFI flash chip (id: 0x0004, 0x226b).
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@603 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-23 05:27:45 +00:00
ntfreak
41d070982c
- added stm32 stick and luminary eval boards interface configs
...
- corrected target lm3s6965.cfg
git-svn-id: svn://svn.berlios.de/openocd/trunk@600 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-21 08:52:52 +00:00
ntfreak
435c4b6aa2
- set lpc288x[ch] svn file props
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@599 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-21 08:18:19 +00:00
ntfreak
ce8ed0e6e0
- set erase flag on sector
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@598 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-20 21:37:23 +00:00
oharboe
ae75056742
Karl RobinSod <karl.robinsod@gmail.com> added lpc288x support. Some work remaining, committing for test/collaboration purposes.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@597 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-20 19:21:27 +00:00
ntfreak
fddbc0c143
- flash.c change stricmp to strcmp
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@595 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-19 17:39:52 +00:00
oharboe
fbad947731
retired auto_erase, added optional erase arg to flash write_image.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@593 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-19 07:15:27 +00:00
drath
da742a2d1c
- Flash auto-erase is disabled by default
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@592 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-18 16:23:21 +00:00
oharboe
fcf3b943d8
Enabled auto erase, gdb memory map and gdb flash programming by default.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@591 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-18 07:33:03 +00:00
oharboe
4b19617f33
Nicolas Pitre fixed regression.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@590 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-18 06:29:30 +00:00
oharboe
dd5bc1f893
Edwin Olsen: improves breakpoint handling on cortex-m3 parts. Specifically, this patch allows expressions to be evaluated in GDB that contain function calls.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@589 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-17 21:03:19 +00:00
oharboe
a13764b5d0
fix for gaffe in 555 that stopped JTAG chain examine + validate from running.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@588 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-16 19:17:15 +00:00
ntfreak
598042fc7b
- correct stm32stick config script
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@586 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-16 09:22:52 +00:00
oharboe
c333611f2b
Update Embedded ICE registers explicitly during target->type->examine() instead
...
of as a side effect of target->type->poll(). This makes it clearer when things
happen during reset/examine.
git-svn-id: svn://svn.berlios.de/openocd/trunk@585 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-16 09:17:22 +00:00
oharboe
c9dfba1866
Edgar Grimberg added some missing scripts from the install
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@584 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-16 07:59:02 +00:00
oharboe
3aa95240ec
fix SEGFAULT regression in cortex after TRST fixes
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@583 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-16 07:34:22 +00:00
oharboe
5295bb3121
- sw_bkpts fails if the target is not halted. The side effect is
...
that sw_bkpts also fails if the target is an unknown state(i.e.
not examined yet).
- feroceon embedded ICE registers are now set up after TRST
has been deasserted(not tested, but it was broken as is
anyway).
git-svn-id: svn://svn.berlios.de/openocd/trunk@582 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-15 19:08:25 +00:00
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
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
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
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
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
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
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
oharboe
ff53e47b54
- fixes for jtag_khz committed.
...
- wip, flash fillw/h/b. For testing purposes.
git-svn-id: svn://svn.berlios.de/openocd/trunk@531 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-01 17:48:09 +00:00
oharboe
afe5371bc8
Do not assert trst in srst_only case even if srst_pulls_trst.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@530 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-31 19:39:05 +00:00
oharboe
86d3e74464
target_call_timer_callbacks_now() now invokes periodic callbacks immediately
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@529 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-31 19:34:01 +00:00
oharboe
408e1d86a0
Removed exit()'s. A reset is usually enough to work around these, reducing cycle times
...
to get config scripts right.
git-svn-id: svn://svn.berlios.de/openocd/trunk@528 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-31 19:32:38 +00:00
oharboe
a3a3426e86
make jtag_add_statemove() internal to the driver.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@527 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-31 13:18:03 +00:00
oharboe
77d73b2523
Edgar Grimberg: added needed delays
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@526 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-28 11:28:54 +00:00
oharboe
4411c2643e
TAP_SD/SI are now forbidden end states.
...
jtag_add_reset() now returns void streamlining the API
git-svn-id: svn://svn.berlios.de/openocd/trunk@525 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-26 13:29:48 +00:00
oharboe
2df3ca97a7
hooks for multithreading. Disable nagle
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@524 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-26 13:18:23 +00:00
ntfreak
d47e1b8f36
- rename log functions to stop conflicts under win32 (wingdi)
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@523 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-25 15:45:17 +00:00
ntfreak
a96f96d1f0
- gdb server was incorrectly sending null terminator on qXfer:features:read: packet
...
- armv7m now sends correct gdb register packet
git-svn-id: svn://svn.berlios.de/openocd/trunk@522 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-22 14:19:46 +00:00
ntfreak
f669c50fc9
- changed jtag_add_reset errors to warnings
...
- removed extra jtag reset warnings from arm7_9 and cortex_m3
git-svn-id: svn://svn.berlios.de/openocd/trunk@520 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-22 10:30:00 +00:00
ntfreak
4622cb15a9
- armv7m control register now set as dirty when switching context
...
- armv7m added core_mode to cortex_m3_debug_entry DEBUG msg
- cortex_m3 changed WARNINGS to DEBUG msg in cortex_m3_resume
git-svn-id: svn://svn.berlios.de/openocd/trunk@519 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-21 12:53:29 +00:00
drath
87939e553d
- fix warnings during configure cause by ecosboard. default to no, if host cpu isn't arm.
...
- fix generic bitbang code to allow scans to end in Shift-[ID]R
- several CFI fixes (thanks to Michael Schwingen):
- buffer overflow when converting target code in cfi_intel_write_block -
cfi_fix_code_endian needs the number of words, not bytes, as size
argument.
- Spansion flash write was completely broken on big-endian targets - I
borrowed mechanisms from the intel driver, and moved some common code
into the cfi_command_val helper function. There is still more common code
that might be cleaned up.
- the buffer size check in cfi_write was broken for spansion flashes, where
cfi_write_words is not implemented. cfi_write_words is no only called if
the flash does have a buffer size >1.
- "flash info" printed CFI status information for non-CFI flashes, which is
confusing. It now only prints those when a real CFI flash is detected.
git-svn-id: svn://svn.berlios.de/openocd/trunk@517 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-17 21:39:18 +00:00
oharboe
3b2a068ea9
added profile command. It was added to simplify evaluation by testers.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@516 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-14 11:20:46 +00:00
oharboe
6de8c33c38
Michael Bruck: fixed warnings
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@514 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-13 15:46:40 +00:00
oharboe
587dd1c392
clarified jtag_khz command.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@513 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-13 13:58:07 +00:00
oharboe
9bf081192f
added jtag_khz for use with target library
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@512 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-13 11:07:21 +00:00
oharboe
7de7bc80fc
- adds two speeds to jtag_speed. reset and post reset speed. Default
...
is post reset = reset speed.
- removed infinite loop's and exit()'s upon poor arm7/9 communication
- cleaned up error messages a bit. Push ERROR() up into fn's that
fail and can say something meaningful about what failed.
git-svn-id: svn://svn.berlios.de/openocd/trunk@511 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-13 10:14:41 +00:00
oharboe
a3dbb9cee6
print ms in debug_level 3 logs. Seconds is not enough.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@510 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-13 08:17:01 +00:00
oharboe
b8dab6d056
XScale excessive waiting fix.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@509 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-13 08:16:34 +00:00
oharboe
979d6b7943
marked infinite loop in code w/TODO and fixed warning.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@508 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-13 08:05:10 +00:00
oharboe
cb0bc93c06
Dominic undid some of my damage. CLK should now be set as intended in all cases.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@507 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-12 18:05:07 +00:00
oharboe
45af9d83c9
The bitbang driver leaves the TCK 0 when in idle
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@505 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-12 16:01:30 +00:00
oharboe
9bf8a4e48b
This moves common code into functions so as to make it clear
...
that all the jtag_add_xxx() are indeed intended to do the same thing.
git-svn-id: svn://svn.berlios.de/openocd/trunk@504 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-12 14:45:26 +00:00
oharboe
10c3b1c936
fixed regression in XScale introduce in 297
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@503 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-12 14:38:43 +00:00
oharboe
0313c59555
reduce compare noise. If someone should be crazy enough to try to run OpenOCD under eCos, then they'v got some hooks to point them in the general direction.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@499 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-11 21:32:03 +00:00
oharboe
b9162dcc8e
With the recent changes the TRST needs to happen for every reset.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@498 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-11 21:18:44 +00:00
oharboe
d1fe9bacbb
tidy up output a bit. No longer show "accepted connection" inside Telnet session.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@497 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-11 21:17:46 +00:00
oharboe
1812a3535c
- retired unused jtag events. The code was incorrect
...
- hopefully clarified the difference between TRST and TMS reset.
- added DEBUG() statements w.r.t. state changes
- TRST released and moving out of TAP_TLR are completely
different events. Only TRST released has a DEBUG() statement
git-svn-id: svn://svn.berlios.de/openocd/trunk@496 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-11 21:16:57 +00:00
ntfreak
0fe2a5435a
- 16 and 32 bit unaligned accesses supported
...
- uses packed transfers for 8/16bit read/writes greater than 4bytes
- 8/16bit transfers now use address auto increment
git-svn-id: svn://svn.berlios.de/openocd/trunk@495 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-11 18:39:43 +00:00
oharboe
09e303bb8e
retire unused code.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@494 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-11 11:19:15 +00:00
oharboe
ac5fb03521
JTAG_END_STATE is now retired. It is no longer queued.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@493 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-11 11:03:40 +00:00
oharboe
9a9cc91bcb
- fixed jtag_add_reset(). It no longer causes jtag_execute_queue() to
...
fail for two of it's return codes. A little bit weird, but compatible with
existing codebase.
- tightend up error handling. Since the jtag_xxx() is a queue that is either
executed as things are added(hw queue) or a software queue, then
errors can only be caught during jtag_execute_queue(). No error
code is therefore returned from the queuing fn's.
git-svn-id: svn://svn.berlios.de/openocd/trunk@492 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-11 09:06:00 +00:00
oharboe
970e16603b
Pavel Chromy: telnet line buffer size checking, history does not store repeating lines, improved history printing, log callback tweak
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@491 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-11 08:15:54 +00:00
oharboe
7dc025321c
backed out changes from 483.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@490 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 20:19:52 +00:00
oharboe
088bba4391
more target scripts wip.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@489 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 20:12:46 +00:00
oharboe
32eea2a254
more target scripts wip.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@488 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 20:12:35 +00:00
oharboe
cce7512ca9
Pavel Chromy: hopefully perfection for async output and prompt/partially typed command line handling.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@487 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 20:05:48 +00:00
oharboe
e378eeec36
Pavel Chromy: the attached patch refines PRESTO support and makes it work with libftdi.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@486 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 17:24:44 +00:00
oharboe
e7b7025cdd
prettier async output
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@485 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 15:07:21 +00:00
oharboe
703dc714c8
- fixed a problem with big endian XScale and GDB register packets.
...
- hmm..... did I screw up? Was XScale and not gdb_server busted here?
My thinking was that OpenOCD has a canonical internal representation
of registers that match GDB's expectations
git-svn-id: svn://svn.berlios.de/openocd/trunk@484 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 14:14:15 +00:00
oharboe
e6dac739cf
- the jtag chain is examined and validated after GDB & telnet servers
...
are up and running. The examination and validation is actually
"optional" from the point of view of GDB + telnet servers.
Multiple targets should work fine with this.
- jtag_speed is dropped(divisor is increased), if jtag examination and
validation fails.
- the chain is validated 10x to catch the worst jtag_speed offences
- added LOG_SILENT that can be used to shut up log. Feeble
ersatz for try+catch.
- GDB register packets are now always replied in order to make sure
that GDB connect works. If the target is not halted, then these
packets contain dummy values.
git-svn-id: svn://svn.berlios.de/openocd/trunk@483 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 14:07:28 +00:00
oharboe
0424155dfc
- Fixed various error handling when looking for memory leaks
...
- Fixed memory leak in gdb_server.c
- pushed "Error:" statements up into fn's that know something about what went wrong
- load_image now fails if target_write_memory() fails
- only issue an asynchronous halt() upon connect of GDB. Synchronous halt/reset
doesn't really work as what's required to initialize the target might involve a
special monitor sequence for the target in question
- syntax error handling improved(fewer exit()'s)
git-svn-id: svn://svn.berlios.de/openocd/trunk@482 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 12:11:07 +00:00
oharboe
0a34980f2b
- LOG_SILENT can be used to silence the log(needed in upcoming patches)
...
- ERROR_FAIL - added to emphasize that information about what went wrong is
contained in Error: log statements and not in a 32 bit return value.
git-svn-id: svn://svn.berlios.de/openocd/trunk@481 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 12:04:30 +00:00
oharboe
ecb227f10c
added stm32.cfg to install list
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@480 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-10 10:20:26 +00:00
oharboe
4486a8f814
Michael Bruck: fix warning
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@479 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-09 19:22:51 +00:00
ntfreak
5808db821f
- add stm32 target script
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@478 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-09 09:28:12 +00:00
ntfreak
ddd987502a
- added more TARGET_HALTED checks for the read/write_memory handlers
...
- added new commands arm11 mrc and arm11 mcr to generate these instructions during debug
Thanks Michael Bruck
git-svn-id: svn://svn.berlios.de/openocd/trunk@477 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-08 17:28:28 +00:00
oharboe
21bc69bc37
typo.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@476 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-08 10:21:56 +00:00
oharboe
c78b4fe426
- Improves error handling upon GDB connect
...
- switch to synchronous halt during connect. This fixes the bug
where poll() was not invoked between halt() and servicing the
'g' register packet
- halt() no longer returns error code when target is already halted, just
logs a warning. Only the halt() implementation can say anything
meaningful about why a halt() failed, so error messages are pushed
up to halt()
- fixed soft_reset_halt infinite loop bug in arm7_9_common.c. The rest
of the implementations are still busted.
- by using USER() instead of command_print() the log gets the
source + line #. Nice.
- no longer invoke exit() if soft_reset_halt fails. A reset can often
fix the problem.
git-svn-id: svn://svn.berlios.de/openocd/trunk@475 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-07 21:49:16 +00:00