Skip to content

syx-413/ch32-hal-template

 
 

Repository files navigation

Rust ch32-hal-template

A template for use with cargo-generate to create applications targeting WCH's line of MCU.

Generate the project

Please make sure you have installed all prerequisites first!

To generate a project using this template:

cargo generate ch32-rs/ch32-hal-template

If cargo generate is not installed:

cargo install cargo-generate

Build & Flash

check it

If you need doc about you use crates, run this command

cargo doc --open

Prerequisites

If you are new to rust embedded, you can refer to detailed instructions Setting Up a Development Environment chapter of The Rust on ESP Book.

Install Rust (with rustup)

If you don't have rustup installed yet, follow the instructions on the rustup.rs site

Install Cargo Sub-Commands

cargo install cargo-generate
cargo install --git https://github.com/ch32-rs/wlink

Note

wlink needs to be installed:

License

Licensed under either of:

at your option.

About

Templat for ch32-hal projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%