Skip to content

Commit 73e882f

Browse files
Raffael Rostagnojhedberg
authored andcommitted
soc: esp32h2: Fix LP SRAM size
Fix LP SRAM size on memory map. Correct value is obtained from device tree. Signed-off-by: Raffael Rostagno <[email protected]>
1 parent bbc5a83 commit 73e882f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soc/espressif/esp32h2/default.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ MEMORY
6868
drom0_0_seg(R): org = DROM_SEG_ORG, len = DROM_SEG_LEN
6969

7070
lp_ram_seg(RW): org = LPSRAM_IRAM_START,
71-
len = 0x4000 - CONFIG_RESERVE_RTC_MEM
71+
len = LPSRAM_SIZE - CONFIG_RESERVE_RTC_MEM
7272

7373
/* We reduced the size of lp_ram_seg by CONFIG_RESERVE_RTC_MEM value.
7474
It reserves the amount of LP memory that we use for this memory segment.
@@ -78,7 +78,7 @@ MEMORY
7878
The aim of this is to keep data that will not be moved around and have a fixed address.
7979
*/
8080
#if (CONFIG_RESERVE_RTC_MEM > 0)
81-
lp_reserved_seg(RW) : org = LPSRAM_IRAM_START + 0x4000 - CONFIG_RESERVE_RTC_MEM,
81+
lp_reserved_seg(RW) : org = LPSRAM_IRAM_START + LPSRAM_SIZE - CONFIG_RESERVE_RTC_MEM,
8282
len = CONFIG_RESERVE_RTC_MEM
8383
#endif
8484

0 commit comments

Comments
 (0)