Giter Club home page Giter Club logo

pico-blink-rs's Introduction

pico-blink-rs

Notice: this project has been deprecated. Please use https://github.com/rp-rs/rp2040-project-template

Running Rust code on the Raspberry Pi Pico

Booting

The RP2040 has external QSPI flash. There is an internal mask-ROM bootloader which can read the first 256 bytes of external flash and copy it to the top of SRAM (0x2004_1f00). This 256 byte block is the 'second stage bootloader'. Its job is to reconfigure the XIP_SSI interface to the right values for the attached QSPI flash chip (the mask ROM has some very conservative defaults which should work with all chips), and configure the XIP so that the QSPI flash appears at address 0x1000_0000 upwards.

The second stage bootloader then loads the user application once the XIP_SSI configuration is complete. It does this by reading a vector table at 0x1000_0100, which is 256 bytes into the QSPI flash contents (or immediately after the 256 byte second stage bootloader), and jumping to the reset vector.

We should also write a BSP for the pico, and a HAL for the RP2040. Basically, don't do any of what I did here. But hey, it blinks!

Licence

This work is licenced under CC0. Binaries may include material Copyright Raspberry Pi Trading - see other crates for details.

pico-blink-rs's People

Contributors

9names avatar eolder avatar sirris-bat avatar thejpster avatar wren6991 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pico-blink-rs's Issues

no field `gpio25`

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.