Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

Convert an MCU register description from the EDC format to the SVD format

Awesome Lists containing this project

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