wg icon indicating copy to clipboard operation
wg copied to clipboard

Core Cortex-R crates

Open japaric opened this issue 7 years ago • 6 comments

This issue is for tracking progress on developing cortex-r-* crates that will be maintained by the WG.

The current plan is

  • Make the cortex-r-rt crate more generic and move it into the WG org. Issue paoloteti/cortex-r-rt#1 is being used to discuss how to make that crate more generic.
  • Move the dcc and panic-dcc crates pretty much as they are into the WG org. PR #287 needs to be approved by @rust-embedded/cortex-r before we make the transfer.
  • Create an empty cortex-r repository in the org and progressively expand its API surface. When we are happy with the API we'll publish it on crates.io.

The motivation for starting from scratch is two-fold: we can enforce that the crate always compiles on stable (with its default feature set) and we can have @rust-embedded/cortex-r review each piece of API that gets added to it.

cc @rust-embedded/cortex-r @kenkeiter

japaric avatar Jan 06 '19 09:01 japaric

Is this supposed to support both v7r and v8r profiles? I.e. are r52 and later v8 cores the only one targeted?

eddyp avatar Jan 06 '19 14:01 eddyp

@eddyp r52 is available under NDA or for approved partners only. So I prefer to wait a bit. @japaric I’ll back tomorrow at office and I’ll review your proposal. Thanks

paoloteti avatar Jan 06 '19 21:01 paoloteti

@eddyp v8r is not suppoted in rustc atm. The crates can't support something that rustc doesn't support. I don't think it would be too much work to update the crates to support v8r, when available, though.

japaric avatar Jan 12 '19 11:01 japaric

@japaric I understand. I don't have experience with older r-s, but I have access at work to an r52 implementation, and was thinking about experimenting with rust, that's why I was interested in r52.

eddyp avatar Jan 15 '19 19:01 eddyp

Triage:

Move the dcc and panic-dcc crates pretty much as they are into the WG org.

The arm-dcc repository has been moved into the org: https://github.com/rust-embedded/arm-dcc


@eddyp if you are up to it you can make a PR to add a v8-r target to rustc. You can use PR rust-lang/rust#56000 as a reference.

japaric avatar Jan 22 '19 12:01 japaric

I just released silicon-cr4 that is a collection of workarounds for few silicon errata on Cortex-R4/R4F MCUs. I use it on my TMS570 BSP I started to port to beta/stable. So if you all can review and if everything is ok may be We can decide to move the repo under the rust-embedde/cortex-r umbrella.

paoloteti avatar Feb 13 '19 18:02 paoloteti