Skip to content
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

Update dependencies in Cargo.toml + build instructions #2

Merged
merged 1 commit into from
May 27, 2019

Conversation

tarcieri
Copy link
Contributor

@tarcieri tarcieri commented May 25, 2019

I was able to build and run the blink example on a SAML11 Xplained board with these changes 🎉

ezgif-1-fafa50de908d

(the LED is blinking my attempt at "R-U-S-T" in morse code with some local changes I didn't check in)

Looks like you were able to upstream the thumbv8m.base-none-eabi target definition:

rust-lang/rust#55041

I was able to use that via rustup on a recent nightly, so no more need for (patched) xargo.

I went ahead and bumped all of the crates to the latest releases as I wasn't able to get anything to compile without doing so.

I was able to get the blinky example to build and run on a
SAML11 Xplained board with these changes.

Looks like you were able to upstream the `thumbv8m.base-none-eabi`
target definition:

rust-lang/rust#55041

I was able to use that via rustup on a recent nightly, so no more need
for (patched) xargo.

I went ahead and bumped all of the crates to the latest releases as I
wasn't able to get anything to compile without doing so.

All that said, I was able to blink an LED on a SAML11 Xplained.
@tarcieri
Copy link
Contributor Author

Also a quick note that I've been doing work on https://github.com/atsamd-rs/atsamd lately (targeting SAMD51) and some of it seems like it might be applicable on these.

I might also be interested in contributing/collaborating on an embedded-hal impl for these.

@evq
Copy link
Owner

evq commented May 27, 2019

Awesome, glad to hear it works with nightly and released versions of all the deps!

I have the very early beginnings of a embedded-hal implementation crate - just parts of gpio and spi. I used the hal implementation from atsamd as a starting point. It's pretty rough - mostly the same code as atsamd with bits commented out and a few L11 specific tweaks.

It also has a rand_core impl that uses the hardware rng and code to use the rom built-in sha256.

I'll push it up :)

@evq evq merged commit 27e4016 into evq:master May 27, 2019
@tarcieri tarcieri deleted the cargo-and-target-updates branch May 27, 2019 20:02
@evq
Copy link
Owner

evq commented May 28, 2019

@tarcieri Pushed to https://github.com/evq/atsaml11xxx-hal

It's in pretty rough shape - but I upgraded the deps / got the blink example compiling and the host sha256 tests working.

My SAML11 Xplained is being uncooperative so I haven't been able to see if the hal blink is still working.

@tarcieri
Copy link
Contributor Author

@evq nice, thank you!

@tarcieri
Copy link
Contributor Author

tarcieri commented Jun 4, 2019

@evq since you added rand_core support, I'm curious if you have thoughts on this issue: rust-embedded/wg#353

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants