ESP32C3 DevKitM-1 documentation has incorrect SPI pin out.

bstolk
Posts: 23
Joined: Fri Jan 07, 2022 6:44 am

ESP32C3 DevKitM-1 documentation has incorrect SPI pin out.

Postby bstolk » Wed Mar 23, 2022 10:48 pm

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;

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Thu Mar 24, 2022 1:41 am

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.

bstolk
Posts: 23
Joined: Fri Jan 07, 2022 6:44 am

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

Postby bstolk » Thu Mar 24, 2022 1:48 am

Ah, OK.
Thanks for clearing that up @ESP_Sprite. I appreciate it.

Who is online

Users browsing this forum: No registered users and 52 guests