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
276d6376
Commit
276d6376
authored
Aug 06, 2016
by
Erik Kunze
Committed by
Marcel Stör
Aug 06, 2016
Browse files
Replaced default flash rule with 4m/32m rules(#1442)
parent
07aa210c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
276d6376
...
...
@@ -231,11 +231,22 @@ clobber: $(SPECIAL_CLOBBER)
$(
foreach
d,
$(SUBDIRS)
,
$(MAKE)
-C
$(d)
clobber
;
)
$(RM)
-r
$(ODIR)
flash
:
flash
:
@
echo
"use one of the following targets to flash the firmware"
@
echo
" make flash512k - for ESP with 512kB flash size"
@
echo
" make flash4m - for ESP with 4MB flash size"
flash512k
:
$(MAKE)
-e
FLASHOPTIONS
=
"-fm qio -fs 4m -ff 40m"
flashinternal
flash4m
:
$(MAKE)
-e
FLASHOPTIONS
=
"-fm dio -fs 32m -ff 40m"
flashinternal
flashinternal
:
ifndef
PDIR
$(MAKE)
-C
./app flash
$(MAKE)
-C
./app flash
internal
else
$(ESPTOOL)
--port
$(ESPPORT)
write_flash 0x00000
$(FIRMWAREDIR)
0x00000.bin 0x10000
$(FIRMWAREDIR)
0x10000.bin
$(ESPTOOL)
--port
$(ESPPORT)
write_flash
$(FLASHOPTIONS)
0x00000
$(FIRMWAREDIR)
0x00000.bin 0x10000
$(FIRMWAREDIR)
0x10000.bin
endif
.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