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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_ucap-0.7.2.tar.gz.
File metadata
- Download URL: python_ucap-0.7.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f07fc471c6e1a9d699c477ac61eff7f028dc8d45b7250eb122a0299db4c8f88
|
|
| MD5 |
76061a534dbe7f623b62504c6baf570d
|
|
| BLAKE2b-256 |
0bdc3f788f7e49197bab40b0a05a3dfd14e3ec551157859fefb3e0cc41e10abb
|
File details
Details for the file python_ucap-0.7.2-py3-none-any.whl.
File metadata
- Download URL: python_ucap-0.7.2-py3-none-any.whl
- Upload date:
- Size: 35.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be04627a40eb55134170eecce3050bffd7e23609104f336025f0d345b2fc944d
|
|
| MD5 |
c7b3d5609360280c8d8435dd10d24085
|
|
| BLAKE2b-256 |
88f40497e236501e174756ec38d4683dec796725d2270b1f1f01bd14b6964386
|