34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
|
MEMORY
|
||
|
{
|
||
|
/*
|
||
|
https://github.com/espressif/esptool/blob/ed64d20b051d05f3f522bacc6a786098b562d4b8/esptool/targets/esp32c3.py#L78-L90
|
||
|
MEMORY_MAP = [[0x00000000, 0x00010000, "PADDING"],
|
||
|
[0x3C000000, 0x3C800000, "DROM"],
|
||
|
[0x3FC80000, 0x3FCE0000, "DRAM"],
|
||
|
[0x3FC88000, 0x3FD00000, "BYTE_ACCESSIBLE"],
|
||
|
[0x3FF00000, 0x3FF20000, "DROM_MASK"],
|
||
|
[0x40000000, 0x40060000, "IROM_MASK"],
|
||
|
[0x42000000, 0x42800000, "IROM"],
|
||
|
[0x4037C000, 0x403E0000, "IRAM"],
|
||
|
[0x50000000, 0x50002000, "RTC_IRAM"],
|
||
|
[0x50000000, 0x50002000, "RTC_DRAM"],
|
||
|
[0x600FE000, 0x60100000, "MEM_INTERNAL2"]]
|
||
|
*/
|
||
|
/* 400K of on soc RAM, 16K reserved for cache */
|
||
|
ICACHE : ORIGIN = 0x4037C000, LENGTH = 0x4000
|
||
|
/* Instruction RAM */
|
||
|
IRAM : ORIGIN = 0x4037C000 + 0x4000, LENGTH = 400K - 0x4000
|
||
|
/* Data RAM */
|
||
|
DRAM : ORIGIN = 0x3FC80000, LENGTH = 0x50000
|
||
|
|
||
|
|
||
|
/* External flash */
|
||
|
/* Instruction ROM */
|
||
|
IROM : ORIGIN = 0x42000000 + 0x20, LENGTH = 0x400000 - 0x20
|
||
|
/* Data ROM */
|
||
|
DROM : ORIGIN = 0x3C000000, LENGTH = 0x400000
|
||
|
|
||
|
/* RTC fast memory (executable). Persists over deep sleep. */
|
||
|
RTC_FAST : ORIGIN = 0x50000000, LENGTH = 0x2000 /*- ESP_BOOTLOADER_RESERVE_RTC*/
|
||
|
}
|