#pic32 #pic32mx #microcontroller #mips #svd2rust

no-std app edc2svd

Convert register description from the EDC format to the SVD format

5 releases (3 breaking)

0.4.0 Mar 4, 2023
0.3.1 Jul 26, 2022
0.3.0 Jan 25, 2020
0.2.0 Nov 2, 2019
0.1.0 Feb 27, 2019

#457 in Embedded development

38 downloads per month

MIT license

16KB
305 lines

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. This program can generate Peripheral Access Crates to be used in Rust programs.

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

Installation

$ cargo install edc2svd

Dependencies

~780KB
~11K SLoC