Skip to content

RTL8710BL not able to flash. #96

Description

@SchelZ

D: Detection: Detection(name='C:\Users\mihai\Videos\ac_info\.esphome\build\ac-aeh-w4g2\.pioenvs\ac-aeh-w4g2\esphome_2026.6.4_generic-rtl8710bn-2mb-788k_rtl8710bn_lt1.12.1.uf2', size=915968, type=<Type.VALID_UF2: 'UF2'>, file_type='UF2 - esphome 2026.6.4', offset=0, skip=0, length=915968, family=<Family: RTL8710B(0x22E0D6FC), name=realtek-ambz, parent=realtek-amb>, soc=None)
D: Started FlashThread
D: Starting WRITE operation; file = C:\Users\mihai\Videos\ac_info.esphome\build\ac-aeh-w4g2.pioenvs\ac-aeh-w4g2\esphome_2026.6.4_generic-rtl8710bn-2mb-788k_rtl8710bn_lt1.12.1.uf2, port = COM8 @ Auto
D: Terminal closed
D: Stopped TerminalThread
D: Connecting
D: XMODEM: transmitting to 0x10002000
D: Begin start sequence, packet_size=1024
D: Begin start sequence, packet_size=1024
D: standard checksum requested (NAK).
D: standard checksum requested (NAK).
D: send: block 1
D: send: block 1
D: send: at EOF
D: send: at EOF
D: sending EOT, awaiting ACK
D: sending EOT, awaiting ACK
I: Transmission successful (ACK received).
I: Transmission successful (ACK received).
D: Received chip info: f7c84014
D: Dumping bytes: start=0x9000, count=0x1000

ESPHome: IRAM_ATTR placement summary (RTL8710B):
.sram.text: 424 bytes at 0x10005b70 - 0x10005d18
Checking size .pioenvs\ac-aeh-w4g2\raw_firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 14.3% (used 37484 bytes from 262144 bytes)
Flash: [====== ] 63.1% (used 509196 bytes from 806912 bytes)
Building UF2 OTA image
|-- esphome_2026.6.4_generic-rtl8710bn-2mb-788k_rtl8710bn_lt1.12.1.uf2
|-- firmware.uf2
|-- firmware.bin
===================================================================================== [SUCCESS] Took 70.57 seconds =====================================================================================
INFO Build Info: config_hash=0x7bbc89a0 build_time_str=2026-07-04 15:02:12 +0300
INFO Successfully compiled program.
Processing ac-aeh-w4g2 (board: generic-rtl8710bn-2mb-788k; framework: arduino; platform: https://github.com/libretiny-eu/libretiny.git#v1.12.1)

Verbose mode can be enabled via -v, --verbose option
Configuring upload protocol...
AVAILABLE: uart
CURRENT: upload_protocol = uart
Looking for upload port...
Using manually specified: COM8
Uploading .pioenvs\ac-aeh-w4g2\firmware.uf2
|-- Detected file type: UF2 - esphome 2026.6.4
|-- Connecting to 'Realtek AmebaZ' on COM8 @ 1500000
*** [upload] Error 1
====================================================================================== [FAILED] Took 2.33 seconds ======================================================================================
WARNING Failed to upload to ['COM8']

For some reason it reads my chip type as "Unknown 0xF7" and even tho my module is w4g2 im not able to flash the generic firmware. not with esphome nor with ltchiptool. I attached my .yaml config that i use to flash on it. I Also tried to flash the original firmware after dumping it and is working. But esphome is not,

ltchiptool_ambz_2026-07-04_14-12-36.bin.txt
ltchiptool_ambz_2026-07-04_14-20-47_efuse.bin.txt

example_config_AEH-W4G2_orig_no_ota.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions