Skip to content

Commit

Permalink
Merge pull request #20 from rp-rs/set_flash_clkdiv_to_2
Browse files Browse the repository at this point in the history
Set PICO_FLASH_SPI_CLKDIV=2 when building boot2
  • Loading branch information
jannic authored Jan 13, 2023
2 parents 4b7adf8 + 51a52a2 commit 4c477f9
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## Unreleased Changes

## v0.3.0

* Set PICO_FLASH_SPI_CLKDIV=2 when building boot2

This doubles the flash access speed to the value used by the C SDK by
default. So it should usually be safe. However, if you are overclocking
the RP2040, you might need to lower the flash speed accordingly.

## v0.2.1

* Update boot2 code from SDK version 1.4.0
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rp2040-boot2"
version = "0.2.1"
version = "0.3.0"
authors = ["The rp-rs Team"]
edition = "2018"
license = "BSD-3-Clause"
Expand Down
Binary file modified bin/boot2_at25sf128a.padded.bin
Binary file not shown.
Binary file modified bin/boot2_gd25q64cs.padded.bin
Binary file not shown.
Binary file modified bin/boot2_generic_03h.padded.bin
Binary file not shown.
Binary file modified bin/boot2_is25lp080.padded.bin
Binary file not shown.
Binary file modified bin/boot2_w25q080.padded.bin
Binary file not shown.
Binary file modified bin/boot2_w25x10cl.padded.bin
Binary file not shown.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ fn make_elf<P: AsRef<Path>, Q: AsRef<Path>>(input_path: P, out_dir: Q) -> PathBu
.arg("-fPIC")
.arg("--specs=nosys.specs")
.arg("-Isrc/include")
.arg("-DPICO_FLASH_SPI_CLKDIV=2")
.arg(input_path)
.arg("-o")
.arg(&result_path)
Expand Down

0 comments on commit 4c477f9

Please sign in to comment.