I tried to compile firmware for rtl8720cf on several computers, but in the end I always get the same error when compiling.
------
esphome:
name: "rtl8720cf"
friendly_name: "rtl8720cf"
substitutions:
device_name: "rtl8720cf"
name: "rtl8720cf"
friendly_name: "rtl8720cf"
rtl87xx:
board: generic-rtl8720cf-2mb-992k
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
- platform: esphome
wifi:
networks:
- ssid: !secret wifi_ssid_1
password: !secret wifi_password_1
priority: 2
- ssid: !secret wifi_ssid_2
password: !secret wifi_password_2
priority: 1
ap:
ssid: "${name}"
password: !secret wifi_password_1
captive_portal:
web_server:
time:
- id: time_provider
platform: homeassistant
on_time_sync:
- logger.log: "Synchronized system clock"
timezone: Europe/Samara
# for hard restart
button:
- platform: restart
id: restart_button
name: 'Restart ${device_name}'
entity_category: diagnostic
-------------
INFO ESPHome 2026.3.3
INFO Reading configuration /config/esphome/rtl8720cf.yaml...
INFO Generating C++ source...
INFO Configuring lwIP: TCP=11 [api=3, captive_portal=3, web_server=5], UDP=6 (min) [captive_portal=1, mdns=2, wifi.lwip_internal=2], TCP_LISTEN=3 [api=1, ota=1, web_server_base=1]
INFO Compiling app... Build path: /data/build/rtl8720cf
Processing rtl8720cf (board: generic-rtl8720cf-2mb-992k; framework: arduino; platform: https://github.com/libretiny-eu/libretiny.git#v1.12.1)
--------------------------------------------------------------------------------
HARDWARE: RTL8720CF 100MHz, 256KB RAM, 992KB Flash
- framework-arduino-api @ 2022.8.24+sha.237b10a
- framework-realtek-ambz2 @ 0.0.0+v2022.11.17.sha.5f7b937
- library-flashdb @ 1.2.0+sha.d5c892f
- library-freertos @ 10.0.1+sha.752c89a
- library-freertos-port @ 2026.2.4+sha.91a88be
- library-lwip @ 2.1.3-ambz2+sha.929d2dd
- library-printf @ 6.1.0+sha.28a79bd
- library-uf2ota @ 5.0.0+sha.f955412
PLATFORM VERSIONS:
- libretiny @ 1.12.1+sha.73564e9
- ltchiptool @ 4.14.0
CUSTOM OPTIONS:
- fw_name = esphome
- fw_version = 2026.3.3
- options:
- lwipopts.h:
- LWIP_STATS = 0
- MAX_LISTENING_SOCKETS_TCP = 3
- MAX_SOCKETS_TCP = 11
- MAX_SOCKETS_UDP = 6
- MEMP_MEM_MALLOC = 1
- MEMP_NUM_NETBUF = 4
- MEMP_NUM_NETCONN = 20
- MEMP_NUM_TCPIP_MSG_INPKT = 8
- MEMP_NUM_TCP_PCB = 11
- MEMP_NUM_TCP_PCB_LISTEN = 3
- MEMP_NUM_TCP_SEG = 17
- MEMP_NUM_UDP_PCB = 6
- MEMP_STATS = 0
- MEM_LIBC_MALLOC = 1
- MEM_STATS = 0
- TCP_SND_BUF = (4*TCP_MSS)
- TCP_SND_QUEUELEN = 17
- TCP_WND = (4*TCP_MSS)
Dependency Graph
|-- AsyncTCP @ 3.4.5
|-- ESPAsyncWebServer @ 3.9.6
|-- DNSServer @ 1.1.0
|-- ArduinoJson @ 7.4.2
Compiling .pioenvs/rtl8720cf/src/main.cpp.o
Linking .pioenvs/rtl8720cf/raw_firmware.elf
|-- Image 1: raw_firmware.ota1.elf
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .ram.code_text changed by 4
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .glue_7 changed by 2
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .glue_7t changed by 2
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .vfp11_veneer changed by 2
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .v4_bx changed by 2
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .iplt changed by 2
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .system_restore_data changed by 8
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .bss changed by 32
|-- Image 2: raw_firmware.ota2.elf
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .ram.code_text changed by 4
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .glue_7 changed by 2
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .glue_7t changed by 2
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .vfp11_veneer changed by 2
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .v4_bx changed by 2
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .iplt changed by 2
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .system_restore_data changed by 8
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: warning: start of section .bss changed by 32
| |-- image_flash_is.0x000000.bin
|-- TypeError: Type of 'if_not=' (<class 'NoneType'>) different than the field type; while initializing 'ota_signature'
| |-- File "/root/.platformio/penv/.libretiny/lib/python3.12/site-packages/datastruct/utils/validation.py", line 199, in _validate_cond
*** [.pioenvs/rtl8720cf/raw_firmware.elf] Error 1
========================= [FAILED] Took 13.95 seconds =========================
I tried to compile firmware for rtl8720cf on several computers, but in the end I always get the same error when compiling.