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:
Ayke van Laethem
2020-08-28 15:58:30 +02:00
committed by Ron Evans
parent 9a17698d6a
commit 0df4a7a35f
4 changed files with 139 additions and 2 deletions
+1 -1
View File
@@ -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