Skip to content

Fix ESP32-C6 flash size handling during deploy - #366

Merged
zackees merged 1 commit into
mainfrom
fix/357-esp32c6-flash-size-deploy
Jun 1, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/357-esp32c6-flash-size-deploy

Conversation

@zackees

@zackees zackees commented Jun 1, 2026

Copy link
Copy Markdown
Member

Closes #357.

Summary

  • Honor board_build.flash_size / board_upload.flash_size when resolving BoardConfig.max_flash, including PlatformIO board defaults.
  • Pass the resolved flash size through daemon deploy params and esptool write-flash instead of using --flash-size detect.
  • Disable native ESP32-C6 write-flash and route C6 writes through bounded esptool write-flash, while keeping native verify available.
  • Add tests covering config override parsing, linker/cache flash-size metadata, deploy argument generation, and C6 native-write fallback.

Validation

  • soldr cargo fmt --all
  • soldr cargo fmt --all -- --check
  • soldr cargo test -p fbuild-config flash_size
  • soldr cargo test -p fbuild-deploy esp32::tests::build_write_flash_args -- --nocapture
  • soldr cargo test -p fbuild-deploy esp32::tests::native_write_is_disabled_for_esp32c6 -- --nocapture
  • soldr cargo test -p fbuild-config
  • soldr cargo test -p fbuild-deploy
  • soldr cargo test -p fbuild-daemon
  • soldr cargo test -p fbuild-cli
  • cargo test -p fbuild-build esp32::esp32_linker::tests::test_flash_size_uses_board_max_flash_for_elf2image_and_cache -- --nocapture
  • git diff --check

Notes

  • A local FastLED esp32c6 build attempt against C:\Users\niteris\dev\fastled7 did not complete within the local timeout, so I did not use that artifact as validation.
  • Target-board deployment on COM9 still needs hardware confirmation after CI/build validation.

@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@zackees, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 27 minutes and 47 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ebc2ae9f-b925-4b6a-84ab-95b70ed46885

📥 Commits

Reviewing files that changed from the base of the PR and between 9486e13 and a5af133.

📒 Files selected for processing (9)
  • crates/fbuild-build/src/esp32/esp32_linker.rs
  • crates/fbuild-config/src/board/db.rs
  • crates/fbuild-config/src/board/loaders.rs
  • crates/fbuild-config/src/board/tests.rs
  • crates/fbuild-config/src/ini_parser/tests.rs
  • crates/fbuild-daemon/src/handlers/operations/deploy.rs
  • crates/fbuild-deploy/README.md
  • crates/fbuild-deploy/src/esp32/deployer.rs
  • crates/fbuild-deploy/src/esp32/tests.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/357-esp32c6-flash-size-deploy

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zackees
zackees merged commit 02400bc into main Jun 1, 2026
82 checks passed
@zackees
zackees deleted the fix/357-esp32c6-flash-size-deploy branch June 1, 2026 22:21
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

fix: honor ESP32-C6 4MB flash size and avoid deploy hang

1 participant