Skip to content

Conversation

@gonzague
Copy link

Summary

Adds an automated flash script and comprehensive documentation for flashing firmware to XIAO ESP32-C6 devices.

New Files

  • flash.sh - Automated flashing script
  • HOWTO-FLASH.md - Step-by-step flashing guide

Flash Script Features

  • Auto-detects USB serial port
  • Prompts for selection when multiple devices connected
  • Verifies ESP32-C6 chip type during upload (rejects wrong chips)
  • Displays device MAC address for identification
  • Supports all build environments (debug, release, debugSSDP, releaseSSDP)
  • Options:
    • -e, --env - Select build environment
    • -s, --skip-build - Use existing firmware (faster for multiple devices)
    • -f, --skip-fs - Skip filesystem upload
    • -y, --yes - Auto-confirm prompts
    • -m, --monitor - Open serial monitor after flash

Usage Examples

# Standard flash (debug build)
./flash.sh

# Flash multiple devices quickly
./flash.sh -e release -s -y

# Flash and monitor
./flash.sh -m

Documentation Includes

  • Hardware requirements and CC1101 wiring table
  • PlatformIO installation instructions
  • Step-by-step flashing guide
  • Partition layout explanation
  • Troubleshooting section
  • Command reference

- Add flash.sh: automated script for flashing firmware
  - Auto-detects USB port, prompts if multiple devices found
  - Verifies ESP32-C6 chip type during upload
  - Supports debug/release environments
  - Options: skip build (-s), skip filesystem (-f), auto-confirm (-y)

- Add HOWTO-FLASH.md: comprehensive flashing guide
  - Hardware requirements and CC1101 wiring table
  - Step-by-step PlatformIO installation and usage
  - Troubleshooting section
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