Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
6b570e8d
Commit
6b570e8d
authored
Feb 18, 2019
by
Javier Peletier
Committed by
Marcel Stör
Feb 18, 2019
Browse files
makefile: add baud rate flash parameter and ESP8285 preset (#2641)
parent
5032483a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
6b570e8d
...
@@ -82,6 +82,9 @@ ifeq ($(OS),Windows_NT)
...
@@ -82,6 +82,9 @@ ifeq ($(OS),Windows_NT)
else
else
ESPPORT
=
$(COMPORT)
ESPPORT
=
$(COMPORT)
endif
endif
ifndef
BAUDRATE
BAUDRATE
=
115200
endif
ifeq
($(PROCESSOR_ARCHITECTURE),AMD64)
ifeq
($(PROCESSOR_ARCHITECTURE),AMD64)
# ->AMD64
# ->AMD64
endif
endif
...
@@ -299,8 +302,9 @@ clobber: $(SPECIAL_CLOBBER)
...
@@ -299,8 +302,9 @@ clobber: $(SPECIAL_CLOBBER)
flash
:
flash
:
@
echo
"use one of the following targets to flash the firmware"
@
echo
"use one of the following targets to flash the firmware"
@
echo
" make flash512k - for ESP with 512kB flash size"
@
echo
" make flash512k - for ESP with 512kB flash size"
@
echo
" make flash4m - for ESP with 4MB flash size"
@
echo
" make flash1m-dout - for ESP with 1MB flash size and flash mode = dout (Sonoff, ESP8285)"
@
echo
" make flash4m - for ESP with 4MB flash size"
flash512k
:
flash512k
:
$(MAKE)
-e
FLASHOPTIONS
=
"-fm qio -fs 4m -ff 40m"
flashinternal
$(MAKE)
-e
FLASHOPTIONS
=
"-fm qio -fs 4m -ff 40m"
flashinternal
...
@@ -308,11 +312,15 @@ flash512k:
...
@@ -308,11 +312,15 @@ flash512k:
flash4m
:
flash4m
:
$(MAKE)
-e
FLASHOPTIONS
=
"-fm dio -fs 32m -ff 40m"
flashinternal
$(MAKE)
-e
FLASHOPTIONS
=
"-fm dio -fs 32m -ff 40m"
flashinternal
flash1m-dout
:
$(MAKE)
-e
FLASHOPTIONS
=
"-fm dout -fs 8m -ff 40m"
flashinternal
flashinternal
:
flashinternal
:
ifndef
PDIR
ifndef
PDIR
$(MAKE)
-C
./app flashinternal
$(MAKE)
-C
./app flashinternal
else
else
$(ESPTOOL)
--port
$(ESPPORT)
write_flash
$(FLASHOPTIONS)
0x00000
$(FIRMWAREDIR)
0x00000.bin 0x10000
$(FIRMWAREDIR)
0x10000.bin
$(ESPTOOL)
--port
$(ESPPORT)
--baud
$(BAUDRATE)
write_flash
$(FLASHOPTIONS)
0x00000
$(FIRMWAREDIR)
0x00000.bin 0x10000
$(FIRMWAREDIR)
0x10000.bin
endif
endif
.subdirs
:
.subdirs
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment