Very wrong pin usage in ESP32 SPI Slave examples.
Posted: Thu Aug 09, 2018 7:47 pm
This one cost me about 3 hours today:
In the README.md file for the SPI slave examples, as well as in the example code, there is:
The proper settings are:
MOSI GPIO13
MISO GPIO12
SCK GPIO14
CS GPIO15
Andrei
In the README.md file for the SPI slave examples, as well as in the example code, there is:
According to the reference manual, module diagrams, and running code, MOSI and MISO are reversed, as are SCLK and CS.Code: Select all
Please run wires between the following GPIOs between the slave and master to make the example function: Signal Slave Master Handshake GPIO2 GPIO2 MOSI GPIO12 GPIO12 MISO GPIO13 GPIO13 SCLK GPIO15 GPIO15 CS GPIO14 GPIO14
The proper settings are:
MOSI GPIO13
MISO GPIO12
SCK GPIO14
CS GPIO15
Andrei