Merged
Conversation
Add support for -file-format flag to llgo build command allowing users to specify output format independently of target configuration. Changes: - Add -file-format flag supporting bin, hex, elf, uf2, zip formats - Implement two-stage conversion: firmware format → file format - Add ConvertOutput function with hex format conversion support - Update build logic to handle different modes (build vs run/install) - Add verbose logging for conversion operations For build command: only convert firmware when -file-format is specified For run/install commands: always convert firmware when target requires it 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1271 +/- ##
==========================================
- Coverage 90.19% 90.16% -0.03%
==========================================
Files 40 42 +2
Lines 11714 11786 +72
==========================================
+ Hits 10565 10627 +62
- Misses 1018 1026 +8
- Partials 131 133 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Add touchSerialPortAt1200bps function from TinyGo for Arduino bootloader reset - Update Flash function to trigger 1200bps reset when flash-1200-bps-reset is true - Add 2-second wait after reset for device to enter bootloader mode - Support retry mechanism with Windows-specific error handling 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
MeteorsLiu
reviewed
Sep 8, 2025
Contributor
There was a problem hiding this comment.
This file is migrated from tinygo, can skip review.
MeteorsLiu
reviewed
Sep 8, 2025
Contributor
There was a problem hiding this comment.
NOTE: The implements of QEMU or other toolchain downloading move to outside.
MeteorsLiu
approved these changes
Sep 8, 2025
# Conflicts: # internal/build/build.go
luoliwoshang
pushed a commit
to luoliwoshang/llgo
that referenced
this pull request
Sep 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
llgo build -target esp32 -o hello [-obin, -oimg, -ohex, -ouf2, -ozip]llgo run -target esp32 -emulatorllgo run -target esp32 -port /dev/cu.usbserial-110llgo install -target esp32 -port /dev/cu.usbserial-110llgo monitor -target esp32 -port /dev/cu.usbserial-110llgo runoutput toGOPATH/binExamples