Skip to content

Commit

Permalink
Add RP2350 package to i2c-passthru example (#19)
Browse files Browse the repository at this point in the history
* Add RP2350 package to i2c-passthru example

* Update embassy

To get updated rom_data functions

* Fix reset function

* Add rp2350 package to ci

* Get unique ID from ROM

* Use get_chipid() from otp module

* Add thumbv8m to ci.sh
  • Loading branch information
sindrehan authored Jan 22, 2025
1 parent e98ea7c commit d2960df
Show file tree
Hide file tree
Showing 9 changed files with 2,306 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ set -euxo pipefail
# Ensure the book builds
mdbook build book

# Template builds for RP2040 and nRF52840
# Template builds for RP2040, RP2350 and nRF52840
rustup target add \
thumbv6m-none-eabi \
thumbv7em-none-eabihf
thumbv7em-none-eabihf \
thumbv8m.main-none-eabihf

# API ICD
cargo check \
Expand Down Expand Up @@ -97,6 +98,11 @@ cargo build \
--target thumbv6m-none-eabi \
--profile ci

cargo build \
--manifest-path examples/i2c-passthru/rp2350/Cargo.toml \
--target thumbv8m.main-none-eabihf \
--profile ci

cargo build \
--manifest-path examples/i2c-passthru/demo/Cargo.toml \
--profile ci
17 changes: 17 additions & 0 deletions examples/i2c-passthru/rp2350/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# If you have an SWD debugfer, you can uncomment this line:
# runner = "probe-rs run --chip RP235x --speed 12000 --protocol swd"

# If you don't, you can put the pico into the USB loader, and use this
# line instead:
runner = "picotool load -x -t elf"

[build]
target = "thumbv8m.main-none-eabihf"

[env]
DEFMT_LOG = "debug"

[unstable]
build-std = ["core"]
build-std-features = ["panic_immediate_abort"]
Loading

0 comments on commit d2960df

Please sign in to comment.