| 1 |
/* |
| 2 |
* IROM/DRAM definition in QEMU: |
| 3 |
* [ESP32_MEMREGION_IROM] = { 0x40000000, 0x70000 }, |
| 4 |
* [ESP32_MEMREGION_DRAM] = { 0x3ffae000, 0x52000 }, |
| 5 |
* |
| 6 |
* In theory we could use whole DRAM section, but I had some faults when using |
| 7 |
* memory in range 0x3ffae000 - 0x3ffb0000 |
| 8 |
* |
| 9 |
* But used memory range for data such as esp-idf for ESP32 to satisfy user's |
| 10 |
* expectation on chip emulation |
| 11 |
* |
| 12 |
* Pass '--defsym=entire_dram_seg=1' to linker script to use whole DRAM |
| 13 |
* |
| 14 |
*/ |
| 15 |
|
| 16 |
MEMORY |
| 17 |
{ |
| 18 |
iram_seg (X) : org = 0x40078000, len = 0x28000 |
| 19 |
/* 64k at the end of DRAM, after ROM bootloader stack |
| 20 |
* or entire DRAM (for QEMU only) |
| 21 |
*/ |
| 22 |
dram_seg (RW) : org = DEFINED(entire_dram_seg) ? 0x3FFB0000 : 0x3FFF0000, |
| 23 |
len = DEFINED(entire_dram_seg) ? 0x50000 : 0x10000 |
| 24 |
} |
| 25 |
|
| 26 |
|