File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,12 +6,9 @@ QSTR_DEFS = qstrdefsport.h #$(BUILD)/pins_qstr.h
66# include py core make definitions
77include ../py/py.mk
88
9- ifeq ($(ESP_SDK ) ,)
10- $(error ESP_SDK must be set)
11- endif
12-
139PORT = /dev/ttyACM0
1410CROSS_COMPILE = xtensa-lx106-elf-
11+ ESP_SDK = $(shell $(CC ) -print-sysroot) /..
1512
1613INC = -I.
1714INC += -I$(PY_SRC )
@@ -73,9 +70,8 @@ all: $(BUILD)/firmware-combined.bin
7370
7471deploy : $(BUILD ) /firmware-combined.bin
7572 $(ECHO ) " Writing $< to the board"
76- $(Q ) esptool.py --port $(PORT ) write_flash 0 $<
77- # $(Q)esptool.py --port $(PORT) write_flash 0 $(BUILD)/firmware.elf-0x00000.bin
78- # $(Q)esptool.py --port $(PORT) write_flash 0x10000 $(BUILD)/firmware.elf-0x10000.bin
73+ # $(Q)esptool.py --port $(PORT) write_flash 0 $<
74+ $(Q ) esptool.py --port $(PORT ) write_flash 0 $(BUILD ) /firmware.elf-0x00000.bin 0x10000 $(BUILD ) /firmware.elf-0x10000.bin
7975
8076$(BUILD ) /firmware-combined.bin : $(BUILD ) /firmware.elf
8177 $(ECHO ) " Create $@ "
You can’t perform that action at this time.
0 commit comments