Øyvind> The "target_script" command must be supported, it's *old* :-)
I presume you specifically mean the "target_script" - command
functionality as in the file: "startup.tcl".
It was - "handle_target_script_command()" in target.c - in an older openocd.
I believe this is simple.
(A) The old command had positional parameters.
(B) And it only supported reading a text config file upon the event.
I only need to translate the old command and invoke the new command.
The old syntax is this: and will be deprecated/supported.
target_script NUMBER EVENTNAME FILENAME
The new syntax would be:
First: [using new or old syntax]
target create NAME
Second:
using old syntax
target_script NUMBER EVENTNAME FILENAME
Using new syntax
NAME configure -event NAME -command "source FILENAME"
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development