-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to update to more recent nightly compiler #4
Conversation
28e0cd6
to
e1bd18d
Compare
I was seeing rust-embedded/cortex-m-rt#92 here too, so needed to upgrade gcc both on my local system and in the CI config. rtfm's `app!` macro doesn't know how to emit an appropriate `entry!` call, so the rtfm based examples now have a little bit of glue for that.
@wez did you get the linker issues sorted out? I have also been working on moving to a newer nighlty (although I didn't go quite as far as updating svd2rust) and I have a working crate that compiles. IIRC the issues I was having mainly stemmed from using I'll try things out with this version instead of my hack. |
Bear in mind the linker syntax has changed in the latest nightly - see the
changes to the cargo config in my pull request.
…On Tue, 28 Aug 2018, 3:49 pm zklapow, ***@***.***> wrote:
@wez <https://github.com/wez> did you get the linker issues sorted out? I
have also been working on moving to a newer nighlty (although I didn't go
quite as far as updating svd2rust) and I have a working crate that
compiles. IIRC the issues I was having mainly stemmed from using
cortex-m-rtfm which is still way out of date, but I was able to get
things to compile by using a custom version with some updated deps
(although my interrupts dont work now so ¯_(ツ)_/¯).
I'll try things out with this version instead of my hack.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABOyBVbmdvoS2if8wh8kfqEgYHHoCiyoks5uVVhjgaJpZM4WItAY>
.
|
Yep, this took care of getting us back on nightly and even got rtfm working there too. If you have linker issues locally it indicates that you'll need to upgrade your gcc arm tool chain; there is information on that in the readme. |
I was seeing rust-embedded/cortex-m-rt#92 here too, so needed to upgrade gcc both on my local system and in the CI config. rtfm's `app!` macro doesn't know how to emit an appropriate `entry!` call, so the rtfm based examples now have a little bit of glue for that.
* Cleanup clippy lints * Changelog * rustfmt * Don't allow missing_safety_docs, revert From/Into GClock-Hertz impls * Docs: NVM, PUKCC (#4) Co-authored-by: Henrik Tjäder <henrik.tjader@volvocars.com> * rustfmt * Allow double underscores in entire pukcc module * Fix rust_2018_idioms lints * Fix clippy lints in T1 examples Co-authored-by: Henrik Tjäder <henrik@tjaders.com> Co-authored-by: Henrik Tjäder <henrik.tjader@volvocars.com> Co-authored-by: Tyler Holmes <tyler@holmesengineering.com>
* Cleanup clippy lints * Changelog * rustfmt * Don't allow missing_safety_docs, revert From/Into GClock-Hertz impls * Docs: NVM, PUKCC (atsamd-rs#4) Co-authored-by: Henrik Tjäder <henrik.tjader@volvocars.com> * rustfmt * Allow double underscores in entire pukcc module * Fix rust_2018_idioms lints * Fix clippy lints in T1 examples Co-authored-by: Henrik Tjäder <henrik@tjaders.com> Co-authored-by: Henrik Tjäder <henrik.tjader@volvocars.com> Co-authored-by: Tyler Holmes <tyler@holmesengineering.com>
It's been a little while since I had time to hack on this, and I wanted to address the issue behind #3 by making things build on the current versions of the tools.
I wasn't entirely successful but I think we're close. I'm hoping that someone else has the flash of inspiration needed to carry this across the line.
This commit:
Things almost build; the libraries compile but the examples fail to link:
AFAICT,
Reset
is the symbol that it wants and this should be provided bycortex-m-rt
when built inrt
mode.I'm probably missing something subtle and simple; help wanted! :-)