mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 16:03:41 +00:00
esp32: support flashing directly from tinygo
Right now this requires setting the -port parameter, but other than that it totally works (if esptool.py is installed). It works by converting the ELF file to the custom ESP32 image format and flashing that using esptool.py.
This commit is contained in:
committed by
Ron Evans
parent
9a17698d6a
commit
0df4a7a35f
@@ -347,7 +347,7 @@ ifneq ($(AVR), 0)
|
||||
@$(MD5SUM) test.hex
|
||||
endif
|
||||
ifneq ($(XTENSA), 0)
|
||||
$(TINYGO) build -size short -o test.elf -target=esp32 examples/serial
|
||||
$(TINYGO) build -size short -o test.bin -target=esp32 examples/serial
|
||||
endif
|
||||
$(TINYGO) build -size short -o test.hex -target=hifive1b examples/blinky1
|
||||
@$(MD5SUM) test.hex
|
||||
|
||||
Reference in New Issue
Block a user