Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

adding unoflash function to flash UnoWiFi from recovery #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# The Wifi station configuration can be hard-coded here, which makes esp-link come up in STA+AP
# mode trying to connect to the specified AP *only* if the flash wireless settings are empty!
# This happens on a full serial flash and avoids having to hunt for the AP...
# STA_SSID ?=
# STA_PASS ?=
# STA_SSID ?=
# STA_PASS ?=

# --------------- toolchain configuration ---------------

Expand All @@ -42,8 +42,8 @@ ESPBAUD ?= 9600
# The Wifi station configuration can be hard-coded here, which makes esp-link come up in STA+AP
# mode trying to connect to the specified AP *only* if the flash wireless settings are empty!
# This happens on a full serial flash and avoids having to hunt for the AP...
# STA_SSID ?=
# STA_PASS ?=
# STA_SSID ?=
# STA_PASS ?=

# hostname or IP address for wifi flashing
ESP_HOSTNAME ?= arduino
Expand Down Expand Up @@ -346,6 +346,11 @@ flash: all
0x00000 "$(SDK_BASE)/bin/boot_v1.4(b1).bin" 0x01000 $(FW_BASE)/user1.bin \
$(ET_BLANK) $(SDK_BASE)/bin/blank.bin

unoflash: all
$(Q) $(ESPTOOL) --port $(ESPPORT) --baud 9600 write_flash -ff 80m -fm qio -fs 32m \
0x00000 "$(SDK_BASE)/bin/boot_v1.4.bin_rep" 0x1000 $(FW_BASE)/user1.bin 0x3FC000 \
$(SDK_BASE)/bin/esp_init_data_default.bin_rep 0x3FE000 $(SDK_BASE)/bin/blank.bin

tools/$(HTML_COMPRESSOR):
$(Q) mkdir -p tools
ifeq ($(OS),Windows_NT)
Expand Down Expand Up @@ -389,7 +394,7 @@ ifeq ("$(COMPRESS_W_HTMLCOMPRESSOR)","yes")
else
$(Q) cp -r html/head- html_compressed;
$(Q) cp -r html/*.html html_compressed;
$(Q) cp -r html/wifi/*.html html_compressed/wifi;
$(Q) cp -r html/wifi/*.html html_compressed/wifi;
endif
ifeq (,$(findstring mqtt,$(MODULES)))
$(Q) rm -rf html_compressed/mqtt.html
Expand Down