{"id":19482336,"url":"https://github.com/cnfatal/stm32-rust","last_synced_at":"2026-05-15T06:41:24.881Z","repository":{"id":113422053,"uuid":"486633210","full_name":"cnfatal/stm32-rust","owner":"cnfatal","description":"rust embedded example on stm32f103c8t6","archived":false,"fork":false,"pushed_at":"2022-04-28T14:42:32.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T07:25:44.673Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cnfatal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-04-28T14:41:45.000Z","updated_at":"2024-01-24T08:54:40.000Z","dependencies_parsed_at":"2023-04-24T18:45:14.493Z","dependency_job_id":null,"html_url":"https://github.com/cnfatal/stm32-rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnfatal%2Fstm32-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnfatal%2Fstm32-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnfatal%2Fstm32-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnfatal%2Fstm32-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cnfatal","download_url":"https://codeload.github.com/cnfatal/stm32-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240718187,"owners_count":19846477,"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":[],"created_at":"2024-11-10T20:09:47.575Z","updated_at":"2026-05-15T06:41:24.837Z","avatar_url":"https://github.com/cnfatal.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stm32-led\n\nsimple led light control write on rust,run on stm32f103c8t6.\n\nfor more rust embedded infomation check [the embedded Rust book][book].\n\n[book]: https://rust-embedded.github.io/book\n\n## Build\u0026Flash\n\n```sh\ncargo build\ncargo objcopy  --bin stm32-led --release --  -O binary boot.bin\nsudo stm32flash -i '-dtr\u0026rts,dtr\u0026rts' -w boot.bin -v -g 0x0   /dev/cu.usbserial-10\n```\n\n## Debug\n\n```sh\nopenocd -f interface/cmsis-dap.cfg -f target/stm32f1x.cfg -c 'transport select swd'\n```\n\n## Dependencies\n\n### openocd\n\n```sh\nLIBUSB1_CFLAGS=$(pkg-config --cflags libusb) LIBUSB1_LIBS=$(pkg-config --libs libusb) CAPSTONE_CFLAGS=$(pkg-config --cflags capstone) CAPSTONE_LIBS=$(pkg-config --libs capstone) \n```\n\nTo build embedded programs using this template you'll need:\n\n- latest rust toolchain\n\n- `rust-std` components (pre-compiled `core` crate) for the ARM Cortex-M targets. Run:\n\n```console\nrustup target add thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf\n```\n\n## VS Code\n\nThis template includes launch configurations for debugging CortexM programs with Visual Studio Code located in the `.vscode/` directory.  \nSee [.vscode/README.md](./.vscode/README.md) for more information.  \nIf you're not using VS Code, you can safely delete the directory from the generated project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnfatal%2Fstm32-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcnfatal%2Fstm32-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnfatal%2Fstm32-rust/lists"}