wip.
[openocd.git] / src / scripting.txt
1 Plan for hosted scripting support in OpenOCD
2 ============================================
3 Jim Tcl support in OpenOCD currently exists as a patch.
4
5 There has been some discussion on the list as to what
6 purpose scripting support might serve in OpenOCD.
7
8 Also Lua was proposed as a scripting language, but
9 only Jim Tcl has been forwarded as a patch.
10
11 Tcl is also backwards syntax compatible with OpenOCD
12 commands.
13
14 What scripting will not do
15 ==========================
16 It is not the intention that normal OpenOCD users will
17 use tcl scripting extensively, write lots of clever scripts,
18 or contribute back to OpenOCD.
19
20 The scripting support is intended for developers of OpenOCD.
21
22 Target scripts can contain new procedures that end users may
23 tinker to their needs without really understanding tcl.
24
25 Since end users are not expected to mess with the scripting
26 language, the choice of language is not terribly important
27 to those same end users.
28
29 Uses of scripting
30 =================
31 Default implementation of procedures in tcl/procedures.tcl.
32
33 - Polymorphic commands for target scripts.
34 - there will be added some commands in Tcl that the target
35 scripts can replace.
36 - produce <productionfile> <serialnumber>. Default implementation
37 is to ignore serial number and write a raw binary file
38 to beginning of first flash. Target script can dictate
39 file format and structure of serialnumber. Tcl allows
40 an argument to consit of e.g. a list so the structure of
41 the serial number is not limited to a single string.
42 - reset handling. Precise control of how srst, trst &
43 tms is handled.
44 - replace some parts of the current command line handler.
45 This is only to simplify the implementation of OpenOCD
46 and will have no externally visible consequences.
47 Tcl has an advantage in that it's syntax is backwards
48 compatible with the current OpenOCD syntax.

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)