ESP32 WROOM SPI NOT WORK

Post and discuss new components that you have created.
Post Reply
max.tisc
Posts: 55
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 5 times

ESP32 WROOM SPI NOT WORK

Post 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
Attachments
prova_SPI.fcfx
(8.65 KiB) Downloaded 125 times
saleae.PNG
saleae.PNG (47.66 KiB) Viewed 2353 times
pin.PNG
pin.PNG (289.78 KiB) Viewed 2353 times

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

Re: ESP32 WROOM SPI NOT WORK

Post 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 2345 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?
Martin

max.tisc
Posts: 55
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 5 times

Re: ESP32 WROOM SPI NOT WORK

Post 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

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

Re: ESP32 WROOM SPI NOT WORK

Post 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.
Martin

max.tisc
Posts: 55
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 5 times

Re: ESP32 WROOM SPI NOT WORK

Post 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

Post Reply