swap out esphelper for makefile commands to throw m4 into passthrough, upload via esptool, and start the serial
This commit is contained in:
22
Makefile
22
Makefile
@@ -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
|
||||
Reference in New Issue
Block a user