File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
# Changelog
3
3
# Changed the variables to include the header file directory
4
4
# Added global var for the XTENSA tool root
5
+ # Added variable for esptool bauds. Some modules don't work with default speed.
5
6
#
6
7
# This make file still needs some work.
7
8
#
@@ -21,6 +22,7 @@ SDK_BASE ?= /opt/Espressif/ESP8266_SDK
21
22
# Esptool.py path and port
22
23
ESPTOOL ?= esptool.py
23
24
ESPPORT ?= /dev/ttyUSB0
25
+ ESPBAUD ?= 115200
24
26
25
27
# name for the target project
26
28
TARGET = app
@@ -102,7 +104,7 @@ $1/%.o: %.c
102
104
$(Q ) $(CC ) $(INCDIR ) $(MODULE_INCDIR ) $(EXTRA_INCDIR ) $(SDK_INCDIR ) $(CFLAGS ) -c $$< -o $$@
103
105
endef
104
106
105
- .PHONY : all checkdirs clean
107
+ .PHONY : all checkdirs flash clean
106
108
107
109
all : checkdirs $(TARGET_OUT ) $(FW_FILE_1 ) $(FW_FILE_2 )
108
110
@@ -131,7 +133,7 @@ firmware:
131
133
$(Q ) mkdir -p $@
132
134
133
135
flash : firmware/0x00000.bin firmware/0x40000.bin
134
- -$(ESPTOOL ) --port $(ESPPORT ) write_flash 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin
136
+ -$(ESPTOOL ) --baud $( ESPBAUD ) -- port $(ESPPORT ) write_flash 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin
135
137
136
138
clean :
137
139
$(Q ) rm -f $(APP_AR )
You can’t perform that action at this time.
0 commit comments