Skip to content

A tool for generating a rust project from a STM32CubeMX ioc file

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

dimpolo/cube2rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cube2rust

A tool for generating a rust project from a STM32CubeMX ioc file.

demo

The tool will run cargo init in the same directory as the ioc file.

It will then add dependencies to Cargo.toml and generate a src/main.rs, .cargo/config and memory.x.

Currently, running this tool will overwrite everything, so use with caution.

Installation

$ cargo install cube2rust

Usage

From inside a directory containing an ioc file

$ cube2rust

From anywhere

$ cube2rust path/to/project_directory

Currently supported

  • Only STM32F0
  • GPIO, RCC, SPI, USART, I2C

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A tool for generating a rust project from a STM32CubeMX ioc file

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published