1
0
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:
Gunar Schorcht 2022-08-01 15:08:41 +02:00
parent 66452d15ae
commit be1764043d

View File

@ -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