MCPcopy Create free account
hub / github.com/FastLED/FastLED / _create_flash_image

Method _create_flash_image

ci/compiler/esp32_artifacts.py:281–294  ·  view source on GitHub ↗

Create merged flash image for QEMU.

(
        self, output_dir: Path, board_name: str, copied: list[str]
    )

Source from the content-addressed store, hash-verified

279 (output_dir / FILE_NAMES.BOOT_APP0).write_bytes(boot_app0_data)
280
281 def _create_flash_image(
282 self, output_dir: Path, board_name: str, copied: list[str]
283 ) -> None:
284 """Create merged flash image for QEMU."""
285 try:
286 builder = ESP32FlashImageBuilder(board_name, self.artifacts)
287 flash_path = output_dir / FILE_NAMES.FLASH
288 if builder.create_merged_image(flash_path, self.flash_config.size_mb):
289 copied.append(FILE_NAMES.FLASH)
290 except KeyboardInterrupt as ki:
291 handle_keyboard_interrupt(ki)
292 raise
293 except Exception as e:
294 print(f"⚠️ Warning: Could not create flash.bin: {e}")
295
296 def _print_summary(self, output_dir: Path, copied: list[str]) -> None:
297 """Print summary of copied files."""

Callers 1

copy_for_qemuMethod · 0.95

Calls 5

create_merged_imageMethod · 0.95
printFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected