Skip to content

make fails with svd2rust version 0.18.0 #547

Closed
@unpaid-bill

Description

@unpaid-bill

svd2rust recently released version 0.18.0 which contains some breaking changes. This is the version downloaded and installed when running cargo install svd2rust.
When running make for this crate using this version I am hit with this error:

python3 scripts/makecrates.py devices/ -y --families stm32f0 stm32f1 stm32f2 stm32f3 stm32f4 stm32f7 stm32h7 stm32l0 stm32l1 stm32l4 stm32l5 stm32g0 stm32g4 stm32mp1 stm32wl stm32wb
Going to create/update the following directories:
stm32f0/, stm32f1/, stm32f2/, stm32f3/, stm32f4/, stm32f7/, stm32g0/, stm32g4/, stm32h7/, stm32l0/, stm32l1/, stm32l4/, stm32l5/, stm32mp1/, stm32wb/, stm32wl/
mkdir -p stm32f0/src/stm32f0x8
cd stm32f0/src/stm32f0x8; svd2rust -g -i ../../../svd/stm32f0x8.svd.patched
[ERROR svd2rust] In device `STM32F0x8`

    Caused by:
        0: In peripheral `RCC`
        1: In register `CFGR`
        2: Parsing field #8
        3: In field `MCO`
        4: Value 8 out of range 0..8
Makefile:81: recipe for target 'stm32f0/src/stm32f0x8/mod.rs' failed

Reinstalling version 0.17.0 of svd2rust and rerunning make works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions