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

no field gpio25 #3

Closed
blippy opened this issue Jun 25, 2021 · 2 comments
Closed

no field gpio25 #3

blippy opened this issue Jun 25, 2021 · 2 comments

Comments

@blippy
Copy link

blippy commented Jun 25, 2021

Issuing
cargo build

results in the output:

  Compiling pico-blink-rs v0.2.0 (/home/pi/pico-blink-rs)
error[E0609]: no field `gpio25` on type `PADS_BANK0`
   --> src/main.rs:126:18
    |
126 |     p.PADS_BANK0.gpio25.write(|w| {
    |                  ^^^^^^ unknown field

error[E0609]: no field `gpio25_ctrl` on type `IO_BANK0`
   --> src/main.rs:133:16
    |
133 |     p.IO_BANK0.gpio25_ctrl.write(|w| {
    |                ^^^^^^^^^^^ unknown field

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0609`.
error: could not compile `pico-blink-rs`

To learn more, run the command again with --verbose.

@gambrose
Copy link

gambrose commented Jul 3, 2021

I just encountered this too.
It appears that it is fixed by #2 👍

@9names
Copy link
Member

9names commented Jul 31, 2021

#2 is merged now, thank you for your patience!

Just a note that this project is an example of how to use the PAC directly to interact with hardware.
We have HAL-based blinky examples that are a better place to start if you're looking to work with the rest of the rust embedded ecosystem.
https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/examples/blinky.rs
https://github.com/rp-rs/rp-hal/blob/main/boards/pico/examples/pico_blinky.rs

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

No branches or pull requests

4 participants