Skip to content

Commit

Permalink
feat(xip_psram): support xip psram feature on esp32p4
Browse files Browse the repository at this point in the history
Expanded IROM / DROM range to include psram space as well
  • Loading branch information
Icarus113 authored and radimkarnis committed Nov 7, 2023
1 parent 7074bed commit 1b350ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions esptool/targets/esp32p4.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class ESP32P4ROM(ESP32ROM):
IMAGE_CHIP_ID = 18

IROM_MAP_START = 0x40000000
IROM_MAP_END = 0x44000000
IROM_MAP_END = 0x4C000000
DROM_MAP_START = 0x40000000
DROM_MAP_END = 0x44000000
DROM_MAP_END = 0x4C000000

BOOTLOADER_FLASH_OFFSET = 0x2000 # First 2 sectors are reserved for FE purposes

Expand Down Expand Up @@ -71,12 +71,12 @@ class ESP32P4ROM(ESP32ROM):

MEMORY_MAP = [
[0x00000000, 0x00010000, "PADDING"],
[0x40000000, 0x44000000, "DROM"],
[0x40000000, 0x4C000000, "DROM"],
[0x4FF00000, 0x4FFA0000, "DRAM"],
[0x4FF00000, 0x4FFA0000, "BYTE_ACCESSIBLE"],
[0x4FC00000, 0x4FC20000, "DROM_MASK"],
[0x4FC00000, 0x4FC20000, "IROM_MASK"],
[0x40000000, 0x44000000, "IROM"],
[0x40000000, 0x4C000000, "IROM"],
[0x4FF00000, 0x4FFA0000, "IRAM"],
[0x50108000, 0x50110000, "RTC_IRAM"],
[0x50108000, 0x50110000, "RTC_DRAM"],
Expand Down

0 comments on commit 1b350ce

Please sign in to comment.