Skip to content

Commit 0f3cbdd

Browse files
playfulFencexobs
authored andcommitted
Fix addresses
1 parent 06b8ca6 commit 0f3cbdd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ld/esp32p4.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
MEMORY {
33
/* Start 64k into the RAM region */
4-
IRAM : ORIGIN = 0x4FF00000, LENGTH = 0x10000
4+
IRAM : ORIGIN = 0x4FF10000, LENGTH = 0x10000
55
}
66

77
PROVIDE ( esp_rom_spiflash_attach = spi_flash_attach );

src/main.rs

Lines changed: 2 additions & 2 deletions
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 | 0x4FF1_0000 | 0x4FF1_0000 | 0x4FF9_FFFF | 0x4FFA_FFFF | 0x4FFB_FFFF
36+
// ESP32-P4 | 0x4FF1_0000 | 0x4FF1_0000 | 0x4FFA_0000 | 0x4FFB_0000 | 0x4FFC_0000
3737

3838
// "State" base address
3939
#[cfg(feature = "esp32")]
@@ -55,7 +55,7 @@ const STATE_ADDR: usize = 0x4082_0000;
5555
#[cfg(feature = "esp32h2")]
5656
const STATE_ADDR: usize = 0x4082_0000;
5757
#[cfg(feature = "esp32p4")]
58-
const STATE_ADDR: usize = 0x4FF9_FFFF;
58+
const STATE_ADDR: usize = 0x4FFA_0000;
5959

6060
// End of target memory configuration
6161

0 commit comments

Comments
 (0)