diff options
Diffstat (limited to 'embassy-rp/src')
| -rw-r--r-- | embassy-rp/src/flash.rs | 5 |
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; | |||
| 10 | use crate::peripherals::FLASH; | 10 | use crate::peripherals::FLASH; |
| 11 | 11 | ||
| 12 | pub const FLASH_BASE: *const u32 = 0x10000000 as _; | 12 | pub const FLASH_BASE: *const u32 = 0x10000000 as _; |
| 13 | pub 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. | ||
| 16 | pub const USE_BOOT2: bool = !cfg!(feature = "run-from-ram"); | ||
| 14 | 17 | ||
| 15 | // **NOTE**: | 18 | // **NOTE**: |
| 16 | // | 19 | // |
