From a27c0d5e5e509e49ee4b634f80e7878df6ad4895 Mon Sep 17 00:00:00 2001 From: "wangtao@espressif.com" Date: Fri, 1 Aug 2025 11:24:57 +0800 Subject: [PATCH] fix(phy): fix esp32c2 build issue --- components/esp_phy/linker.lf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/components/esp_phy/linker.lf b/components/esp_phy/linker.lf index 5dc2f9f23b..d12b992ee3 100644 --- a/components/esp_phy/linker.lf +++ b/components/esp_phy/linker.lf @@ -10,12 +10,29 @@ if IDF_TARGET_ESP32 = y: entries: .phyiram+ +if IDF_TARGET_ESP32C2 = y: + [scheme:phy_iram] + entries: + phy_iram -> iram0_text + + [sections:phy_iram] + entries: + .phyiram+ + +[mapping:btbb] +archive: libbtbb.a +entries: + if IDF_TARGET_ESP32C2 = y: + * (phy_iram) + [mapping:phy] archive: libphy.a entries: * (noflash_data) if IDF_TARGET_ESP32 = y: * (phy_iram) + if IDF_TARGET_ESP32C2 = y: + * (phy_iram) [mapping:rtc] archive: librtc.a