I integrated Jim Tcl in OpenOCD so as to enable some experimentation and to gauge interest.
Usage: - type Tcl on command line interpreter > expr 1+2 3 - invoke an OpenOCD command from the Tcl interpreter. > openocd "flash bank [expr 0" xxxx output from executing "flash bank 0" Implementation: - A text line in the command line interpreter is first passed to Jim Tcl. If it fails to execute it, then it is passed to the "classic" command line interpreter. Known problem: really the check should be if the line is a command registered in the command line interpreter so that the error message from a failed Tcl command can be printed. - The result from a Tcl command is printed to the current command line interpreter - Tcl has a command "openocd" registered so as to enable launching the "classic" openocd commands from Tcl. Patch: http://www.zylin.com/tclwip.txt -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
