{"id":27876321,"url":"https://github.com/ghostiam/minichlink-ocd","last_synced_at":"2025-05-05T02:47:14.607Z","repository":{"id":289571361,"uuid":"968904254","full_name":"ghostiam/minichlink-ocd","owner":"ghostiam","description":"A wrapper around `minichlink` that converts commands for `openocd` to `minichlink`. Also contains binaries for `minichlink` and `minichlink-ocd`.","archived":false,"fork":false,"pushed_at":"2025-04-24T02:14:13.000Z","size":807,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-04T17:42:24.356Z","etag":null,"topics":["ch32","ch32v","ch32v003","embedded","minichlink","wch","wch-link","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghostiam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-19T00:37:58.000Z","updated_at":"2025-04-24T02:14:17.000Z","dependencies_parsed_at":"2025-04-24T00:30:30.865Z","dependency_job_id":"c431d122-0313-46a5-a3e5-c485622f3cf8","html_url":"https://github.com/ghostiam/minichlink-ocd","commit_stats":null,"previous_names":["ghostiam/minichlink-ocd"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostiam%2Fminichlink-ocd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostiam%2Fminichlink-ocd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostiam%2Fminichlink-ocd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostiam%2Fminichlink-ocd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostiam","download_url":"https://codeload.github.com/ghostiam/minichlink-ocd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252429966,"owners_count":21746570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ch32","ch32v","ch32v003","embedded","minichlink","wch","wch-link","zig"],"created_at":"2025-05-05T02:47:14.052Z","updated_at":"2025-05-05T02:47:14.602Z","avatar_url":"https://github.com/ghostiam.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minichlink-ocd\n\nThe official repository used as a dependency for building with the Zig compiler is located here:\nhttps://github.com/cnlohr/ch32fun/tree/master/minichlink\n\n## Information\n\nThis repository automatically builds and publishes binary files for `minichlink` and `minichlink-ocd`. \\\nYou can download them at the following link: https://github.com/ghostiam/minichlink-ocd/releases/latest\n\n## What is `minichlink-ocd`\n\n`minichlink-ocd` is a wrapper around `minichlink` that converts commands for `openocd` into commands for `minichlink`. \\\nThis allows to use `minichlink` in IDEs designed to work with `openocd`, such as CLion.\n\n![debug-peripherals.png](.assets/debug-peripherals.png)\n\n## Setting up CLion to work with `minichlink-ocd`\n\nGo to `Settings | Build, Execution, Deployment | Embedded Development` and specify the path to the extracted archive\nwith `minichlink-ocd`. \\\nClick the `Test` button to check if everything works. A pop-up message with the text\n`Minichlink As Open On-Chip Debugger` should appear.\n\n![setup-ocd.png](.assets/setup-ocd.png)\n\n### Fixing the `Memory View` feature\n\nTo make the `Memory View` feature work in CLion, you need to edit a parameter in the IDE:\n[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)\n\nPress CTRL+SHIFT+A (CMD+SHIFT+A) -\u003e Registry... \\\nFind `cidr.debugger.memory.hex.blockSize` there\n(start typing `blockSize`, and the IDE will automatically filter the fields as you type),\nand set the value to `256` instead of `4096`.\n\n![fix-mem-view.png](.assets/fix-mem-view.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostiam%2Fminichlink-ocd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostiam%2Fminichlink-ocd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostiam%2Fminichlink-ocd/lists"}