From b77e2f76891a29de3987e5b7067a94ed54ad4868 Mon Sep 17 00:00:00 2001 From: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com> Date: Tue, 14 Oct 2025 23:14:46 -0300 Subject: [PATCH] fix: Fix ESP32-C5 bootloader offset --- pytest-embedded-arduino/pytest_embedded_arduino/app.py | 2 +- pytest-embedded-nuttx/pytest_embedded_nuttx/serial.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest-embedded-arduino/pytest_embedded_arduino/app.py b/pytest-embedded-arduino/pytest_embedded_arduino/app.py index e5d5d403..8867f9e2 100644 --- a/pytest-embedded-arduino/pytest_embedded_arduino/app.py +++ b/pytest-embedded-arduino/pytest_embedded_arduino/app.py @@ -32,7 +32,7 @@ class ArduinoApp(App): binary_offsets: ClassVar[dict[str, list[int]]] = { 'esp32': [0x1000, 0x8000, 0x10000], 'esp32c3': [0x0, 0x8000, 0x10000], - 'esp32c5': [0x0, 0x8000, 0x10000], + 'esp32c5': [0x2000, 0x8000, 0x10000], 'esp32c6': [0x0, 0x8000, 0x10000], 'esp32h2': [0x0, 0x8000, 0x10000], 'esp32p4': [0x2000, 0x8000, 0x10000], diff --git a/pytest-embedded-nuttx/pytest_embedded_nuttx/serial.py b/pytest-embedded-nuttx/pytest_embedded_nuttx/serial.py index f204d824..ae93d8a9 100644 --- a/pytest-embedded-nuttx/pytest_embedded_nuttx/serial.py +++ b/pytest-embedded-nuttx/pytest_embedded_nuttx/serial.py @@ -22,7 +22,7 @@ class NuttxSerial(EspSerial): binary_offsets: ClassVar[dict[str, int]] = { 'esp32': 0x1000, 'esp32c3': 0x0, - 'esp32c5': 0x0, + 'esp32c5': 0x2000, 'esp32c6': 0x0, 'esp32h2': 0x0, 'esp32p4': 0x2000,