rp-rs / rp-hal-boards

Board Support Packages for RP2040 based PCBs
199 stars 82 forks source link

Raspberry Pi Pico SD Card Example Error #68

Closed NegrilaRares closed 4 months ago

NegrilaRares commented 4 months ago

Trying to use this in a project but i keep getting this error once i get to the SdCard::new part of the code.

https://github.com/rp-rs/rp-hal-boards/blob/main/boards/rp-pico/examples/pico_spi_sd_card.rs

image

image

error.txt

Tried running the example without any changes and i still get the same error.

ithinuel commented 4 months ago

I'm a bit confused by the error message. Are you using this hal or embassy?

NegrilaRares commented 4 months ago

for my project im trying to make it work on embassy, but the error appears in my project and when i try to build the example

NegrilaRares commented 4 months ago

i can give you the error i get when i run the example but thats just a longer list that starts from the SdCard::new line

example_error.txt

But perhaps it may be a problem with my setup as I am quite new to embedded rust.

ithinuel commented 4 months ago

I just cloned rp-hal-boards and ran cargo build --example pico_spi_sd_card from there and everything builds fine.

I think you may have an issue with your setup (Cargo.toml, dependencies etc). If you upload that to a repo of yours we may be able to help, but I don’t think there’s an issue in this example.

NegrilaRares commented 4 months ago

At least now i know its from me ill check my setup and reopen the issue if i don't manage to find the problem on my own.

Thank you for you help and time.

ithinuel commented 4 months ago

Feel free to come over matrix at https://matrix.to/#/#rp-rs:matrix.org if you need assistance :)