Merge branch 'feature/esptool_download_by_dio_mdoe_when_config_qio_qout' into 'master'

Flash firmware by DIO mode if configuration is "DIO", "QIO" or "QOUT“

See merge request sdk/ESP8266_RTOS_SDK!664
This commit is contained in:
Dong Heng
2018-12-20 20:05:51 +08:00
3 changed files with 15 additions and 15 deletions

View File

@ -621,12 +621,16 @@ static esp_err_t bootloader_main()
return ESP_FAIL;
}
update_flash_config(&fhdr);
ESP_LOGI(TAG, "ESP-IDF %s 2nd stage bootloader", IDF_VER);
ESP_LOGI(TAG, "compile time " __TIME__ );
#if defined(CONFIG_FLASHMODE_QIO) || defined(CONFIG_FLASHMODE_QOUT)
fhdr.spi_mode = CONFIG_SPI_FLASH_MODE;
#endif
update_flash_config(&fhdr);
print_flash_info(&fhdr);
return ESP_OK;