Skip to main content

A non-invasive DAP-based tool for MCU data acquisition, monitoring, and visualization.

Project description

uCap

A non-invasive DAP-based tool for MCU data acquisition, monitoring, and visualization.

中文文档

Installation

pip install python-ucap

If using ST-Link V3, you need to install the latest pyswd:

git clone https://github.com/cortexm/pyswd
cd pyswd
pip install .

Usage

Read/Write Variables

Fill in a config file and run:

ucap rw -c path/to/config.toml

Real-time Monitor

ucap mon -c path/to/config.toml

Plot Captured Data

ucap show -d path/to/data_dir

Shell Completion

Tab completion is supported for bash / zsh / fish / powershell:

# bash
eval "$(ucap completion bash)"

# zsh
eval "$(ucap completion zsh)"

# fish
ucap completion fish | source

# powershell
ucap completion powershell | Out-String | Invoke-Expression

Add the eval line to ~/.bashrc, ~/.zshrc, fish config, or PowerShell $PROFILE to enable permanently.

Backend Support

Backend Description Dependency
pyocd Default, versatile, supports many debuggers pyocd
pyswd Lightweight and fast, ST-Link only pyswd
openocd Requires a pre-started OpenOCD daemon openocd

Example Configs

The examples/ directory provides config templates for various scenarios:

File Description
simple.toml Minimal config, quick start
full.toml Comprehensive example covering scalar / array / struct / computed / write
plot.toml Plotting config (multi-figure / multi-layout / plot / stem / scatter)
pyocd.toml pyOCD backend connecting to a specific target chip
pyswd.toml pySWD backend (ST-Link)
openocd.toml OpenOCD backend, requires manually starting the daemon

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_ucap-0.7.3.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_ucap-0.7.3-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

Details for the file python_ucap-0.7.3.tar.gz.

File metadata

  • Download URL: python_ucap-0.7.3.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for python_ucap-0.7.3.tar.gz
Algorithm Hash digest
SHA256 8b034f1a68a04d0d2c9b71267f8bb5335dcd250b2ee424d6504da06bc4d192fd
MD5 40f3d2294d11cfb2fcfc34a02884b8a8
BLAKE2b-256 777e9cde743f2a487d4ac26a5c96a2556517acbbcae89a373f14ea0d8e9b0c23

See more details on using hashes here.

File details

Details for the file python_ucap-0.7.3-py3-none-any.whl.

File metadata

  • Download URL: python_ucap-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 35.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for python_ucap-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b690143921b6a233927ecfbb6af1a8edc2bf6e6cc4a2d08d6e5733b431ed5741
MD5 7af7ebcb2c5c97d4be363c9af78cf993
BLAKE2b-256 a876eaec4a63328ccbd99a6834600a84c2a4e6d6a80cc116294e168285e60468

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page