Skip to content

Commit

Permalink
cpu/esp8266: update deprecated flash_size argument
Browse files Browse the repository at this point in the history
Using flash size in megabits is deprecated by esptool.
Use the new megabyte notation.

    WARNING: Flash size arguments in megabits like '8m' are deprecated.
    Please use the equivalent size '1MB'.
    Megabit arguments may be removed in a future release.
    esptool.py v2.6
  • Loading branch information
cladmi committed Sep 4, 2019
1 parent 90a9adb commit 422644b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/esp8266/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ LINKFLAGS += -Wl,--warn-unresolved-symbols
FLASHFILE ?= $(ELFFILE)

# configure preflasher to convert .elf to .bin before flashing
FLASH_SIZE = -fs 8m
FLASH_SIZE = -fs 1MB
PREFLASHER ?= esptool.py
PREFFLAGS ?= elf2image $(FLASH_SIZE) $(FLASHFILE)
FLASHDEPS += preflash
Expand Down

0 comments on commit 422644b

Please sign in to comment.