Command-Line Interface
pyX2Cscope can be launched from the terminal with arguments that control which
GUI is started, which ELF file is loaded, and how the connection is
established. Providing -e and -p at launch skips all manual input —
the application loads the ELF and connects to the target immediately.
python -m pyx2cscope [options] # when installed with pip
pyX2Cscope.exe [options] # standalone executable
Quick reference
Argument |
Short |
Description |
|---|---|---|
|
|
Path to the ELF file generated by the firmware build.
Required to load variable information. If omitted, pyX2Cscope looks
for a path stored in |
|
|
Serial port to connect to (e.g. |
|
|
Start the Web GUI instead of the Qt GUI. |
|
|
Explicitly start the Qt GUI (default when |
|
|
TCP port for the web server (default: |
|
— |
Host address for the web server (default: |
|
|
Logging verbosity. One of |
|
|
Print log output to the terminal in addition to the log file. |
|
— |
Standalone executable only. Install one or more Python packages
into the |
|
|
Print the version number and exit. |
|
|
Print the full help message and exit. |
Examples
Start the Qt GUI, load an ELF, and auto-connect:
pyX2Cscope.exe -e firmware.elf -p AUTO
Start the Web GUI on the default port:
pyX2Cscope.exe -e firmware.elf -p COM3 -w
Start the Web GUI and allow access from other devices on the network:
pyX2Cscope.exe -e firmware.elf -w --host 0.0.0.0 -wp 8080
Run with verbose logging to the terminal:
pyX2Cscope.exe -e firmware.elf -l DEBUG -c
Install an extra library into the standalone executable:
pyX2Cscope.exe --install scipy
Installing extra libraries (standalone executable)
The standalone pyX2Cscope.exe ships with a bundled Python interpreter and
a fixed set of packages. If your firmware uses a communication layer or
post-processing routine that requires an additional package (e.g. scipy,
pandas), you can install it into the libs/ folder that sits next to the
executable:
pyX2Cscope.exe --install scipy
pyX2Cscope.exe --install scipy pandas # multiple packages at once
The packages are installed via the bundled pip and are isolated from your
system Python. They persist across restarts of the executable.