rtic-scope / cargo-rtic-scope

Non-intrusive ITM tracing/replay toolset for RTIC programs with nanosecond timestamp accuracy.
16 stars 4 forks source link

recovery: build PAC without default features #141

Closed ryan-summers closed 2 years ago

ryan-summers commented 2 years ago

When trying to use rtic-scope, the PAC lookup crate can fail with confusing errors about CC failing the link stage.

Upon analysis, I found that this is often caused by the PAC enabling default features like device or rt, which breaks linking.

It would be best to pass default-features = false in the PAC TOML file to ensure that no features are enabled by default, as there's no other way for the user to disable them.

tmplt commented 2 years ago

That is logical. Do you have a repo upon which to test changes?

ryan-summers commented 2 years ago

No, the only one I've tried with so far is stabilizer. However, specifying default-features = false resolved the issue for my testing.