Page 2 of 2

Re: wroom32 schematics

Posted: Sun Nov 20, 2016 9:25 pm
by zhivko
Another question - I added led to my board to pin no 11.
I uploaded sketch, and I barely see led light instead of bright flashes - When I measured voltage on gpio11 - it shows 1.57V.

So what's wrong with using:

Code: Select all

int ledPin = 11;
in blink example?

Re: wroom32 schematics

Posted: Mon Nov 21, 2016 1:01 am
by Angus
Hi zhivtko,

GPIO 11 is used as the SPI flash CS line by default (pin name SD_CMD), so it's not a good choice for general purpose I/O. I think the dim light & low voltage you're seeing is caused by the high duty cycle on this pin as it's being used to load code from SPI flash.

Consult the ESP32 pin list document (available from the reference documents section for a list of pins, or you can consult the WROOM32 schematic. The pins named SD_xxx (under Pin Name heding, GPIO 6-11 inclusive) are used for SPI flash so are best left unconnected otherwise.

Angus

[SOLVED] wroom32 schematics

Posted: Wed Nov 23, 2016 6:34 pm
by zhivko
Oh that's a shame - I just followed pinout picture and pin11 is indeed shared for flash and gpio...
But if gpio could not be used - why put it on this image?
https://www.google.si/url?sa=i&rct=j&q= ... 2399122428

As I am concerned my post is solved.

Re: wroom32 schematics

Posted: Wed Nov 23, 2016 9:24 pm
by zhivko
Why they mark GPIO11 when it is flash reserved? Ughh...
So basically all this SD_ pins fall under same flash operation pins that user could not use since then flash would be useless?

Code: Select all

SHD/SD2 17 GPIO9, SD_DATA2, SPIHD, HS1_DATA2, U1RXD
SWP/SD3 18 GPIO10, SD_DATA3, SPIWP, HS1_DATA3, U1TXD
SCS/CMD 19 GPIO11, SD_CMD, SPICS0, HS1_CMD, U1RTS
SCK/CLK 20 GPIO6, SD_CLK, SPICLK, HS1_CLK, U1CTS
SDO/SD0 21 GPIO7, SD_DATA0, SPIQ, HS1_DATA0, U2RTS
SDI/SD1 22 GPIO8, SD_DATA1, SPID, HS1_DATA1, U2CTS

Re: wroom32 schematics

Posted: Wed Nov 23, 2016 10:05 pm
by Angus
This is correct, unfortuntely. It is possible to use these pins to share other devices on the SPI bus of the SPI flash if you're very careful (use a separate CS line, only talk to the other SPI device(s) while the SPI flash cache mapping is disabled). But in general it's best to not use them.

The diagram you linked was not created by Espressif, but I've emailed the author with a couple of suggestions about extra labels.

Re: wroom32 schematics

Posted: Wed Nov 23, 2016 10:12 pm
by WiFive
This is correct, unfortuntely. It is possible to use these pins to share other devices on the SPI bus of the SPI flash if you're very careful (use a separate CS line, only talk to the other SPI device(s) while the SPI flash cache mapping is disabled). But in general it's best to not use them.

The diagram you linked was not created by Espressif, but I've emailed the author with a couple of suggestions about extra labels.
Would really like to use these for sdcard limited r/w operations. Possible with separate cmd lines? Or maybe SD card cmds are mutually exclusive with flash commands?