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

Fix cargo build and cargo build --examples #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tweksteen
Copy link

Update stm32f4xx-hal to 0.14

stm32f4xx-hal 0.13.2 is pinned on embedded-hal =1.0.0-alpha.7, while bme280 is pinned on =1.0.0-alpha.8. Update the dependency so that cargo build succeeds.

Fix build for examples/

Update Cargo.toml so that examples/rtic.rs can be build. The default build target is not updated, which means it is still possible to run cargo build successfully on x86_64 by default (without installing the thumbv7em toolchain target). I was not able to test this change as I do not have access to this device. Added some documentation to the example on how to run it.

Disable autoexamples in Cargo.toml as examples/basic.rs contains invalid syntax.

It is now possible to build the examples using:
$ cargo build --target thumbv7em-none-eabihf --examples

stm32f4xx-hal 0.13.2 is pinned on embedded-hal =1.0.0-alpha.7, while
bme280 is pinned on =1.0.0-alpha.8. Update the dependency so that `cargo
build` succeeds.
Update Cargo.toml so that examples/rtic.rs can be build. The default
build target is not updated, which means it is still possible to run `cargo
build` successfully on x86_64 by default (without installing the
thumbv7em toolchain target). I was not able to test this change as I do
not have access to this device. Added some documentation to the example
on how to run it.

Disable autoexamples in Cargo.toml as examples/basic.rs contains invalid
syntax.

It is now possible to build the examples using:
$ cargo build --target thumbv7em-none-eabihf --examples
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.

1 participant