Create merged flash image for QEMU.
(
self, output_dir: Path, board_name: str, copied: list[str]
)
| 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.""" |
no test coverage detected