Skip to content

fix: use proper bootloader commands for ESP8266#2

Merged
deadprogram merged 1 commit intomainfrom
esp8266-fix
Feb 27, 2026
Merged

fix: use proper bootloader commands for ESP8266#2
deadprogram merged 1 commit intomainfrom
esp8266-fix

Conversation

@deadprogram
Copy link
Member

The ESP8266 ROM bootloader doesn't support two commands that were being used:

CHANGE_BAUD (0x0F) - baud rate switching is ESP32+ only. Now skipped for ESP8266, so flashing runs at the default 115200 baud.

Compressed flash commands (0x10-0x12) - FLASH_DEFL_BEGIN/DATA/END are ESP32+ ROM commands. Now falls back to uncompressed FLASH_BEGIN/DATA/END (0x02-0x04) for ESP8266.

Both features are gated by new ROMHasChangeBaud and ROMHasCompressedFlash flags in chipDef. All ESP32 variants have them set to true and ESP8266 defaults to false.

The ESP8266 ROM bootloader doesn't support two commands that were being used:

CHANGE_BAUD (0x0F) - baud rate switching is ESP32+ only. Now skipped for
ESP8266, so flashing runs at the default 115200 baud.

Compressed flash commands (0x10-0x12) - FLASH_DEFL_BEGIN/DATA/END are
ESP32+ ROM commands. Now falls back to uncompressed FLASH_BEGIN/DATA/END
(0x02-0x04) for ESP8266.

Both features are gated by new ROMHasChangeBaud and ROMHasCompressedFlash
flags in chipDef. All ESP32 variants have them set to true and ESP8266
defaults to false.

Signed-off-by: deadprogram <ron@hybridgroup.com>
@deadprogram deadprogram merged commit cd94fd2 into main Feb 27, 2026
@deadprogram deadprogram deleted the esp8266-fix branch February 27, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant