esp_hosted_fg network_adapter

koellomat
Posts: 1
Joined: Tue Apr 07, 2026 11:43 am

esp_hosted_fg network_adapter

Postby koellomat » Tue Apr 07, 2026 11:55 am

I'm trying to build the network adapter for a esp32c5 and got the following linker error:

[5/8] Linking CXX executable network_adapter.elf
FAILED: network_adapter.elf
C:\WINDOWS\system32\cmd.exe /C "cd . && C:\Espressif\tools\riscv32-esp-elf\esp-14.2.0_20260121\riscv32-esp-elf\bin\riscv32-esp-elf-g++.exe -march=rv32imac_zicsr_zifencei -nostartfiles -march=rv32imac_zicsr_zifencei --specs=nosys.specs -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32C5=0 -Wl,--Map=C:/projekte/Y/esp_hosted_fg/esp/esp_driver/network_adapter/build/network_adapter.map -Wl,--no-warn-rwx-segments -Wl,--orphan-handling=warn -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T rom.api.ld -T esp32c5.peripherals.ld -T esp32c5.rom.ld -T esp32c5.rom.api.ld -T esp32c5.rom.rvfp.ld -T esp32c5.rom.wdt.ld -T esp32c5.rom.systimer.ld -T esp32c5.rom.version.ld -T esp32c5.rom.phy.ld -T esp32c5.rom.coexist.ld -T esp32c5.rom.net80211.ld -T esp32c5.rom.pp.ld -T esp32c5.rom.newlib.ld -T esp32c5.rom.newlib-normal.ld -T esp32c5.rom.heap.ld -T memory.ld -T sections.ld @CMakeFiles\network_adapter.elf.rsp -o network_adapter.elf && cd ."
C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20260121/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:/projekte/Y/esp_hosted_fg/esp/esp_driver/esp-idf/components/esp_wifi/lib/esp32c5/libnet80211.a(ieee80211_he.o): in function `ieee80211_add_ulmu_pwrcap':
(.text.ieee80211_add_ulmu_pwrcap+0x56): undefined reference to `phy_get_max_pwr_new'
C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20260121/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: (.text.ieee80211_add_ulmu_pwrcap+0x62): undefined reference to `phy_get_max_pwr_new'
C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20260121/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: (.text.ieee80211_add_ulmu_pwrcap+0x7a): undefined reference to `phy_get_max_pwr_new'
C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20260121/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: (.text.ieee80211_add_ulmu_pwrcap+0x92): undefined reference to `phy_get_max_pwr_new'
C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20260121/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: (.text.ieee80211_add_ulmu_pwrcap+0xaa): undefined reference to `phy_get_max_pwr_new'
C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20260121/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:/projekte/Y/esp_hosted_fg/esp/esp_driver/esp-idf/components/esp_wifi/lib/esp32c5/libnet80211.a(ieee80211_he.o):(.text.ieee80211_add_ulmu_pwrcap+0xc2): more undefined references to `phy_get_max_pwr_new' follow
C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20260121/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(esp_hosted_coprocessor.c.obj): in function `xTaskCreate':
C:/projekte/Y/esp_hosted_fg/esp/esp_driver/esp-idf/components/freertos/FreeRTOS-Kernel/include/freertos/task.h:394:(.text.esp_hosted_coprocessor_init+0x1b8): undefined reference to `esp_hosted_cli_start'
C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20260121/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:/projekte/Y/esp_hosted_fg/esp/esp_driver/esp-idf/components/esp_wifi/lib/esp32c5/libpp.a(hal_debug.o): in function `dbg_read_tx_power':
(.text.dbg_read_tx_power+0x30): undefined reference to `phy_get_max_pwr_new'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

How can get it running? Can I download a binary for a esp32c5 with SPI interface?

yogesh.mantri
Espressif staff
Espressif staff
Posts: 5
Joined: Fri Jun 26, 2020 4:57 pm

Re: esp_hosted_fg network_adapter

Postby yogesh.mantri » Thu Apr 09, 2026 10:20 am

Hello @koellomat,

Possibly you are using old IDF setup, which did not have C5 support. In any case, if you feel some issue here, please raise you problem using https://github.com/espressif/esp-hosted/issues.

Thank you.

Who is online

Users browsing this forum: meta-externalagent, Qwantbot and 3 guests