Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fu740.yml error #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix fu740.yml error #4

wants to merge 3 commits into from

Conversation

U007D
Copy link

@U007D U007D commented Sep 15, 2023

Without this fix, executing ./update.sh gives:

fu740-pac [ main][»!?][📦 v0.1.0][🦀 v1.72.0]
❯ ./update.sh
+ set -e
+ rm -rf src
+ mkdir src
+ svd patch fu740.yaml
+ svd2rust --target riscv -i fu740.svd.patched
[INFO  svd2rust] Parsing device from SVD file
[ERROR svd2rust] Error parsing SVD XML file
    
    Caused by:
        0: In device `Freedom U740-C000`
        1: In peripheral `PRCI`
        2: Parsing unknown usage at 1637:182
        3: Unknown usage variant for addressBlock

fu740.svd.patched at line 1637 col 182 reads:

<usage>PRCI registers</usage>

fu740.yaml reads:

PRCI:
    description: Power Reset Clocking Interrupt block
    baseAddress: 0x10000000
    addressBlock:
      offset: 0x0
      size: 0x1000
      usage: "PRCI registers"  # <- does not match `registers` name below
    registers:                 # <- does not match `PRCI registers` name above
      hfxosccfg:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant