oharboe
722fcb8d61
resume is now asynchronous
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@828 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-18 11:18:35 +00:00
oharboe
0470a9652b
keep_alive() fix for reset warnings.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@827 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-18 10:50:51 +00:00
oharboe
94e75e0c06
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
2008-07-18 10:20:10 +00:00
oharboe
7648d6b287
Duane Ellis <openocd@duaneellis.com> more interface files.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@825 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-18 06:32:08 +00:00
oharboe
679592d42e
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
2008-07-18 06:24:57 +00:00
oharboe
b504e11abe
added missing "reset+load" sequence.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@823 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-18 06:02:16 +00:00
oharboe
8a14a72f57
Charles Hardin <ckhardin@gmail.com> move jim into helper
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@822 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-17 17:34:53 +00:00
oharboe
0ebb33b185
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
2008-07-17 17:31:07 +00:00
oharboe
5fefa83d07
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
2008-07-17 12:02:55 +00:00
oharboe
5a3712072f
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
2008-07-17 08:39:06 +00:00
oharboe
44928321e6
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
2008-07-17 08:34:14 +00:00
ntfreak
6af107855d
- reverted resume_target to old behaviour
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@817 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-17 07:15:14 +00:00
oharboe
a5914d0152
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
2008-07-17 06:21:29 +00:00
oharboe
3287b8661d
Fixes to \ and / handling for OpenOCD
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@815 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-16 20:20:15 +00:00
oharboe
ffe9257a17
flash_banks now follow OpenOCD scripting API rules
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@814 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-16 12:44:00 +00:00
oharboe
f806c8deab
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
2008-07-16 10:23:16 +00:00
oharboe
cb90c97f33
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
2008-07-16 10:12:29 +00:00
oharboe
d0eef63f68
print syntax for command upon syntax error.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@811 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-16 08:49:05 +00:00
oharboe
396d73ad0c
better error messages for target event scripts.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@810 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-16 07:22:17 +00:00
oharboe
8766d39617
feeble beginnings for tcl api rules.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@809 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-15 14:10:13 +00:00
ntfreak
b979c22bcc
- stm32 flash driver correctly handles early silicon
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@808 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-15 10:21:43 +00:00
oharboe
acce2bcccb
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
2008-07-14 06:34:23 +00:00
ntfreak
696a20fea4
- 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
2008-07-13 21:07:14 +00:00
ntfreak
1edd0e6822
- added svn props for newly added files
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@804 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-13 20:20:58 +00:00
oharboe
766b0ca8ac
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
2008-07-13 17:31:40 +00:00
oharboe
6956527849
Duane Ellis <openocd@duaneellis.com> fix to tcl puts
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@802 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-13 08:25:33 +00:00
ntfreak
de6acb2d36
- 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
2008-07-12 22:40:49 +00:00
ntfreak
2e832a399a
- remove requirement for file2c.tcl
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@800 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-12 16:25:17 +00:00
oharboe
cebfbfa661
testing/*.tcl sample & test code
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@799 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-12 07:50:17 +00:00
oharboe
a65255a06d
testing/*.tcl sample & test code
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@798 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-12 07:50:03 +00:00
oharboe
173a43ff15
help is now implemented in startup.tcl/help
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@797 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-11 19:30:54 +00:00
ntfreak
76dec044c0
- 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
2008-07-11 18:25:21 +00:00
oharboe
94966bf2e3
search help text too
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@795 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-11 17:46:17 +00:00
oharboe
b06f254b24
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
2008-07-11 17:40:15 +00:00
oharboe
e04f0142ee
tcl_help prettier output.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@793 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-11 17:36:36 +00:00
oharboe
69c6f1f7ea
work in progress to improve help
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@792 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-11 15:07:58 +00:00
oharboe
c5b718f5e8
- 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
2008-07-11 12:17:56 +00:00
oharboe
381f9a2e8a
.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
2008-07-11 09:06:36 +00:00
ntfreak
0f2dfabd3b
- added svn props for newly added files
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@789 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-11 08:17:31 +00:00
oharboe
348bc74af4
working notes.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@788 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-11 06:52:33 +00:00
oharboe
efc6063df8
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
2008-07-11 06:44:22 +00:00
oharboe
2b3f4fd293
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
2008-07-10 18:47:50 +00:00
oharboe
2858a9f740
- 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
2008-07-10 18:24:30 +00:00
oharboe
5a2b824b26
fix quoting problem when handling OpenOCD commands.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@784 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-10 09:22:28 +00:00
oharboe
bfa8c1b321
SEGFAULT fix for syntax error.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@783 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-10 08:57:35 +00:00
oharboe
313547ddd6
very slight cleanup of flash banks handling.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@782 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-10 06:44:11 +00:00
oharboe
92beb99bf7
improve error messages a little bit.
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@781 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-09 22:19:05 +00:00
ntfreak
0edbe9145c
- adding missing install entry for luminary-libftdi.cfg
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@780 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-09 19:52:03 +00:00
oharboe
66410d2537
"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
2008-07-09 15:22:05 +00:00
ntfreak
525de2ed3d
- added luminary libftdi interface config
...
git-svn-id: svn://svn.berlios.de/openocd/trunk@778 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-09 13:05:46 +00:00