No more need for esptool
This commit is contained in:
parent
1b0863224c
commit
7b02bdc17f
2 changed files with 2 additions and 4 deletions
3
Makefile
3
Makefile
|
@ -3,7 +3,6 @@ NAME := esp32-env-monitor
|
||||||
SOURCE := $(addsuffix .ino, $(NAME)) wifi_login.h
|
SOURCE := $(addsuffix .ino, $(NAME)) wifi_login.h
|
||||||
TARGET := $(addsuffix .$(subst :,.,$(FQBN)).bin, $(NAME))
|
TARGET := $(addsuffix .$(subst :,.,$(FQBN)).bin, $(NAME))
|
||||||
ELF := $(addsuffix .$(subst :,.,$(FQBN)).elf, $(NAME))
|
ELF := $(addsuffix .$(subst :,.,$(FQBN)).elf, $(NAME))
|
||||||
ESPTOOL := ~/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py
|
|
||||||
PORT := /dev/ttyUSB0
|
PORT := /dev/ttyUSB0
|
||||||
ADDRESS := 0x10000
|
ADDRESS := 0x10000
|
||||||
|
|
||||||
|
@ -15,7 +14,7 @@ clean:
|
||||||
rm -f $(TARGET) $(ELF)
|
rm -f $(TARGET) $(ELF)
|
||||||
|
|
||||||
upload: $(TARGET)
|
upload: $(TARGET)
|
||||||
$(ESPTOOL) --port $(PORT) write_flash $(ADDRESS) $(TARGET)
|
ARDUINO_SKETCHBOOK_DIR=$(CURDIR) arduino-cli upload -b $(FQBN) -p $(PORT)
|
||||||
|
|
||||||
$(TARGET): $(SOURCE)
|
$(TARGET): $(SOURCE)
|
||||||
ARDUINO_SKETCHBOOK_DIR=$(CURDIR) arduino-cli compile -b $(FQBN)
|
ARDUINO_SKETCHBOOK_DIR=$(CURDIR) arduino-cli compile -b $(FQBN)
|
||||||
|
|
|
@ -18,5 +18,4 @@ Air quality and other environment data monitoring for an ESP32 board
|
||||||
|
|
||||||
A Makefile is provided to compile and upload to the board. This Makefile uses:
|
A Makefile is provided to compile and upload to the board. This Makefile uses:
|
||||||
|
|
||||||
* [arduino-cli](https://github.com/arduino/arduino-cli) for compilation
|
* [arduino-cli](https://github.com/arduino/arduino-cli) for compilation and uploading
|
||||||
* `esptool.py` shipped with the arduino core for uploading (while this [issue](https://github.com/arduino/arduino-cli/issues/163) is not resolved)
|
|
||||||
|
|
Loading…
Reference in a new issue