swap out esphelper for makefile commands to throw m4 into passthrough, upload via esptool, and start the serial

This commit is contained in:
brentru
2019-10-01 11:34:04 -04:00
parent bd00a04d30
commit 38a1cd7ee8
4 changed files with 24 additions and 37 deletions

View File

@@ -1,4 +1,7 @@
PROJECT_NAME := nina-fw
M4_PORT := /dev/cu.usbmodem1431201
M4_BOOTLOADER := /Volumes/FEATHERBOOT/.
ESP_PORT := /dev/cu.usbserial-AH03B302
EXTRA_COMPONENT_DIRS := $(PWD)/arduino
@@ -14,7 +17,26 @@ endif
include $(IDF_PATH)/make/project.mk
# M4 to USB-Serial Passthrough
passthrough:
cp passthrough.UF2 $(M4_BOOTLOADER)
echo "Copied to BOOT!"
# Upload to ESP32 after entering passthrough
upload:
echo "Uploading nina-fw to ESP32"
esptool.py --port $(M4_PORT) --before no_reset --baud 115200 write_flash 0 NINA_W102-1.3.1.bin
serial:
miniterm.py -p
firmware: all
python combine.py
.PHONY: firmware
.PHONY: passthrough
.PHONY: upload
.PHONY: serial