Skip to content

Commit

Permalink
Merge pull request #156 from embassy-rs/nrf52833
Browse files Browse the repository at this point in the history
Add nrf52833 target to nrf-sdc example
  • Loading branch information
lulf authored Nov 5, 2024
2 parents 3a9d3c1 + a900c50 commit 9840438
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
31 changes: 30 additions & 1 deletion examples/nrf-sdc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions examples/nrf-sdc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions examples/nrf-sdc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
6 changes: 6 additions & 0 deletions examples/nrf-sdc/memory-nrf52833.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MEMORY
{
/* NOTE 1 K = 1 KiBi = 1024 bytes */
FLASH : ORIGIN = 0x00000000, LENGTH = 512K
RAM : ORIGIN = 0x20000000, LENGTH = 128K
}

0 comments on commit 9840438

Please sign in to comment.