diff --git a/README.md b/README.md index 4384fcf..6f99768 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ If you aren't using a debugger (or want to use cargo-embed/probe-rs-debugger), c
  • Installation of development dependencies
  • Running
  • Alternative runners
  • +
  • Notes on using rp2040_boot2
  • Roadmap
  • Contributing
  • Code of conduct
  • @@ -231,6 +232,24 @@ Some of the options for your `runner` are listed below: + + +
    +

    Notes on using rp2040_boot2

    + + The second-stage boot loader must be written to the .boot2 section. That + is usually handled by the board support package (e.g.`rp-pico`). If you don't use + one, you should initialize the boot loader manually. This can be done by adding the + following to the beginning of main.rs: + ```rust + use rp2040_boot2; + #[link_section = ".boot2"] + #[used] + pub static BOOT_LOADER: [u8; 256] = rp2040_boot2::BOOT_LOADER_W25Q080; + ``` + +
    + ## Roadmap