mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-23 01:47:33 +08:00
feat(spi_flash): Flash firmware by DIO mode if configuration is "DIO", "QIO" or "QOUT"
System(bootloader or app) switches to QIO mode if configuration is "QIO" or "QOUT".
This commit is contained in:
@@ -619,12 +619,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;
|
||||
|
Reference in New Issue
Block a user