aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-06-06 00:06:32 +0200
committerDario Nieuwenhuis <[email protected]>2023-06-06 00:06:32 +0200
commit4f03dff577f08bb9af1ea3fc118857973baa686e (patch)
tree8bb5cba85d846bd1a81740f2e96287906138a3e8 /embassy-rp/src
parent162d48530436be9cfa6a0d4aba88d97f52a5ad4a (diff)
rp: add run-from-ram feature.
Diffstat (limited to 'embassy-rp/src')
-rw-r--r--embassy-rp/src/flash.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/embassy-rp/src/flash.rs b/embassy-rp/src/flash.rs
index 0372afb1e..5d928abad 100644
--- a/embassy-rp/src/flash.rs
+++ b/embassy-rp/src/flash.rs
@@ -10,7 +10,10 @@ use crate::pac;
10use crate::peripherals::FLASH; 10use crate::peripherals::FLASH;
11 11
12pub const FLASH_BASE: *const u32 = 0x10000000 as _; 12pub const FLASH_BASE: *const u32 = 0x10000000 as _;
13pub const USE_BOOT2: bool = true; 13
14// If running from RAM, we might have no boot2. Use bootrom `flash_enter_cmd_xip` instead.
15// TODO: when run-from-ram is set, completely skip the "pause cores and jumpp to RAM" dance.
16pub const USE_BOOT2: bool = !cfg!(feature = "run-from-ram");
14 17
15// **NOTE**: 18// **NOTE**:
16// 19//