Merge pull request #92 from davidmonterocrespo24/feature/vscode-extension

feat: enhance ESP32 boot stability with deterministic instruction cou…
master
David Montero Crespo 2026-04-05 00:17:42 -03:00 committed by GitHub
commit 79865ab289
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -216,8 +216,9 @@ def main() -> None: # noqa: C901 (complexity OK for inline worker)
b'-drive', f'file={firmware_path},if=mtd,format=raw'.encode(), b'-drive', f'file={firmware_path},if=mtd,format=raw'.encode(),
] ]
# ── ESP32-C3 requires deterministic instruction counting for stable boot # Deterministic instruction counting for stable timers (WiFi beacons, boot)
if 'c3' in machine: # Required for ESP32-C3 boot; also needed for ESP32 WiFi on virtualized hosts
if 'c3' in machine or wifi_enabled:
args_list.extend([b'-icount', b'3']) args_list.extend([b'-icount', b'3'])
# ── WiFi NIC (slirp user-mode networking) ────────────────────────────── # ── WiFi NIC (slirp user-mode networking) ──────────────────────────────