{"id":18302534,"url":"https://github.com/gemesa/rustlink","last_synced_at":"2025-10-13T22:40:12.033Z","repository":{"id":163201045,"uuid":"638574583","full_name":"gemesa/rustlink","owner":"gemesa","description":"small set of Rust tools to program STM32 devices","archived":false,"fork":false,"pushed_at":"2023-05-21T11:45:25.000Z","size":56,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T11:12:00.148Z","etag":null,"topics":["arm","board","cargo","cortex-m","embedded","linux","nucleo","nucleo-board","programmer-tool","rust","stlink","stlinkv2","stm32","stmicroelectronics"],"latest_commit_sha":null,"homepage":"https://shadowshell.io/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gemesa.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}},"created_at":"2023-05-09T16:32:30.000Z","updated_at":"2024-11-09T19:37:28.000Z","dependencies_parsed_at":"2024-01-06T23:58:12.330Z","dependency_job_id":"a436d0e9-636b-4e01-baf3-cf81a42c663d","html_url":"https://github.com/gemesa/rustlink","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gemesa/rustlink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemesa%2Frustlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemesa%2Frustlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemesa%2Frustlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemesa%2Frustlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gemesa","download_url":"https://codeload.github.com/gemesa/rustlink/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemesa%2Frustlink/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017145,"owners_count":26085984,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["arm","board","cargo","cortex-m","embedded","linux","nucleo","nucleo-board","programmer-tool","rust","stlink","stlinkv2","stm32","stmicroelectronics"],"created_at":"2024-11-05T15:20:20.336Z","updated_at":"2025-10-13T22:40:12.016Z","avatar_url":"https://github.com/gemesa.png","language":"Rust","readme":"# rustlink\n\n[![Codespell CI](https://github.com/gemesa/rustlink/actions/workflows/codespell.yml/badge.svg?event=push)](https://github.com/gemesa/rustlink/actions/workflows/codespell.yml)\n[![Markdown link CI](https://github.com/gemesa/rustlink/actions/workflows/md-link.yml/badge.svg?event=push)](https://github.com/gemesa/rustlink/actions/workflows/md-link.yml)\n[![Rust CI](https://github.com/gemesa/rustlink/actions/workflows/rust.yml/badge.svg?event=push)](https://github.com/gemesa/rustlink/actions/workflows/rust.yml)\n[![Shellcheck CI](https://github.com/gemesa/rustlink/actions/workflows/shellcheck.yml/badge.svg?event=push)](https://github.com/gemesa/rustlink/actions/workflows/shellcheck.yml)\n\nrustlink is a set of tools to program STM32 devices:\n- `rst-info`: device information tool\n- `rst-flash`: programmer and flash manipulation tool\n\n\u003c!-- markdown-link-check-disable-next-line --\u003e\nThe motivation behind these tools is that [probe-rs-cli](https://crates.io/crates/probe-rs-cli) can not handle multiple connected probes (devices):\n\n```\n$ probe-rs-cli info\nError: 2 probes were found.\n```\n\nWith `rst-flash` you can choose by serial number which device to use:\n\n```\n$ rst-info list\n[0]: STLink V2 - serial: AAAAAAAAAAAAAAAAAAAAAAAAAAAA\n[1]: STLink V2 - serial: BBBBBBBBBBBBBBBBBBBBBBBBBBBB\n$ rst-flash download -s AAAAAAAAAAAAAAAAAAAAAAAAAAAA -t STM32F103C8 -f app.elf\n    Finished in 0.179s\n$ rst-flash reset -s AAAAAAAAAAAAAAAAAAAAAAAAAAAA -t STM32F103C8\n```\n\n## Installation from source\n\n### Prerequisites\n\nThe following tools are necessary for building:\n\n- `cargo` (\u003e=1.68.2)\n- `rustc` (\u003e=1.68.2)\n\nBoth can be installed from the [official Rust site](https://www.rust-lang.org/tools/install).\n\n### How to build and install\n\nInvoke the following commands:\n\n```bash\n$ cargo build --release\n$ cargo install --path .\n```\n\nwhich will build `rst-info` and `rst-flash` executables and install them in `\u003cyour-home\u003e/.cargo/bin/`.\n\n## Examples\n\n### List STlink devices\n\n```\n$ rst-info list\n[0]: STLink V2 - serial: AAAAAAAAAAAAAAAAAAAAAAAAAAAA\n[1]: STLink V2 - serial: BBBBBBBBBBBBBBBBBBBBBBBBBBBB\n```\n\n### Download to flash and run\n\n```\n$ rst-flash download -s AAAAAAAAAAAAAAAAAAAAAAAAAAAA -t STM32F103C8 -f app.elf\n    Finished in 0.179s\n$ rst-flash reset -s AAAAAAAAAAAAAAAAAAAAAAAAAAAA -t STM32F103C8\n```\n\n### Dump and erase memory\n\n```\n$ rst-flash download -s AAAAAAAAAAAAAAAAAAAAAAAAAAAA -t STM32F103C8 -f app.elf \n    Finished in 0.191s\n$ rst-flash dump -s AAAAAAAAAAAAAAAAAAAAAAAAAAAA -t STM32F103C8 0x0800_0000 1                   \nAddr 0x08000000: 0x20005000\nRead 1 words in 498.057µs\n$ rst-flash erase -s AAAAAAAAAAAAAAAAAAAAAAAAAAAA -t STM32F103C8\n$ rst-flash dump -s AAAAAAAAAAAAAAAAAAAAAAAAAAAA -t STM32F103C8 0x0800_0000 1\nAddr 0x08000000: 0xffffffff\nRead 1 words in 473.943µs\n```\n\n### Get chip info\n\n```\n$ probe-rs-cli chip info STM32F103C8\nSTM32F103C8\nCores (1):\n    - main (Armv7m)\nRAM: 0x20000000..0x20005000 (20.00 KiB)\nNVM: 0x08000000..0x08010000 (64.00 KiB)\n```\n","funding_links":[],"categories":["MCU programming"],"sub_categories":["STM32"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemesa%2Frustlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgemesa%2Frustlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemesa%2Frustlink/lists"}