Skip to content

Added flash_mode=dio to avoid boot loop when flashing using merge.bin - #2570

Merged
liamcottle merged 1 commit into
meshcore-dev:devfrom
IoTThinks:MCdev-Fixed-flashmode-XiaoC6-202605
Jun 26, 2026
Merged

Added flash_mode=dio to avoid boot loop when flashing using merge.bin#2570
liamcottle merged 1 commit into
meshcore-dev:devfrom
IoTThinks:MCdev-Fixed-flashmode-XiaoC6-202605

Conversation

@IoTThinks

Copy link
Copy Markdown
Contributor

This patch is for Xiao C6.

  • Added flash_mode=dio to avoid boot loop when flashing using merge.bin and Web Flasher.

Without this patch, Xiao C6 will hit below boot loop when flashing using merge.bin and Web Flasher.

rst:0x7 (TG0_WDT_HPSYS),boot:0x1f (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001a9f4
SPIWP:0xee
mode:QIO, clock div:2
load:0x40875720,len:0x1228
ets_loader.c 67
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x7 (TG0_WDT_HPSYS),boot:0x1f (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001a9f4
SPIWP:0xee
mode:QIO, clock div:2
load:0x40875720,len:0x1228
ets_loader.c 67

Tested working fine now with my Xiao C6.
PowerSaving is at 5.9mA too.
image

@saunto

saunto commented May 19, 2026

Copy link
Copy Markdown

I found the same issue on the m5 UNIT-C6L (#2552), I thought it was just an artifact of the implementation of the UNIT-C6L. Quad spi is indeed part of the schematic, but I could not get it to work with the esp32 bootloader.

@IoTThinks

Copy link
Copy Markdown
Contributor Author

Glad it helps you too. :)

@liamcottle
liamcottle merged commit 5ff39c6 into meshcore-dev:dev Jun 26, 2026
hermes-gadget added a commit to gadgethd/MeshCore-MQTT that referenced this pull request Jun 27, 2026
Upstream dev: 3d4eec4..5ff39c6 (10 commits)
- Merge PR meshcore-dev#2570: fix flash mode XiaoC6
- Merge PR meshcore-dev#2639: fix typos in comments
- Merge PR meshcore-dev#2844: fix rx boosted gain
- always save boosted gain setting
- fix: report error when rxgain setting is unsupported/rejected
- return bool when setting rx boost
- remove guard on MyMesh::setRxBoostedGain()
- fix: fix typos in source code comments (x2)
- Added flash_mode=dio to avoid boot loop on merge.bin flash

Integration work:
- Resolved CommonCLI.cpp conflict: kept packPrefs/unpackPrefs architecture
  (upstream didn't touch CommonCLI.h in this window, --theirs was sufficient)
- Squash merge of origin/main (all MQTT additions preserved)
- Removed firmware binaries from webflasher/
- Added gitignore patterns

All MQTT additions preserved.
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.

4 participants