rogerlz / rampon_anchor

MIT License
12 stars 4 forks source link

could not compile - could not find `blocking` in `hal` and could not find `v2` in `digital` #6

Closed pajosek closed 6 months ago

pajosek commented 10 months ago

Hello,

I have tried to build firmware but I am stuck at

error[E0433]: failed to resolve: could not find `blocking` in `hal`
 --> src/adxl345.rs:4:10
  |
4 | use hal::blocking::spi::{Transfer, Write};
  |          ^^^^^^^^ could not find `blocking` in `hal`

error[E0432]: unresolved import `hal::digital::v2`
 --> src/adxl345.rs:5:19
  |
5 | use hal::digital::v2::OutputPin;
  |                   ^^ could not find `v2` in `digital`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `rampon_anchor` (bin "rampon_anchor") due to 2 previous errors
rustc --version
rustc 1.75.0 (82e1608df 2023-12-21)

I am trying to complile it using WSFL Ubuntu and Raspbian x64 on RPI4B. I installed environment using mentiond commands, set up target, but "cargo build" and "make all" both end up with errors.

What am I doing wrong?

ginkel commented 8 months ago

I am hitting the same issue. Did you find a solution?

ginkel commented 8 months ago

Commit https://github.com/rogerlz/rampon_anchor/commit/797e773467851d735664e4674c6b1d8efeed0f54 solves the issue for me.

rogerlz commented 6 months ago

I have pinned the version. Thanks!