From 26df4a32adc83e0a7516b32575caa9b52fda21af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Sun, 25 Jun 2017 20:41:36 +0200 Subject: [PATCH] Change default flash mode to 'dio' in fw image header (#2013) --- Makefile | 2 +- docs/en/flash.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6ec1632b..28b69fec 100644 --- a/Makefile +++ b/Makefile @@ -188,7 +188,7 @@ endef $(BINODIR)/%.bin: $(IMAGEODIR)/%.out @mkdir -p $(BINODIR) - $(ESPTOOL) elf2image $< -o $(FIRMWAREDIR) + $(ESPTOOL) elf2image --flash_mode dio --flash_freq 40m $< -o $(FIRMWAREDIR) ############################################################# # Rules base diff --git a/docs/en/flash.md b/docs/en/flash.md index 255ce7ca..8c5cdb11 100644 --- a/docs/en/flash.md +++ b/docs/en/flash.md @@ -30,6 +30,7 @@ Run the following command to flash an *aggregated* binary as is produced for exa - See [below](#determine-flash-size) if you don't know or are uncertain about the capacity of the flash chip on your device. It might help to double check as e.g. some ESP-01 modules come with 512kB while others are equipped with 1MB. - esptool.py is under heavy development. It's advised you run the latest version (check with `esptool.py version`). Since this documentation may not have been able to keep up refer to the [esptool flash modes documentation](https://github.com/themadinventor/esptool#flash-modes) for current options and parameters. +- The firmware image file contains default settings `dio` for flash mode and `40m` for flash frequency. - In some uncommon cases, the [SDK init data](#sdk-init-data) may be invalid and NodeMCU may fail to boot. The easiest solution is to fully erase the chip before flashing: `esptool.py --port erase_flash`