Hello fsxx2, I agree with Evgeniy that the Tcl API is better suited for scripting and connecting external programs to OpenOCD. If you'd want a more robust tool than the simple netcat, you can talk to OpenOCD via the PyOpenocdClient library. (For transparency, I'm the author.) This library will handle the meta-characters used in the Tcl RPC channel, and will also properly report errors that might occur, like connection errors or failed Tcl commands. Here is a python command that will read the value...