mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 14:44:42 +00:00

* Move segment aliasing to linkall.x, this allows other projects to define there own alias whilst still being able to use esp-hal linker scripts * Move rwtext in front of rwdata * Re-arrange include * Fix s3 direct boot script
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
MEMORY
|
|
{
|
|
/*
|
|
https://github.com/espressif/esptool/blob/10828527038d143e049790d330ac4de76ce987d6/esptool/targets/esp32c2.py#L53-L62
|
|
MEMORY_MAP = [[0x00000000, 0x00010000, "PADDING"],
|
|
[0x3C000000, 0x3C400000, "DROM"],
|
|
[0x3FCA0000, 0x3FCE0000, "DRAM"],
|
|
[0x3FC88000, 0x3FD00000, "BYTE_ACCESSIBLE"],
|
|
[0x3FF00000, 0x3FF50000, "DROM_MASK"],
|
|
[0x40000000, 0x40090000, "IROM_MASK"],
|
|
[0x42000000, 0x42400000, "IROM"],
|
|
[0x4037C000, 0x403C0000, "IRAM"]]
|
|
*/
|
|
|
|
/* 272K of on soc RAM, 16K reserved for cache */
|
|
ICACHE : ORIGIN = 0x4037C000, LENGTH = 16K
|
|
/* Instruction RAM */
|
|
IRAM : ORIGIN = 0x4037C000 + 16K, LENGTH = 272K - 16K
|
|
/* Data RAM */
|
|
DRAM : ORIGIN = 0x3FCA0000, LENGTH = 0x30000
|
|
|
|
/* External flash */
|
|
/* Instruction ROM */
|
|
IROM : ORIGIN = 0x42000000 + 0x20, LENGTH = 0x200000 - 0x20
|
|
/* Data ROM */
|
|
DROM : ORIGIN = 0x3C000000, LENGTH = 0x200000
|
|
} |