Skip to main content

Firmware Flash

This page is the complete reference for the Firmware Flash page: the connection bar, the four tabs (Flash / Erase / Read / Authorize), the chip list table, multi-segment flashing, erase presets, and the progress-and-log panel on the right.

Page overviewโ€‹

The page has three parts: the connection bar at the top, the operation card on the left (the four tabs), and the progress-and-log panel on the right.

Flash page connection bar โ€” serial dropdown, baud rate, chip selector, status dot

Flash page connection bar โ€” serial dropdown, baud rate, chip selector, status dot.

Connection barโ€‹

  • Serial (rescanned each time you open it)
  • Baud rate โ€” 115200 / 460800 / 921600 / 1000000 / 1500000 / 2000000, plus custom (300โ€“4,000,000). Under the Authorize tab this is the authorization baud rate.
  • Chip selector โ€” under Authorize, an extra other option appears.
  • Status dot โ€” green = connected and ready; gray/red = not connected or handshake failed.
Auto-connect / auto-release

tyutool connects automatically when you start an operation and releases the port when it finishes.

Select a chipโ€‹

The authoritative chip list (source: chip-manifests.ts):

Chip (-d)Flash baudAuth baudFlash capacityErase presets
esp324608001152004 MiBfullChip
esp32c34608001152004 MiBfullChip
esp32c64608001152008 MiBfullChip
esp32p446080011520016 MiBfullChip
esp32s346080011520016 MiBfullChip
t5ai (alias t5)9216001152008 MiBauthInfo, fullChipNoRf
t19216001152008 MiBauthInfo, fullChipNoRf
t39216001152004 MiBauthInfo, fullChipNoRf
t29216001152002 MiBauthInfo, fullChipNoRf
bk7231n9216001152002 MiBauthInfo, fullChipNoRf
ln882h1152001152002 MiBfullChip
other (auth only)โ€”115200โ€”none
note

t5ai is selected by default; the legacy t5/T5 aliases normalize to t5ai.

tip

The flash baud is adjustable, but going above 2000000 is not recommended.

info

Erase requires 4 KiB alignment (a multiple of 0x1000); only other is exempt.

Flash tab โ€” flashingโ€‹

Multi-segment flashing: up to 10 segments, each with a firmware path (.bin/.hex/.elf/.img) plus a start/end address (hexadecimal). A new segment's start defaults to the previous segment's end; once you pick firmware, the end address is auto-computed as start + file size. The Flash button is only enabled once every segment is filled in.

Flash tab โ€” multi-segment flashing with firmware path and start/end addresses

Flash tab โ€” multi-segment flashing with firmware path and start/end addresses.

tip

Typical use case: write a bootloader + app in one pass.

Erase tab โ€” erasingโ€‹

Erase by address (alignment is validated in real time) or use an advanced erase preset (same meanings as in Concepts: authInfo / fullChipNoRf / fullChip). A confirmation dialog runs before execution; when an address is unaligned, an "align" action is offered.

Erase destroys data

Erase is irreversible. A full-chip erase that clears the RF cal region may leave the device unable to connect to a network. Back up first.

Erase tab โ€” erase by address and the advanced erase presets

Erase tab โ€” erase by address and the advanced erase presets.

Read tab โ€” readingโ€‹

Used for backup. Choose the save directory (Tauri) or let the browser download; the default filename is tyutool_read_<chip>.bin; the end address defaults to the chip's full capacity (whole-chip read). If the file already exists, choose to overwrite or append a timestamp.

note

Some chips do not support reading.

Read tab โ€” read the flash to a file for backup

Read tab โ€” read the flash to a file for backup.

Authorize tab โ€” authorizingโ€‹

TuyaOpen UART authorization writes UUID + AuthKey (shown masked, not copyable); a Copy credentials button is available. External links point to TuyaOpen authorization purchase and the localization docs. Operations:

  • Read Auth โ€” reads authorization, only holds the port, writes nothing.
  • Authorize โ€” writes; requires UUID + AuthKey filled in first and runs a confirmation flow.
danger

Keep your credentials safe (they are purchased). The other chip supports authorization only and has no flash plugin.

Authorize tab โ€” UUID/AuthKey entry (masked), read-auth and authorize actions

Authorize tab โ€” UUID/AuthKey entry (masked), read-auth and authorize actions.

Progress and logโ€‹

The always-on panel on the right: a phased progress bar (each phase has its own color, percentage, and indeterminate state) plus a log panel (toggle auto-scroll, clear, copy).

Progress bar and log panel โ€” phased progress with log entries

Progress bar and log panel โ€” phased progress with log entries.

Port contentionโ€‹

The Flash page shares the same set of serial ports with the Serial Debug page.

warning

When a port is busy, tyutool asks you to release it first; you can turn on auto-release in Serial Debug (see Serial Debug).