[Openocd-development] Command conversion - etc.. Observation.

2008-07-17 Thread Duane Ellis
I have an observation about Jim, and the way OpenOCD is going. Things like the target, the flash, etc I believe should have a formal tcl type name, and should act like TCL things. In some cases, some commands are like that now. Some are not :-( I do not like

[Openocd-development] Additional jtag controller cfg file.

2008-07-17 Thread Duane Ellis
Spen or Oyvind, Please add/commit - another jtag controller configuration as follows: src/target/interface/olimex-jtag-tiny-a.cfg # REFERENCE: http://www.olimex.com/dev/arm-usb-tiny.html interface ft2232 ft2232_device_desc Olimex OpenOCD JTAG TINY A ft2232_layout olimex-jtag -Duane.

[Openocd-development] openocd - stm32 reset problems.

2008-07-17 Thread Duane Ellis
Spen - you seem to be the guy who can fix any cortex problem I've had, I do thank you. Perhaps you can help explain this. I have 2 boards - as I said earlier. #1 has stm32f103vbt6 z 22 dav 93 mlt 22 746 - 128K flash part. board stm32f10x-128k-eval #2 has stm32f103zet6 22089vc mlt 3r816

[Openocd-development] cortex m3 - breakpoints

2008-07-16 Thread Duane Ellis
Hmm, something does not work with the cortexm3 breakpoints. I start gdb. Load (flash) my program via gdb. I use mon reset to reset the cpu. I step 1 time (istep). I set 1 breakpoint some place in main I then click continue. it closes the connection - I am lost/stuck and do

Re: [Openocd-development] Configuration scripts running at wrong level?

2008-07-13 Thread Duane Ellis
Charles Doing a command line similar to charles openocd -f openocd.cfg charles Has the set commands inside of openocd.cfg running a level 1 charles instead of level 0. I am a little confused as to why this is happening. charles I did one hack locally to try and play a little [snip] charles and

Re: [Openocd-development] Configuration scripts running at wrong level?

2008-07-13 Thread Duane Ellis
Charles This is either a documentation fix so people know the scope of the Charles configuration files and explicitly global the variables or a code fix Charles to get the config files sourced at level 0. If I purposely want to define things in an initialization file - i would expect them to be

Re: [Openocd-development] openocd tcl function return values.

2008-07-13 Thread Duane Ellis
duane I have a suggestion about the return values of duane [use associative arrays for return values] Øyvind Does Jim Tcl support them? duane yes [snip] Øyvind My problem with the above was that I didn't understand it after a single try. Øyvind It seems awfully complicated. duane Let me

Re: [Openocd-development] OpenOCD scripting API - no over-the-wire format at all

2008-07-12 Thread Duane Ellis
There is always an over the wire protocol you can dance around the issue all you want. As you say: The client *decides* what code to run on the server(e.g. on the OpenOCD command line + injects scriptlets, etc.) Thus the defined over the wire protocol is: (A) the invoking of

Re: [Openocd-development] OpenOCD scripting API - no over-the-wire format at all

2008-07-12 Thread Duane Ellis
Øyvind Harboe wrote: You can call that a defined over the wire protocol if you want to. But this is all further down the line. Then - later we hash out the wire line protocol. I have always been talking about the narrow subject of the wireline protocol. I'm ok with that. -Duane.

[Openocd-development] PATCH - svn 800 - 'tcl puts' command does not work.

2008-07-12 Thread Duane Ellis
With the recent re-org of how tcl commands get executed... (ie: jim_command() Output from the tcl puts command is broken. For example - this simple test fails. [EMAIL PROTECTED] ~]$ telnet 192.168.0.14 Trying 192.168.0.14... Connected to 192.168.0.14. Escape character is '^]'. Open

Re: [Openocd-development] [PATCH] objcopy prefixes with '_' on linux

2008-07-12 Thread Duane Ellis
Charles Hardin wrote: charles Using objcopy on a linux distro results in unresolved symbols [ basically: _binary_startup_tcl_size vrs binary_startup_tcl_size] EEK... This needs an #IFDEF linux/cygwin Otherwise your patch will break. Nasty problem. there should be a better way of

Re: [Openocd-development] [PATCH] use a bin2char c program

2008-07-12 Thread Duane Ellis
Charles Hardin wrote: Example diff of using a bin2char program to convert the tcl file Better - I have a couple nits to pick. (I have not tried it) (1) +extern unsigned char startup_tcl; Should be : extern const unsigned char startup_tcl[]; (ADD [] brackets) (2) When generating

Re: [Openocd-development] Switching .cfg files to tcl

2008-07-11 Thread Duane Ellis
ville So, even a single example where something stupidly simple data ville is fetched would help to get started with port and external ville scripting. The example may very well be written in TCL (which ville seems to give a very simple socket interface) or Ruby, or ville Python, or lua,

[Openocd-development] PATCH - precision support in jim/tcl format

2008-07-07 Thread Duane Ellis
This simple patch adds precision support to JIM's format command. -Duane. Index: jim.c === --- jim.c (revision 766) +++ jim.c (working copy) @@ -2180,6 +2180,10 @@ int spad; int altfm;

Re: [Openocd-development] PATCH - Jim/TCL patch - far more complete.

2008-07-06 Thread Duane Ellis
spen Generally i like the addition of the tcl scripting to openocd. spen [but sometimes it goes to far] oyvind Being able to debug OpenOCD without getting into Tcl is a goal for oyvind me and I believe the change does keep that capability reasonably intact. I agree with both of you. There is a

<    1   2   3   4