Code Monkey home page Code Monkey logo

Comments (10)

burrbull avatar burrbull commented on July 19, 2024

Correct error message:

❯ svdtools html ./html rk3588.svd 
Processing rk3588.svd
thread 'main' panicked at src/html/html_cli.rs:501:41:
called `Result::unwrap()` on an `Err` value: In file rk3588.svd

Caused by:
    0: In device `RockChip_RK3588`
    1: In peripheral `FSPI`
    2: In register `CTRL0`
    3: Parsing field `IDLE_CYCLE` at 104982:7
    4: `EnumeratedValue error: Value 4 out of range 0..4
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

from svd.

burrbull avatar burrbull commented on July 19, 2024

I would propose you to try svdtools instead. At least until you fix all SVD bugs. There a lot of them.

from svd.

DualTachyon avatar DualTachyon commented on July 19, 2024

Maybe I misunderstood your message, but how is "Value 4 is outside 0..4" in your post correct? The range of values is 0..3, not 0..4.

from svd.

burrbull avatar burrbull commented on July 19, 2024

See line 104982 in SVD. There bitWidth = 2 with EnumeratedValue s from 0 to 15.

from svd.

burrbull avatar burrbull commented on July 19, 2024

The range of values is 0..3, not 0..4.

Oh. I see. It just we use open range (a..b) and close range (a..=b) in Rust.

from svd.

burrbull avatar burrbull commented on July 19, 2024

Error message is here:

#[error("Value {0} out of range {1:?}")]

from svd.

DualTachyon avatar DualTachyon commented on July 19, 2024

Ah, thanks for clarifying the open/close range thing. I wasn't aware of that.

I was aware of my bitwidth bug as stated in my first post. I was just pointing out that the open range is a bit misleading, not that the parser didn't find a bug on my side. I fixed the range issue before filing this issue. As for the other bugs (_ as name), I haven't fixed those yet due to a lack of names to use.

The real crime is that ARM Development Studio (= the company that owns the svd format), is happy with the bad bit width, so if I hadn't used the other html tool I wouldn't have been any wiser.

from svd.

burrbull avatar burrbull commented on July 19, 2024

You could use svdtools patch after DEF to SVD convert to automatize bug patching.

from svd.

burrbull avatar burrbull commented on July 19, 2024

Fixed by #255

from svd.

DualTachyon avatar DualTachyon commented on July 19, 2024

Thanks!

from svd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.