GithubHelp home page GithubHelp logo

BSPs should handle rp2040_boot2 about rp-hal HOT 3 CLOSED

rp-rs avatar rp-rs commented on September 2, 2024
BSPs should handle rp2040_boot2

from rp-hal.

Comments (3)

9names avatar 9names commented on September 2, 2024

An alternative approach was suggested by adamgreig in matrix chat:
A default feature, that when enabled makes the BSPs link rp2040_boot2::BOOT_LOADER for you.
Pros:

  • No extra boilerplate in every project, completely invisible to the user.

Cons:

  • Being invisible means that if it stops working for whatever reason, it's more painful to fix
  • Default features do not spark joy

from rp-hal.

jannic avatar jannic commented on September 2, 2024

One possible disadvantage (of both approaches):
The build tools necessary to build the bootloader (arm-none-eabi-gcc) may not be easily available everywhere. (Windows?)
In that case, one can easily include a precompiled boot2, instead:

#[link_section = ".boot2"]
#[used]
pub static BOOT2: [u8; 256] = *include_bytes!("boot2.bin");

But if rp2040-boot2-rs is a dependency of the BSP, one also needs to fork the BSP and remove that dependency.

(Please note that there is already a suggestion to change the boot2 crate so the assembler does not run automatically at build time: rp-rs/rp2040-boot2#2. With that change, my point would be void.)

from rp-hal.

thejpster avatar thejpster commented on September 2, 2024

Nearly there!

from rp-hal.

Related Issues (20)

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.