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
ESP32 WROOM SPI NOT WORK
-
- Posts: 55
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 5:40 pm
- Been thanked: 5 times
ESP32 WROOM SPI NOT WORK
- Attachments
-
- prova_SPI.fcfx
- (8.65 KiB) Downloaded 133 times
-
- saleae.PNG (47.66 KiB) Viewed 2472 times
-
- pin.PNG (289.78 KiB) Viewed 2472 times
-
- Matrix Staff
- Posts: 1466
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 515 times
- Been thanked: 474 times
Re: ESP32 WROOM SPI NOT WORK
Hi, thank you & happy new year.
I have tried your flowchart on my Wroom & there are no issues for me. 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?
I have tried your flowchart on my Wroom & there are no issues for me. 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
Re: ESP32 WROOM SPI NOT WORK
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
Thank you so much
-
- Matrix Staff
- Posts: 1466
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 515 times
- Been thanked: 474 times
Re: ESP32 WROOM SPI NOT WORK
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.
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
Re: ESP32 WROOM SPI NOT WORK
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
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