Git Product home page Git Product logo

Comments (8)

burrbull avatar burrbull commented on June 2, 2024

Did I understand right?
You've used svdtools convert to convert SVD to YAML, but backward conversion doesn't work?

from svdtools.

hanetzer avatar hanetzer commented on June 2, 2024

Backwards conversion of the rp2040.yaml to rp2040.svd works, but my hand written
hi3521a.yaml will not convert.

from svdtools.

burrbull avatar burrbull commented on June 2, 2024

address_block is an array of AddressBlocks:
https://docs.rs/svd-rs/0.13.1/svd_rs/peripheral/struct.PeripheralInfo.html#structfield.address_block

from svdtools.

hanetzer avatar hanetzer commented on June 2, 2024

ah derp. got tunnel vision because of the line/column and didn't notice the actual
error.

from svdtools.

hanetzer avatar hanetzer commented on June 2, 2024

Actually, I found a conversion issue. When converting a yaml to svd, the resultant svd file does
not contain the schema information some svd tools (in my case, SVD-Loader-Ghidra) require for
operation.
Converted SVD:

<device schemaVersion="" xmlns:xs="" xs:noNamespaceSchemaLocation="">

'real' SVD:

<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD.xsd">

from svdtools.

burrbull avatar burrbull commented on June 2, 2024

#102
rust-embedded/svd#197

from svdtools.

burrbull avatar burrbull commented on June 2, 2024

reinstall with cargo install svdtools --force

from svdtools.

hanetzer avatar hanetzer commented on June 2, 2024

Yep, that fixed that. Thanks for the info.

from svdtools.

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.