Page 1 of 1

ESP32C3 DevKitM-1 documentation has incorrect SPI pin out.

Posted: Wed Mar 23, 2022 10:48 pm
by bstolk
The documentation on the ESP32C3 dev kit is incorrect in the pin-out diagram.
https://docs.espressif.com/projects/esp ... itm-1.html#

On this diagram it states that the SPI CLOCK is at GPIO6.

In reality, it is on GPIO4, which can be confirmed with the source code here:
~/.arduino15/packages/esp32/hardware/esp32/2.0.2/variants/esp32c3

Which shows that:

Code: Select all

static const uint8_t SS    = 7;
static const uint8_t MOSI  = 6;
static const uint8_t MISO  = 5;
static const uint8_t SCK   = 4;

Re: ESP32C3 DevKitM-1 documentation has incorrect SPI pin out.

Posted: Thu Mar 24, 2022 1:41 am
by ESP_Sprite
It's actually not incorrect. What the documentation describes is the 'hardware default' pin for that function, the pin where you can use the IOMUX to get that signal out with the absolute lowest latency. Disregarding latency, however, it's acceptable to use the GPIO matrix to route the function to any pin possible. The Arduino drivers, for some reason, have GPIO4 as the default pin they route it to (but note it's likely configurable in those drivers too). While I agree it's unfortunate, it's not technically wrong.

Re: ESP32C3 DevKitM-1 documentation has incorrect SPI pin out.

Posted: Thu Mar 24, 2022 1:48 am
by bstolk
Ah, OK.
Thanks for clearing that up @ESP_Sprite. I appreciate it.