Hi,
The ESP32 datasheet says:
( ESP32-D2WD’s pins GPIO16, GPIO17, SD_CMD, SD_CLK, SD_DATA_0 and SD_DATA_1 are used for connecting the embedded flash, and are not recommended for other uses. )
In my project I want to add an external 1G-bit flash, and I plan to share the spi data bus pins with the embedded flash except for the CS# pin. Therefore, I wanna to know the corresponding connection of the embedded flash's SCLK, CS#, SI, SO, WP#, HOLD#.
And my another question is there an API to turn off VDD_SDIO in the SDK? If not, could anyone tell me how to disable VDD_SDIO to save power in deep sleep mode. Thanks!
Connection of the embedded flash and how to disable VDD_SDIO
Re: Connection of the embedded flash and how to disable VDD_SDIO
On the ESP32-D2WD:tl_fan wrote:Hi,
The ESP32 datasheet says:
( ESP32-D2WD’s pins GPIO16, GPIO17, SD_CMD, SD_CLK, SD_DATA_0 and SD_DATA_1 are used for connecting the embedded flash, and are not recommended for other uses. )
In my project I want to add an external 1G-bit flash, and I plan to share the spi data bus pins with the embedded flash except for the CS# pin. Therefore, I wanna to know the corresponding connection of the embedded flash's SCLK, CS#, SI, SO, WP#, HOLD#.
- SCLK is GPIO 6
- DO is GPIO 17
- DI is GPIO 8
- HOLD# is GPIO 11
- WP# is GPIO 7
- CS# is GPIO 16
Also note that SD_DATA_x pin numbering does not match the IOx pin numbering used on most SPI flash data sheets.
The same pin mapping data can be read from the chip via "espefuse.py summary".
You can disable the VDD_SDIO regulator via efuse: https://github.com/espressif/esptool/wi ... e-vdd_sdio or it can be configured at runtime via some RTC registers.tl_fan wrote: And my another question is there an API to turn off VDD_SDIO in the SDK? If not, could anyone tell me how to disable VDD_SDIO to save power in deep sleep mode. Thanks!
However, in deep sleep mode the VDD_SDIO regulator is already powered down.
Re: Connection of the embedded flash and how to disable VDD_SDIO
Fine.
Thanks for your answer, ESP_Angus.
Thanks for your answer, ESP_Angus.
Who is online
Users browsing this forum: No registered users and 356 guests