openocd.git
11 years agojim license cleanup
oharboe [Mon, 21 Jul 2008 16:13:11 +0000 (16:13 +0000)]
jim license cleanup

git-svn-id: svn://svn.berlios.de/openocd/trunk@851 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoupdate jtag_speed/khz docs a bit.
oharboe [Mon, 21 Jul 2008 16:03:15 +0000 (16:03 +0000)]
update jtag_speed/khz docs a bit.

git-svn-id: svn://svn.berlios.de/openocd/trunk@850 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- jtag_khz/speed are now single parameter only. These are used
oharboe [Mon, 21 Jul 2008 15:59:41 +0000 (15:59 +0000)]
- 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

11 years agocross compile fix
oharboe [Mon, 21 Jul 2008 13:23:59 +0000 (13:23 +0000)]
cross compile fix

git-svn-id: svn://svn.berlios.de/openocd/trunk@848 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agouse reset init explicitly before "load".
oharboe [Mon, 21 Jul 2008 10:16:14 +0000 (10:16 +0000)]
use reset init explicitly before "load".

git-svn-id: svn://svn.berlios.de/openocd/trunk@847 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoDuane Ellis <openocd@duaneellis.com> stm32 peripherals scripts
oharboe [Mon, 21 Jul 2008 09:25:51 +0000 (09:25 +0000)]
Duane Ellis <openocd@duaneellis.com> stm32 peripherals scripts

git-svn-id: svn://svn.berlios.de/openocd/trunk@846 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoMichael Kurz <michi.kurz@googlemail.com> MX29LV800B non-cfi flash.
oharboe [Mon, 21 Jul 2008 09:16:10 +0000 (09:16 +0000)]
Michael Kurz <michi.kurz@googlemail.com> MX29LV800B non-cfi flash.

git-svn-id: svn://svn.berlios.de/openocd/trunk@845 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoBUG: prefix to timeout for gdb keep alive packets.
oharboe [Sun, 20 Jul 2008 18:26:08 +0000 (18:26 +0000)]
BUG: prefix to timeout for gdb keep alive packets.

git-svn-id: svn://svn.berlios.de/openocd/trunk@844 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- added svn props for newly added files
ntfreak [Sun, 20 Jul 2008 17:29:59 +0000 (17:29 +0000)]
- added svn props for newly added files
- reformat spaces from non_cfi.[ch]

git-svn-id: svn://svn.berlios.de/openocd/trunk@843 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoDuane Ellis <openocd@duaneellis.com> - script commands for stm32
oharboe [Sun, 20 Jul 2008 17:13:08 +0000 (17:13 +0000)]
Duane Ellis <openocd@duaneellis.com> - script commands for stm32

git-svn-id: svn://svn.berlios.de/openocd/trunk@842 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoBen Bodley <ben@teknique.com> non-CFI compliant flash (AMIC A29L800A)
oharboe [Sun, 20 Jul 2008 17:08:18 +0000 (17:08 +0000)]
Ben Bodley <ben@teknique.com>  non-CFI compliant flash (AMIC A29L800A)

git-svn-id: svn://svn.berlios.de/openocd/trunk@841 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoDuane Ellis <openocd@duaneellis.com>
oharboe [Sun, 20 Jul 2008 17:06:30 +0000 (17:06 +0000)]
Duane Ellis <openocd@duaneellis.com>
 improve error message in Jim when sourcing a file fails.
Previously it did not tell you the CWD Jim was using as its reference point.
(Helpful when script filenames are a relative path)

git-svn-id: svn://svn.berlios.de/openocd/trunk@840 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoopenocd@duaneellis.com fix naming confusion. Use ocd_ prefix for ocd API consistently.
oharboe [Sun, 20 Jul 2008 17:04:58 +0000 (17:04 +0000)]
openocd@duaneellis.com fix naming confusion. Use ocd_ prefix for ocd API consistently.

git-svn-id: svn://svn.berlios.de/openocd/trunk@839 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agothrow exception upon syntax error.
oharboe [Sat, 19 Jul 2008 10:37:41 +0000 (10:37 +0000)]
throw exception upon syntax error.

git-svn-id: svn://svn.berlios.de/openocd/trunk@838 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- updated texi for removed daemon_startup command
ntfreak [Sat, 19 Jul 2008 09:31:54 +0000 (09:31 +0000)]
- updated texi for removed daemon_startup command
- added info to deprecated/removed commands section

git-svn-id: svn://svn.berlios.de/openocd/trunk@837 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoclarify error message w.r.t. not being able to set breakpoint
oharboe [Sat, 19 Jul 2008 08:11:48 +0000 (08:11 +0000)]
clarify error message w.r.t. not being able to set breakpoint

git-svn-id: svn://svn.berlios.de/openocd/trunk@836 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agodaemon_startup is now retired in favour of adding "init" and "reset halt/init/run...
oharboe [Sat, 19 Jul 2008 08:04:32 +0000 (08:04 +0000)]
daemon_startup is now retired in favour of adding "init" and "reset halt/init/run" to the end of the config file/openocd command line.

git-svn-id: svn://svn.berlios.de/openocd/trunk@835 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoThis allows overriding builtin openocd commands.
oharboe [Fri, 18 Jul 2008 16:25:15 +0000 (16:25 +0000)]
This allows overriding builtin openocd commands.

git-svn-id: svn://svn.berlios.de/openocd/trunk@834 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoremove obsolete reset_mode
oharboe [Fri, 18 Jul 2008 14:51:19 +0000 (14:51 +0000)]
remove obsolete reset_mode

git-svn-id: svn://svn.berlios.de/openocd/trunk@833 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago"reset" without arguments now execute a "reset run".
oharboe [Fri, 18 Jul 2008 14:43:29 +0000 (14:43 +0000)]
"reset" without arguments now execute a "reset run".

the reset mode argument to the target command is deprecated(ignored w/error message).

git-svn-id: svn://svn.berlios.de/openocd/trunk@832 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- remove build warning from keep_alive
ntfreak [Fri, 18 Jul 2008 13:31:37 +0000 (13:31 +0000)]
- remove build warning from keep_alive
- remove surplus linefeeds

git-svn-id: svn://svn.berlios.de/openocd/trunk@831 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- fix incorrectly registered function openocd_array2mem
ntfreak [Fri, 18 Jul 2008 11:38:23 +0000 (11:38 +0000)]
- fix incorrectly registered function openocd_array2mem
- removed unused variables
- reformatted lpc288x.[ch]
- fixed helper/Makefile.am dependencies
- add correct svn props to added files

git-svn-id: svn://svn.berlios.de/openocd/trunk@829 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoresume is now asynchronous
oharboe [Fri, 18 Jul 2008 11:18:35 +0000 (11:18 +0000)]
resume is now asynchronous

git-svn-id: svn://svn.berlios.de/openocd/trunk@828 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agokeep_alive() fix for reset warnings.
oharboe [Fri, 18 Jul 2008 10:50:51 +0000 (10:50 +0000)]
keep_alive() fix for reset warnings.

git-svn-id: svn://svn.berlios.de/openocd/trunk@827 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago1. GDB will print cryptic error messages if it is not fed keep-alive packets
oharboe [Fri, 18 Jul 2008 10:20:10 +0000 (10:20 +0000)]
1. GDB will print cryptic error messages if it is not fed keep-alive packets
within the last 2000ms.

To fix this, add keep_alive() if you are spending >1000ms in an algorithm
thus holding up the server loop.

target_call_timer_callbacks() invokes keep_alive().

2. post_reset script is now executed at normal JTAG speed and not
reset speed.

3. Resume is now synchronous again. Hopefully it will work this time.

git-svn-id: svn://svn.berlios.de/openocd/trunk@826 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoDuane Ellis <openocd@duaneellis.com> more interface files.
oharboe [Fri, 18 Jul 2008 06:32:08 +0000 (06:32 +0000)]
Duane Ellis <openocd@duaneellis.com> more interface files.

git-svn-id: svn://svn.berlios.de/openocd/trunk@825 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin <ckhardin@gmail.com> move tcl stuff nearer to where it belongs.
oharboe [Fri, 18 Jul 2008 06:24:57 +0000 (06:24 +0000)]
Charles Hardin <ckhardin@gmail.com> move tcl stuff nearer to where it belongs.

git-svn-id: svn://svn.berlios.de/openocd/trunk@824 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoadded missing "reset+load" sequence.
oharboe [Fri, 18 Jul 2008 06:02:16 +0000 (06:02 +0000)]
added missing "reset+load" sequence.

git-svn-id: svn://svn.berlios.de/openocd/trunk@823 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin <ckhardin@gmail.com> move jim into helper
oharboe [Thu, 17 Jul 2008 17:34:53 +0000 (17:34 +0000)]
Charles Hardin <ckhardin@gmail.com>  move jim into helper

git-svn-id: svn://svn.berlios.de/openocd/trunk@822 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin ckhardin at gmail.com Instead of stashing the context in a global...
oharboe [Thu, 17 Jul 2008 17:31:07 +0000 (17:31 +0000)]
Charles Hardin ckhardin at gmail.com   Instead of stashing the context in a global variable, just use the "context"
associated with the interp structure being passed around

And fixed the message referring to mem2array in the array2mem function

git-svn-id: svn://svn.berlios.de/openocd/trunk@821 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCollect output from openocd commands into openocd_output local variable
oharboe [Thu, 17 Jul 2008 12:02:55 +0000 (12:02 +0000)]
Collect output from openocd commands into openocd_output local variable

git-svn-id: svn://svn.berlios.de/openocd/trunk@820 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin ckhardin at gmail.com
oharboe [Thu, 17 Jul 2008 08:39:06 +0000 (08:39 +0000)]
Charles Hardin ckhardin at gmail.com

There isn't a real value to the cfg_cmd_ctx since everything should be run thru the initial context created at start.

git-svn-id: svn://svn.berlios.de/openocd/trunk@819 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin <ckhardin@gmail.com> and Øyvind Harboe
oharboe [Thu, 17 Jul 2008 08:34:14 +0000 (08:34 +0000)]
Charles Hardin <ckhardin@gmail.com> and Øyvind Harboe

This patch just uses the command.c interface to create tcl commands for the root level commands and avoids a bit of the "TCL" bleed into the rest of the openocd code.

Multilevel commands also supported.

git-svn-id: svn://svn.berlios.de/openocd/trunk@818 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- reverted resume_target to old behaviour
ntfreak [Thu, 17 Jul 2008 07:15:14 +0000 (07:15 +0000)]
- reverted resume_target to old behaviour

git-svn-id: svn://svn.berlios.de/openocd/trunk@817 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin ckhardin at gmail.com bin2char does not need to be installed as part...
oharboe [Thu, 17 Jul 2008 06:21:29 +0000 (06:21 +0000)]
Charles Hardin ckhardin at gmail.com  bin2char does not need to be installed as part of openocd

git-svn-id: svn://svn.berlios.de/openocd/trunk@816 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoFixes to \ and / handling for OpenOCD
oharboe [Wed, 16 Jul 2008 20:20:15 +0000 (20:20 +0000)]
Fixes to \ and / handling for OpenOCD

git-svn-id: svn://svn.berlios.de/openocd/trunk@815 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoflash_banks now follow OpenOCD scripting API rules
oharboe [Wed, 16 Jul 2008 12:44:00 +0000 (12:44 +0000)]
flash_banks now follow OpenOCD scripting API rules

git-svn-id: svn://svn.berlios.de/openocd/trunk@814 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoprint out jim error message stack trace in expected order(look at any C++ or Java...
oharboe [Wed, 16 Jul 2008 10:23:16 +0000 (10:23 +0000)]
print out jim error message stack trace in expected order(look at any C++ or Java debugger for instance).

git-svn-id: svn://svn.berlios.de/openocd/trunk@813 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agodo not print jim tcl error message trace for ERROR_COMMAND_CLOSE_CONNECTION
oharboe [Wed, 16 Jul 2008 10:12:29 +0000 (10:12 +0000)]
do not print jim tcl error message trace for ERROR_COMMAND_CLOSE_CONNECTION

git-svn-id: svn://svn.berlios.de/openocd/trunk@812 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoprint syntax for command upon syntax error.
oharboe [Wed, 16 Jul 2008 08:49:05 +0000 (08:49 +0000)]
print syntax for command upon syntax error.

git-svn-id: svn://svn.berlios.de/openocd/trunk@811 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agobetter error messages for target event scripts.
oharboe [Wed, 16 Jul 2008 07:22:17 +0000 (07:22 +0000)]
better error messages for target event scripts.

git-svn-id: svn://svn.berlios.de/openocd/trunk@810 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agofeeble beginnings for tcl api rules.
oharboe [Tue, 15 Jul 2008 14:10:13 +0000 (14:10 +0000)]
feeble beginnings for tcl api rules.

git-svn-id: svn://svn.berlios.de/openocd/trunk@809 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- stm32 flash driver correctly handles early silicon
ntfreak [Tue, 15 Jul 2008 10:21:43 +0000 (10:21 +0000)]
- stm32 flash driver correctly handles early silicon

git-svn-id: svn://svn.berlios.de/openocd/trunk@808 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin <ckhardin@gmail.com>
oharboe [Mon, 14 Jul 2008 06:34:23 +0000 (06:34 +0000)]
Charles Hardin <ckhardin@gmail.com>

This evaluates the file at the correct level for the interpreter and the
sets and all the globals are then done as expected.

added a const to find_file function to avoid typecasting

git-svn-id: svn://svn.berlios.de/openocd/trunk@806 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- remove unused objcopy from configure.in
ntfreak [Sun, 13 Jul 2008 21:07:14 +0000 (21:07 +0000)]
- remove unused objcopy from configure.in
- make sure bin2char is built before openocd
- add generated startup_tcl.c to clean list
- pass startup_tcl directly to Jim_Eval

git-svn-id: svn://svn.berlios.de/openocd/trunk@805 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- added svn props for newly added files
ntfreak [Sun, 13 Jul 2008 20:20:58 +0000 (20:20 +0000)]
- added svn props for newly added files

git-svn-id: svn://svn.berlios.de/openocd/trunk@804 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin <ckhardin@gmail.com> - hopefully final word on startup.tcl => c conversion
oharboe [Sun, 13 Jul 2008 17:31:40 +0000 (17:31 +0000)]
Charles Hardin <ckhardin@gmail.com> - hopefully final word on startup.tcl => c conversion

git-svn-id: svn://svn.berlios.de/openocd/trunk@803 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoDuane Ellis <openocd@duaneellis.com> fix to tcl puts
oharboe [Sun, 13 Jul 2008 08:25:33 +0000 (08:25 +0000)]
Duane Ellis <openocd@duaneellis.com> fix to tcl puts

git-svn-id: svn://svn.berlios.de/openocd/trunk@802 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- fix issue when building in separate build dir
ntfreak [Sat, 12 Jul 2008 22:40:49 +0000 (22:40 +0000)]
- fix issue when building in separate build dir
- Thanks Duane Ellis

git-svn-id: svn://svn.berlios.de/openocd/trunk@801 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- remove requirement for file2c.tcl
ntfreak [Sat, 12 Jul 2008 16:25:17 +0000 (16:25 +0000)]
- remove requirement for file2c.tcl

git-svn-id: svn://svn.berlios.de/openocd/trunk@800 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agotesting/*.tcl sample & test code
oharboe [Sat, 12 Jul 2008 07:50:17 +0000 (07:50 +0000)]
testing/*.tcl sample & test code

git-svn-id: svn://svn.berlios.de/openocd/trunk@799 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agotesting/*.tcl sample & test code
oharboe [Sat, 12 Jul 2008 07:50:03 +0000 (07:50 +0000)]
testing/*.tcl sample & test code

git-svn-id: svn://svn.berlios.de/openocd/trunk@798 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agohelp is now implemented in startup.tcl/help
oharboe [Fri, 11 Jul 2008 19:30:54 +0000 (19:30 +0000)]
help is now implemented in startup.tcl/help

git-svn-id: svn://svn.berlios.de/openocd/trunk@797 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- configure check added for tclsh
ntfreak [Fri, 11 Jul 2008 18:25:21 +0000 (18:25 +0000)]
- configure check added for tclsh
- startup.c manually added to clean deps

git-svn-id: svn://svn.berlios.de/openocd/trunk@796 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agosearch help text too
oharboe [Fri, 11 Jul 2008 17:46:17 +0000 (17:46 +0000)]
search help text too

git-svn-id: svn://svn.berlios.de/openocd/trunk@795 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin ckhardin at gmail.com
oharboe [Fri, 11 Jul 2008 17:40:15 +0000 (17:40 +0000)]
Charles Hardin ckhardin at gmail.com

This address the >32 bit problem with drscan
also added a check for bypass in the execute since this will manifest itself
as a memory corruption when this check helps to debug the problem alot easier

git-svn-id: svn://svn.berlios.de/openocd/trunk@794 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agotcl_help prettier output.
oharboe [Fri, 11 Jul 2008 17:36:36 +0000 (17:36 +0000)]
tcl_help prettier output.

git-svn-id: svn://svn.berlios.de/openocd/trunk@793 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agowork in progress to improve help
oharboe [Fri, 11 Jul 2008 15:07:58 +0000 (15:07 +0000)]
work in progress to improve help

git-svn-id: svn://svn.berlios.de/openocd/trunk@792 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- retired variable stuff.
oharboe [Fri, 11 Jul 2008 12:17:56 +0000 (12:17 +0000)]
- retired variable stuff.
- drscan is now a low level tcl command:
 execute DR scan <device> <num_bits> <value> <num_bits1> <value2>
- removed obsolete partial command text support

git-svn-id: svn://svn.berlios.de/openocd/trunk@791 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago.cfg files are now executed as Jim Tcl. Commands that terminate script w/error message.
oharboe [Fri, 11 Jul 2008 09:06:36 +0000 (09:06 +0000)]
.cfg files are now executed as Jim Tcl. Commands that terminate script w/error message.

git-svn-id: svn://svn.berlios.de/openocd/trunk@790 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- added svn props for newly added files
ntfreak [Fri, 11 Jul 2008 08:17:31 +0000 (08:17 +0000)]
- added svn props for newly added files

git-svn-id: svn://svn.berlios.de/openocd/trunk@789 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoworking notes.
oharboe [Fri, 11 Jul 2008 06:52:33 +0000 (06:52 +0000)]
working notes.

git-svn-id: svn://svn.berlios.de/openocd/trunk@788 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agostartup.tcl (former commands.tcl) is now embedded into OpenOCD executable.
oharboe [Fri, 11 Jul 2008 06:44:22 +0000 (06:44 +0000)]
startup.tcl (former commands.tcl) is now embedded into OpenOCD executable.

git-svn-id: svn://svn.berlios.de/openocd/trunk@787 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin <ckhardin@gmail.com>
oharboe [Thu, 10 Jul 2008 18:47:50 +0000 (18:47 +0000)]
Charles Hardin <ckhardin@gmail.com>

Add semantics to support memwrite(32,16,8) with an array2mem command
Move the global up in bits2bytes.tcl so the set puts the value in the global
context.
Add memwrite procs to memory.tcl

git-svn-id: svn://svn.berlios.de/openocd/trunk@786 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- added search paths before running tcl/commands.tcl.
oharboe [Thu, 10 Jul 2008 18:24:30 +0000 (18:24 +0000)]
- added search paths before running tcl/commands.tcl.
- improved error handling for missing tcl/commands.tcl

git-svn-id: svn://svn.berlios.de/openocd/trunk@785 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agofix quoting problem when handling OpenOCD commands.
oharboe [Thu, 10 Jul 2008 09:22:28 +0000 (09:22 +0000)]
fix quoting problem when handling OpenOCD commands.

git-svn-id: svn://svn.berlios.de/openocd/trunk@784 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoSEGFAULT fix for syntax error.
oharboe [Thu, 10 Jul 2008 08:57:35 +0000 (08:57 +0000)]
SEGFAULT fix for syntax error.

git-svn-id: svn://svn.berlios.de/openocd/trunk@783 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agovery slight cleanup of flash banks handling.
oharboe [Thu, 10 Jul 2008 06:44:11 +0000 (06:44 +0000)]
very slight cleanup of flash banks handling.

git-svn-id: svn://svn.berlios.de/openocd/trunk@782 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoimprove error messages a little bit.
oharboe [Wed, 9 Jul 2008 22:19:05 +0000 (22:19 +0000)]
improve error messages a little bit.

git-svn-id: svn://svn.berlios.de/openocd/trunk@781 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- adding missing install entry for luminary-libftdi.cfg
ntfreak [Wed, 9 Jul 2008 19:52:03 +0000 (19:52 +0000)]
- adding missing install entry for luminary-libftdi.cfg

git-svn-id: svn://svn.berlios.de/openocd/trunk@780 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago"flash banks" is now implemented in Tcl on top of "flash_banks". openocd_throw prefix...
oharboe [Wed, 9 Jul 2008 15:22:05 +0000 (15:22 +0000)]
"flash banks" is now implemented in Tcl on top of "flash_banks". openocd_throw prefix is no longer required when executing OpenOCD commands from tcl.

git-svn-id: svn://svn.berlios.de/openocd/trunk@779 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- added luminary libftdi interface config
ntfreak [Wed, 9 Jul 2008 13:05:46 +0000 (13:05 +0000)]
- added luminary libftdi interface config

git-svn-id: svn://svn.berlios.de/openocd/trunk@778 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- only check normal resume, not debug resume
ntfreak [Wed, 9 Jul 2008 12:46:40 +0000 (12:46 +0000)]
- only check normal resume, not debug resume

git-svn-id: svn://svn.berlios.de/openocd/trunk@777 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoadded flash_banks low level command.
oharboe [Wed, 9 Jul 2008 11:09:06 +0000 (11:09 +0000)]
added flash_banks low level command.

git-svn-id: svn://svn.berlios.de/openocd/trunk@776 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- target_resume is now synchronous with 5sec timeout
ntfreak [Wed, 9 Jul 2008 10:33:30 +0000 (10:33 +0000)]
- target_resume is now synchronous with 5sec timeout

git-svn-id: svn://svn.berlios.de/openocd/trunk@775 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agotcl regression fixes.
oharboe [Tue, 8 Jul 2008 16:05:59 +0000 (16:05 +0000)]
tcl regression fixes.

git-svn-id: svn://svn.berlios.de/openocd/trunk@774 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago * src/jim.c: remove bogus return value from if {[expr]} {xx} when
oharboe [Tue, 8 Jul 2008 12:05:58 +0000 (12:05 +0000)]
* src/jim.c: remove bogus return value from if {[expr]} {xx} when
{xx} is not run.

git-svn-id: svn://svn.berlios.de/openocd/trunk@773 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- removed target_process_events as only used in handle_resume_command and events...
ntfreak [Tue, 8 Jul 2008 11:19:03 +0000 (11:19 +0000)]
- removed target_process_events as only used in handle_resume_command and events will be called anyway by poll

git-svn-id: svn://svn.berlios.de/openocd/trunk@772 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- fix pre_resume script not being called
ntfreak [Tue, 8 Jul 2008 10:49:58 +0000 (10:49 +0000)]
- fix pre_resume script not being called

git-svn-id: svn://svn.berlios.de/openocd/trunk@771 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- apply correct formatting to openocd.c
ntfreak [Tue, 8 Jul 2008 08:55:53 +0000 (08:55 +0000)]
- apply correct formatting to openocd.c
- Thanks Charles Hardin

git-svn-id: svn://svn.berlios.de/openocd/trunk@770 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoreset event is synonym for post_reset event.
oharboe [Mon, 7 Jul 2008 21:06:22 +0000 (21:06 +0000)]
reset event is synonym for post_reset event.

git-svn-id: svn://svn.berlios.de/openocd/trunk@769 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agomore tcl cleanup.
oharboe [Mon, 7 Jul 2008 20:02:51 +0000 (20:02 +0000)]
more tcl cleanup.

git-svn-id: svn://svn.berlios.de/openocd/trunk@768 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoDuane Ellis <openocd@duaneellis.com>: This simple patch adds precision support to...
oharboe [Mon, 7 Jul 2008 18:57:27 +0000 (18:57 +0000)]
Duane Ellis <openocd@duaneellis.com>: This simple patch adds precision support to JIM's format command.

git-svn-id: svn://svn.berlios.de/openocd/trunk@767 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- command_run_line will only search once for the command, and execute if found
ntfreak [Mon, 7 Jul 2008 12:19:17 +0000 (12:19 +0000)]
- command_run_line will only search once for the command, and execute if found

git-svn-id: svn://svn.berlios.de/openocd/trunk@766 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoadded pre/postlude fn's for when OpenOCD is sleeping.
oharboe [Mon, 7 Jul 2008 08:05:07 +0000 (08:05 +0000)]
added pre/postlude fn's for when OpenOCD is sleeping.

git-svn-id: svn://svn.berlios.de/openocd/trunk@765 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agofix syntax error.
oharboe [Mon, 7 Jul 2008 06:36:12 +0000 (06:36 +0000)]
fix syntax error.

git-svn-id: svn://svn.berlios.de/openocd/trunk@764 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin <ckhardin@gmail.com> Tcl server documentation.
oharboe [Mon, 7 Jul 2008 06:29:07 +0000 (06:29 +0000)]
Charles Hardin <ckhardin@gmail.com> Tcl server documentation.

git-svn-id: svn://svn.berlios.de/openocd/trunk@763 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- fix duplicate log entry
ntfreak [Sun, 6 Jul 2008 23:49:05 +0000 (23:49 +0000)]
- fix duplicate log entry

git-svn-id: svn://svn.berlios.de/openocd/trunk@762 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- fix typo in memory.tcl
ntfreak [Sun, 6 Jul 2008 23:26:31 +0000 (23:26 +0000)]
- fix typo in memory.tcl
- Thanks Charles Hardin

git-svn-id: svn://svn.berlios.de/openocd/trunk@761 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- fixed build issues with win32
ntfreak [Sun, 6 Jul 2008 23:22:17 +0000 (23:22 +0000)]
- fixed build issues with win32
- fixed build warnings for last commit
- set svn props for last commit

git-svn-id: svn://svn.berlios.de/openocd/trunk@760 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agomoving Tcl stuff around slightly.
oharboe [Sun, 6 Jul 2008 22:03:07 +0000 (22:03 +0000)]
moving Tcl stuff around slightly.

git-svn-id: svn://svn.berlios.de/openocd/trunk@759 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agofix a few compilation problems.
oharboe [Sun, 6 Jul 2008 19:56:15 +0000 (19:56 +0000)]
fix a few compilation problems.

git-svn-id: svn://svn.berlios.de/openocd/trunk@758 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoCharles Hardin <ckhardin@gmail.com> - Tcl Server
oharboe [Sun, 6 Jul 2008 19:33:05 +0000 (19:33 +0000)]
Charles Hardin <ckhardin@gmail.com> - Tcl Server

git-svn-id: svn://svn.berlios.de/openocd/trunk@757 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoOopss. Forgot to list Duane Ellis <openocd@duaneellis.com> as the author of changes...
oharboe [Sun, 6 Jul 2008 19:25:04 +0000 (19:25 +0000)]
Oopss. Forgot to list Duane Ellis <openocd@duaneellis.com> as the author of changes in 755.

git-svn-id: svn://svn.berlios.de/openocd/trunk@756 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agosrc/helper/configuration.h
oharboe [Sun, 6 Jul 2008 19:17:43 +0000 (19:17 +0000)]
src/helper/configuration.h
- Log output handlers now get a "const char *line"
- Added "const" to parameter.

src/helper/command.c
src/helper/command.h
- New function:  'command_output_text()'
- Log output handlers now get a "const char *line"

src/helper/options.c
- Log output handlers now get a "const char *line"

src/server/telnet_server.c
- DO not transmit NULL bytes via TELNET.
- Log output handlers now get a "const char *line"

src/server/gdb_server.c
- Log output handlers now get a "const char *line"

*** THIS INCLUDES PORTIONS OF A PATCH FROM Oyvind sent
previously to the mailing list for TCL users try

src/target/target.c
*** THIS INCLUDES PORTIONS OF A PATCH FROM Oyvind sent
previously to the mailing list for TCL users try

src/target/target.h
*** THIS INCLUDES PORTIONS OF A PATCH FROM Oyvind sent
previously to the mailing list for TCL users try

src/openocd.c
    - **MAJOR** Work: New TCL/Jim function: mem2array
- **MAJOR** Work: Redirect Tcl/Jim stdio output to remote users.
- Previously: TCL output did not go to GDB.
- Previously: TCL output did not go to TELNET
- Previously: TCL output only goes to control console.
- This fixes that problem.
+ Created callbacks:
+openocd_jim_fwrite()
+openocd_jim_fread()
+openocd_jim_vfprintf()
+openocd_jim_fflush()
+openocd_jim_fgets()

src/Makefile.am
- New TCL files.
- Future note: This should be more automated.  As the list of
  'tcl' files grows maintaning this list will suck.

src/Jim.c
- ** THIS INCLUDES A PREVIOUS PATCH I SENT EARLIER **
- that impliments many [format] specifies JIM did not support.
- Jim_FormatString() - **MAJOR** work.
- Previously only supported "%s" "%d" and "%c"
- And what support existed had bugs.
- NEW: *MANY* formating parameters are now supported.
- TODO: The "precision" specifier is not supported.

** NEW ** This patch.

- Jim_StringToWide() test if no conversion occured.
- Jim_StringToIndex() test if no conversion occured.
- Jim_StringToDouble() test if no conversion occured.

** NEW ** This Patch. Major Work.
- Previously output from JIM did not get sent to GDB
- Ditto: Output to Telnet session.
- Above items are now fixed - By introducing callbacks
  new function pointers in the "interp" structure.

- Helpers that call the callbacks.

- New function: Jim_fprintf()
- New function: Jim_vfprintf()
- New function: Jim_fwrite()
- New function: Jim_fread()
- New function: Jim_fflush()
- New function: Jim_fgets()

By default: the output is to STDIO as previous.
The "openocd.c" - redirects the output as needed.

- Jim_Panic() - Send panic to both STDERR and the interps
specified STDERR output as a 2nd choice.

- Now JIM's "stdin/stdout/stderr" paramters are "void *"
and are no longer "FILE *".

src/Jim.h
- **MAJOR**
-  New JIM STDIO callbacks in the "interp" structure.
-  change: "stdin/stdout/stderr" are now "void *" cookies.
-  New JIM stdio helper functions.

git-svn-id: svn://svn.berlios.de/openocd/trunk@755 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- added search for libdl
ntfreak [Sat, 5 Jul 2008 09:57:19 +0000 (09:57 +0000)]
- added search for libdl
- Thanks Charles Hardin

git-svn-id: svn://svn.berlios.de/openocd/trunk@754 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- added svn props for newly added files
ntfreak [Fri, 4 Jul 2008 17:49:45 +0000 (17:49 +0000)]
- added svn props for newly added files

git-svn-id: svn://svn.berlios.de/openocd/trunk@752 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- added event scripts for str73x and str75x targets
ntfreak [Fri, 4 Jul 2008 17:46:41 +0000 (17:46 +0000)]
- added event scripts for str73x and str75x targets

git-svn-id: svn://svn.berlios.de/openocd/trunk@751 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- added jtag_khz to target scripts
ntfreak [Fri, 4 Jul 2008 17:33:46 +0000 (17:33 +0000)]
- added jtag_khz to target scripts

git-svn-id: svn://svn.berlios.de/openocd/trunk@750 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- fixed line endings with commands.tcl
ntfreak [Fri, 4 Jul 2008 16:59:35 +0000 (16:59 +0000)]
- fixed line endings with commands.tcl
- added svn props for newly added files

git-svn-id: svn://svn.berlios.de/openocd/trunk@749 b42882b7-edfa-0310-969c-e2dbd0fdcd60