diff --git a/examples/nrf-sdc/Cargo.lock b/examples/nrf-sdc/Cargo.lock index 4ec70716..b49141f5 100644 --- a/examples/nrf-sdc/Cargo.lock +++ b/examples/nrf-sdc/Cargo.lock @@ -2,6 +2,16 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "Inflector" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" +dependencies = [ + "lazy_static", + "regex", +] + [[package]] name = "aho-corasick" version = "1.1.3" @@ -760,6 +770,7 @@ dependencies = [ "embedded-storage-async", "nrf-mpsl-sys", "nrf52832-pac", + "nrf52833-pac", "nrf52840-pac", ] @@ -1264,6 +1275,19 @@ dependencies = [ "embedded-io-async", "futures", "heapless", + "trouble-host-macros", +] + +[[package]] +name = "trouble-host-macros" +version = "0.1.0" +dependencies = [ + "Inflector", + "darling", + "proc-macro2", + "quote", + "syn 2.0.76", + "uuid", ] [[package]] @@ -1286,7 +1310,6 @@ dependencies = [ "panic-probe", "static_cell", "trouble-example-apps", - "trouble-host", ] [[package]] @@ -1301,6 +1324,12 @@ version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +[[package]] +name = "uuid" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" + [[package]] name = "vcell" version = "0.1.3" diff --git a/examples/nrf-sdc/Cargo.toml b/examples/nrf-sdc/Cargo.toml index 34959931..3b886741 100644 --- a/examples/nrf-sdc/Cargo.toml +++ b/examples/nrf-sdc/Cargo.toml @@ -57,6 +57,11 @@ nrf52832 = [ "embassy-nrf/nrf52832", "nrf-sdc/nrf52832", ] +nrf52833 = [ + "embassy-executor/task-arena-size-32768", + "embassy-nrf/nrf52833", + "nrf-sdc/nrf52833", +] nrf52840 = [ "embassy-executor/task-arena-size-65536", "embassy-nrf/nrf52840", diff --git a/examples/nrf-sdc/build.rs b/examples/nrf-sdc/build.rs index c1afc708..04d50d57 100644 --- a/examples/nrf-sdc/build.rs +++ b/examples/nrf-sdc/build.rs @@ -16,6 +16,8 @@ use std::path::PathBuf; fn linker_data() -> &'static [u8] { #[cfg(feature = "nrf52832")] return include_bytes!("memory-nrf52832.x"); + #[cfg(feature = "nrf52833")] + return include_bytes!("memory-nrf52833.x"); #[cfg(feature = "nrf52840")] return include_bytes!("memory-nrf52840.x"); } diff --git a/examples/nrf-sdc/memory-nrf52833.x b/examples/nrf-sdc/memory-nrf52833.x new file mode 100644 index 00000000..7e852961 --- /dev/null +++ b/examples/nrf-sdc/memory-nrf52833.x @@ -0,0 +1,6 @@ +MEMORY +{ + /* NOTE 1 K = 1 KiBi = 1024 bytes */ + FLASH : ORIGIN = 0x00000000, LENGTH = 512K + RAM : ORIGIN = 0x20000000, LENGTH = 128K +}