mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
makefile/tools/esptool: use dio instead of qout or qio flash mode
If Quad SPI modes qout or qio are set by variable FLASH_MODE, esptool.py has to be called with parameter `--flash_mode dio` so that the first stage bootloader is always using Dual SPI mode.
This commit is contained in:
parent
66452d15ae
commit
be1764043d
@ -8,6 +8,12 @@ ifeq ($(CPU),esp8266)
|
||||
# Full path to the bootloader binary. In the ESP32 case this is set by the
|
||||
# esp_bootloader module.
|
||||
BOOTLOADER_BIN ?= $(RIOTCPU)/$(CPU)/bin/bootloader$(BOOTLOADER_COLOR)$(BOOTLOADER_INFO).bin
|
||||
else
|
||||
# ESP-IDF uses dio as flash mode for esptool.py when qout or qio mode are
|
||||
# configured to always boot in dual SPI mode
|
||||
ifneq (,$(filter qout qio,$(FLASH_MODE)))
|
||||
FLASH_MODE = dio
|
||||
endif
|
||||
endif
|
||||
|
||||
ESPTOOL ?= $(RIOTTOOLS)/esptools/esptool.py
|
||||
|
Loading…
Reference in New Issue
Block a user