Skip to content

fix(techo-lite): remove duplicate EXTERNAL_FLASH_DEVICES definition#2719

Open
jirogit wants to merge 1 commit into
meshcore-dev:devfrom
jirogit:fix/techo-lite-flash-device
Open

fix(techo-lite): remove duplicate EXTERNAL_FLASH_DEVICES definition#2719
jirogit wants to merge 1 commit into
meshcore-dev:devfrom
jirogit:fix/techo-lite-flash-device

Conversation

@jirogit

@jirogit jirogit commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Problem

variants/lilygo_techo_lite/variant.h defines EXTERNAL_FLASH_DEVICES twice:

// Line 73 (correct)
#define EXTERNAL_FLASH_DEVICES ZD25WQ32CEIGR  // 32Mbit = 4MB, actual hardware

// Line 98 (incorrect, in button definitions section)
#define EXTERNAL_FLASH_DEVICES MX25R1635F     // 16Mbit = 2MB, T-Echo (non-Lite) chip

Due to C preprocessor behavior, the second definition silently overrides the first.
As a result, firmware initializes MX25R1635F (2MB) instead of the actual
ZD25WQ32CEIGR (4MB) chip, which can cause LittleFS to operate incorrectly
on T-Echo Lite hardware.

Fix

Remove the erroneous second definition (lines 98–99). The MX25R1635F appears
to have been copied from the T-Echo (non-Lite) board definition by mistake.
Also fix missing newline at end of file.

Testing

Built LilyGo_T-Echo-Lite_non_shell_companion_radio_ble Success.

variant.h defines EXTERNAL_FLASH_DEVICES twice:
- First (correct):    ZD25WQ32CEIGR (32Mbit = 4MB, matches actual hardware)
- Second (incorrect): MX25R1635F    (16Mbit = 2MB, T-Echo non-Lite chip)

Due to C preprocessor behavior, the second definition silently overrides
the first, causing firmware to initialize the wrong flash chip. This can
result in LittleFS operating incorrectly on T-Echo Lite hardware.

Remove the erroneous second definition.

Also fix missing newline at end of file.
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