Page 1 of 1

ESP32 WROOM SPI NOT WORK

Posted: Mon Jan 03, 2022 9:47 am
by max.tisc
Hello team, happy new year
I have a problem with the master SPI of the ESP32, the MOSI pin does not transmit the set value, in the diagram I have changed the default pins indicated by you, with those indicated in the manual of the wroom board but you always see only 0xFF
I am attaching files to see if I have made a mistake in setting something
Thank you

Re: ESP32 WROOM SPI NOT WORK

Posted: Mon Jan 03, 2022 12:38 pm
by medelec35
Hi, thank you & happy new year.
I have tried your flowchart on my Wroom & there are no issues for me.
MOSI ESP32 Wroom.png
MOSI ESP32 Wroom.png (66.33 KiB) Viewed 2404 times
You could check to see if the pin is ok by toggling the output every 10ms and checking you have the expected results?
Also, you could try changing the MOSI pin and see if it works then?

Re: ESP32 WROOM SPI NOT WORK

Posted: Mon Jan 03, 2022 4:08 pm
by max.tisc
Hi Meddelec35, I did the tests you told me and others, in the end I discovered that it was the cable that goes to the analyzer that was interrupted
Thank you so much

Re: ESP32 WROOM SPI NOT WORK

Posted: Mon Jan 03, 2022 4:23 pm
by medelec35
Hi max.tisc,
It's excellent you found the cause of the issue, well done.
Thanks for letting us know.
What I do is use Dupont wires, male to female so I can connect my analyser directory onto the breadboard.
They are colour coded to make it easier to connect.
If they bread they are easily obtained to be replaced.

Re: ESP32 WROOM SPI NOT WORK

Posted: Mon Jan 03, 2022 9:50 pm
by max.tisc
Hello Medelec35,
the chip that communicates with ESP32 uses the spi type CPHA = 1 and CPOL = 0, if in FC9 I set the channel parameter "channel 1" I have no response from the chip but putting on "software" the chip responds correctly, looking at the graphs of the analyzer it seems that in channel 1 mode the CPHA and CPOL parameters have no effect, I state that this chip has already been used on arduino2560 with FC8 and in channel 1 it worked well
Hello and thanks