Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiffie/edc2svd
Convert an MCU register description from the EDC format to the SVD format
https://github.com/kiffie/edc2svd
cmsis-svd embedded-rust microcontroller pic32 rust
Last synced: 17 days ago
JSON representation
Convert an MCU register description from the EDC format to the SVD format
- Host: GitHub
- URL: https://github.com/kiffie/edc2svd
- Owner: kiffie
- License: mit
- Created: 2019-02-25T19:40:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T07:18:52.000Z (about 1 year ago)
- Last Synced: 2024-10-12T22:41:51.411Z (about 1 month ago)
- Topics: cmsis-svd, embedded-rust, microcontroller, pic32, rust
- Language: Rust
- Size: 680 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-embedded-rust - edc2svd - [![crates.io](https://img.shields.io/crates/v/edc2svd.svg)](https://crates.io/crates/edc2svd) (Tools / Paid and commercially available materials)
- rust-embedded - edc2svd - [![crates.io](https://img.shields.io/crates/v/edc2svd.svg)](https://crates.io/crates/edc2svd) (Tools / Paid and commercially available materials)
README
# edc2svd
[![Crates.io](https://img.shields.io/crates/v/edc2svd.svg)](https://crates.io/crates/edc2svd)
Convert an MCU register description from the EDC format to the SVD format
EDC files are used to describe the special function registers of PIC32
microcontrollers. An SVD file generated by this program can be used to generate
Peripheral Access Crates to be used in Rust programs.In addition, the output of this program can be used with Ghidra via the
SVD-Loader-Ghidra plugin.## Usage
First, an EDC file is converted with this tool to an SVD file. Then [`svd2rust`]
can be used to generate the Peripheral Access Crate as follows:edc2svd PIC32MX170F256B.PIC PIC32MX170F256B.svd
svd2rust --target none -i PIC32MX170F256B.svd
rm -rf src
form -i lib.rs -o src/ && rm lib.rs
cargo fmt[`svd2rust`]: https://crates.io/crates/svd2rust
## Installation
$ cargo install edc2svd