esp:esp8266:open-sdk:firmware-ld-linking
Differences
This shows you the differences between two versions of the page.
| esp:esp8266:open-sdk:firmware-ld-linking [2026/09/21 15:38] – created oscar | esp:esp8266:open-sdk:firmware-ld-linking [2026/12/01 05:27] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # LD Linker scripts | ||
| - | --- | ||
| - | The linker scripts in `esp-open-sdk/ | ||
| - | --- | ||
| - | ### Understanding the Naming Conventions | ||
| - | |||
| - | * **`v6`**: Refers to the version of Espressif' | ||
| - | * **`new` vs. `old`**: Refers to the Espressif bootloader structure version: | ||
| - | * **`old` (v1.1 bootloader era):** Used legacy flash mapping rules (limited `irom0` size). | ||
| - | * **`new` (v1.2+ bootloader era):** Expanded the mapped `irom0` size per application slot to support larger code bases. | ||
| - | * **`512` / `1024` / `2048`**: Refers to the target flash size in **Kilobytes** (512 KB, 1 MB, 2 MB). | ||
| - | * **`app1` vs. `app2`**: Used in **OTA (Over-The-Air)** two-slot layouts (`user1.bin` and `user2.bin`). `app1` links code to execute from the first flash partition, while `app2` links code to execute from the second partition. | ||
| - | |||
| - | --- | ||
| - | |||
| - | ### Breakdown of the Linker Scripts | ||
| - | |||
| - | #### 1. Non-OTA Script | ||
| - | |||
| - | * **`eagle.app.v6.ld`**: | ||
| - | |||
| - | #### 2. OTA Scripts (Bootloader-Based) | ||
| - | * **`eagle.app.v6.new.512.app1.ld` / `app2.ld`** : Purpose: 512 KB Flash using the " | ||
| - | * **`eagle.app.v6.new.1024.app1.ld` / `app2.ld`** : Purpose: 1 MB (and larger) Flash using the " | ||
| - | * **`eagle.app.v6.new.2048.ld`**: | ||
| - | * **`eagle.app.v6.old.*.ld`**: | ||
| - | |||
| - | #### 3. Core ROM Address Symbols | ||
| - | * **`eagle.rom.addr.v6.ld`**: | ||
| - | |||
