From 3bf6c5b604de7463c6cbc35d63abf343c587f14b Mon Sep 17 00:00:00 2001 From: chenjianqiang Date: Wed, 14 Aug 2019 20:57:30 +0800 Subject: [PATCH] bugfix(flash): add spi dio address bitlen configure in psram init --- components/esp32/spiram_psram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp32/spiram_psram.c b/components/esp32/spiram_psram.c index 65d012a9b6..855ef58e93 100644 --- a/components/esp32/spiram_psram.c +++ b/components/esp32/spiram_psram.c @@ -511,6 +511,7 @@ static void IRAM_ATTR psram_gpio_config(psram_io_t *psram_io, psram_cache_mode_t spi_cache_dummy = SPI0_R_QIO_DUMMY_CYCLELEN; } else if (rd_mode_reg & SPI_FREAD_DIO_M) { spi_cache_dummy = SPI0_R_DIO_DUMMY_CYCLELEN; + SET_PERI_REG_BITS(SPI_USER1_REG(0), SPI_USR_ADDR_BITLEN_V, SPI0_R_DIO_ADDR_BITSLEN, SPI_USR_ADDR_BITLEN_S); } else if (rd_mode_reg & (SPI_FREAD_QUAD_M | SPI_FREAD_DUAL_M)) { spi_cache_dummy = SPI0_R_FAST_DUMMY_CYCLELEN; } else {