https://github.com/ghostiam/minichlink-ocd
A wrapper around `minichlink` that converts commands for `openocd` to `minichlink`. Also contains binaries for `minichlink` and `minichlink-ocd`.
https://github.com/ghostiam/minichlink-ocd
ch32 ch32v ch32v003 embedded minichlink wch wch-link zig
Last synced: 5 months ago
JSON representation
A wrapper around `minichlink` that converts commands for `openocd` to `minichlink`. Also contains binaries for `minichlink` and `minichlink-ocd`.
- Host: GitHub
- URL: https://github.com/ghostiam/minichlink-ocd
- Owner: ghostiam
- License: mit
- Created: 2025-04-19T00:37:58.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-04-24T02:14:13.000Z (5 months ago)
- Last Synced: 2025-05-04T17:42:24.356Z (5 months ago)
- Topics: ch32, ch32v, ch32v003, embedded, minichlink, wch, wch-link, zig
- Language: Zig
- Homepage:
- Size: 788 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# minichlink-ocd
The official repository used as a dependency for building with the Zig compiler is located here:
https://github.com/cnlohr/ch32fun/tree/master/minichlink## Information
This repository automatically builds and publishes binary files for `minichlink` and `minichlink-ocd`. \
You can download them at the following link: https://github.com/ghostiam/minichlink-ocd/releases/latest## What is `minichlink-ocd`
`minichlink-ocd` is a wrapper around `minichlink` that converts commands for `openocd` into commands for `minichlink`. \
This allows to use `minichlink` in IDEs designed to work with `openocd`, such as CLion.
## Setting up CLion to work with `minichlink-ocd`
Go to `Settings | Build, Execution, Deployment | Embedded Development` and specify the path to the extracted archive
with `minichlink-ocd`. \
Click the `Test` button to check if everything works. A pop-up message with the text
`Minichlink As Open On-Chip Debugger` should appear.
### Fixing the `Memory View` feature
To make the `Memory View` feature work in CLion, you need to edit a parameter in the IDE:
[more about the issue](https://youtrack.jetbrains.com/issue/CPP-33250/clion-gdb-memory-view-issue-with-large-number-of-bytes-4096-need-gdb-cmd-logging-esp-see-the-trace-of-gdb-that-clion-uses#focus=Comments-27-7900478.0-0)Press CTRL+SHIFT+A (CMD+SHIFT+A) -> Registry... \
Find `cidr.debugger.memory.hex.blockSize` there
(start typing `blockSize`, and the IDE will automatically filter the fields as you type),
and set the value to `256` instead of `4096`.