Comments (6)
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.
@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.
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.
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.
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.
I would give it the interface
and target
as separate params directly :)
from probe-rs.
Related Issues (20)
- cargo flash: No flash memory contains the entire requested memory range HOT 1
- [Request] Make the RegisterDataType enum public HOT 1
- Linking with `cc` failed error while trying to install HOT 3
- cargo embed RTT invalid chars and incomplete output HOT 2
- Renamed `STM32G471RE` to `STM32G491RE`? HOT 1
- Add support for Texas Instruments CC13xx/CC26xx devices HOT 2
- STM32F103 - Cargo flash problem HOT 2
- cargo-flash documentation references `cargo flash --list-chips` HOT 1
- Support for Linux GPIO subsystem based bit-bang driver on the single board computers (like the Raspberry Pi and the BeagleBoards)
- Tracking Issue: `src/debug` adding functionality and refactoring as required - will require multiple PR's
- RTT/defmt broken since #1738 HOT 2
- broken release links HOT 2
- Supporting CMSIS-DAP DAP_PACKET_COUNT to enhance speed. HOT 6
- UF2 Support HOT 3
- Incorrect reset behaviour HOT 6
- Broken arguments HOT 1
- Parse JTAG scan chain from CMSIS-SDF file HOT 4
- Add support for STM32U595/5A5 HOT 4
- Unable to use probe-rs with an fe310g002 microcontroller HOT 4
- Call jtag_scan even when it is provided through chain settings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from probe-rs.