Hello,
I'm using an ESP32-WROOM-32E with 16MB of Flash.
I'd like to understand how ESP32 effectively uses the pins from GPIO 6 to GPIO 11.
I know they are used for the flash memory chip inside, as said here viewtopic.php?t=1250.
I'm using a particular hardware, so not the ESP32-DevKit, where some hardware is connected to GPIO 7 and GPIO 8. It is working well and there aren't problems.
I flash the chip using the DIO mode.
My question is: why is it working? In my opinion it should give errors on the flash!
[SOLVED] What could happen if ESP32 uses GPIO 7/8 (shared with flash memory)
[SOLVED] What could happen if ESP32 uses GPIO 7/8 (shared with flash memory)
Last edited by filo_gr on Tue Mar 14, 2023 10:50 am, edited 2 times in total.
Filippo
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: My ESP32 is using GPIO 7/8 (shared with flash memory)
Well, first of all GPIO7 and 8 are not available on the castellated pads of that module; if you connect stuff to the pads where older modules had GPIO7/8, it won't affect the module. I'd still expect your program to crash when you run e.g. gpio_reset() on GPIO7/8 though.
Re: My ESP32 is using GPIO 7/8 (shared with flash memory)
I was looking at the ESP32-WROOM-32 Datasheet v3.1, where from chapter 2 "Pin Definitions" I read that:ESP_Sprite wrote: ↑Thu Mar 09, 2023 12:42 amWell, first of all GPIO7 and 8 are not available on the castellated pads of that module; if you connect stuff to the pads where older modules had GPIO7/8, it won't affect the module. I'd still expect your program to crash when you run e.g. gpio_reset() on GPIO7/8 though.
However if I look at the new products e.g. ESP32-WROOM-32E Datasheet v1.6, I see that these pins aren't connected anymore (as you said)!Pins SCK/CLK, SDO/SD0, SDI/SD1, SHD/SD2, SWP/SD3 and SCS/CMD, namely, GPIO6 to GPIO11 are connected to the integrated SPI flash integrated on the module and are not recommended for other uses.
Thank you for this clarification!!
Filippo
Who is online
Users browsing this forum: MicroController and 250 guests