Skip to content

Commit 42a8733

Browse files
committed
shift memory range up to 0x8ff40020
1 parent 415a8f8 commit 42a8733

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ld/esp32p4.x

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
MEMORY {
3-
/* Start 64k into the uncached RAM region */
4-
IRAM : ORIGIN = 0x8FF30000, LENGTH = 0x10000
3+
/* Start 256k into the uncached RAM region */
4+
IRAM : ORIGIN = 0x8FF50000, LENGTH = 0x10000
55
}
66

77
PROVIDE ( esp_rom_spiflash_attach = spi_flash_attach );

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const _: [u8; 43776] = [0; core::mem::size_of::<Decompressor>()];
3333
// ESP32-C6 | 0x4081_0000 | 0x4081_0000 | 0x4084_0000 | 0x4085_0000 | 0x4086_0000
3434
// ESP32-C61 | 0x4081_0000 | 0x4081_0000 | 0x4082_0000 | 0x4083_0000 | 0x4083_8000 !! ROM data use starts at 0x4083EA70, so let's use H2's memory layout
3535
// ESP32-H2 | 0x4081_0000 | 0x4081_0000 | 0x4082_0000 | 0x4083_0000 | 0x4083_8000 !! has smaller RAM, only reserve 32K for data
36-
// ESP32-P4 | 0x8FF3_0000 | 0x8FF3_0000 | 0x8FF6_0000 | 0x8FF7_0000 | 0x8FFC_0000 !! Uncached region
36+
// ESP32-P4 | 0x8FF4_0020 | 0x8FF4_0020 | 0x8FF6_0000 | 0x8FF7_0000 | 0x8FFC_0000 !! Uncached region
3737

3838
// "State" base address
3939
#[cfg(feature = "esp32")]

0 commit comments

Comments
 (0)