Skip to content

A wrapper around `minichlink` that converts commands for `openocd` to `minichlink`. Also contains binaries for `minichlink` and `minichlink-ocd`.

License

Notifications You must be signed in to change notification settings

ghostiam/minichlink-ocd

Repository files navigation

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.

debug-peripherals.png

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.

setup-ocd.png

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

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.

fix-mem-view.png

About

A wrapper around `minichlink` that converts commands for `openocd` to `minichlink`. Also contains binaries for `minichlink` and `minichlink-ocd`.

Topics

Resources

License

Stars

Watchers

Forks