Giter Site home page Giter Site logo

Comments (6)

Yatekii avatar Yatekii commented on June 24, 2024 1

Looking great! I am not sure we should use terms such as Cortex-M0+ rather than thumbv6 because other stuff uses it that way, but other than that its nice!

from probe-rs.

seanmlyons22 avatar seanmlyons22 commented on June 24, 2024

@Yatekii, how do you think this should be done? One idea I have is that something can be added to the target.yaml file that describes the scan chain. This could also be a solution for #1683 where the yaml file could contain the index of the wanted DAP.

Both could be optional, where if not provided we fall back to the default behavior as it is today.

from probe-rs.

Yatekii avatar Yatekii commented on June 24, 2024

Yeah, I think the target specifications are the right place :) Is this a fixed value? We already have special values for denoting the DAP on some multidrop chips (rp2040) or unconventionaly enumerated DAPs :)
So this should fit right in :)

from probe-rs.

seanmlyons22 avatar seanmlyons22 commented on June 24, 2024

Is this a fixed value?

Yep! Its fixed in the HW, but not by the JTAG spec. Different vendors can implement different ir lengths.

I found a scanchain description as part of the System Description File which looks like it would do exactly the trick.

Converting this to yaml would look like:

scanchain:
    - !Dap
        name: core0
        type: Cortex-M0+
        ir_len: 4
        protocol: 
        - jtag
        - swd
    - !Device
        name: ICEPICK
        type: Other
        ir_len: 6

Following that format means I think we could try to automatically parse and populate this from target-gen if it exists in the pack. Then, if the target file has a scanchain specified, we could use that to specify the ir_lengths before connect.

from probe-rs.

seanmlyons22 avatar seanmlyons22 commented on June 24, 2024

I have the scanchain added to the target now.

Do you have any recommendations on how to connect that to configure_jtag?

Is it through session? I basically need something that knows about the interface and target.

from probe-rs.

Yatekii avatar Yatekii commented on June 24, 2024

I would give it the interface and target as separate params directly :)

from probe-rs.

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.