Hi all,
From last week i am implementing SPI communication between two ESP-WROOM-32D. I am using the code examples given by espressif itself.
C:\esp\esp-idf\examples\peripherals\spi_slave\sender ( Master)
C:\esp\esp-idf\examples\peripherals\spi_slave\reciever(slave)
I am able to read the data from MISO (sender side Master ESP32), in the slave side(MOSI) i was not able to read exact data it's printing some random data.
I tried by changing the clock speed and pin configurations.
I was not able to debug the code and not able to find what exactly wrong in the code.
Please can someone help me with this.
Thanks & regards,
Vijay
SPI interface between two ESP32
-
- Posts: 9745
- Joined: Thu Nov 26, 2015 4:08 am
Re: SPI interface between two ESP32
IIRC that code is tested in CI, it should work. What does your hardware look like?
Re: SPI interface between two ESP32
Two guesses; (1) Ground, (2) Clock speed.
What clock speeds did you try? Try 1Mhz at first. Sometimes a pin that is not actually connected can pick up from another pin, along with corruptions.
What clock speeds did you try? Try 1Mhz at first. Sometimes a pin that is not actually connected can pick up from another pin, along with corruptions.
& I also believe that IDF CAN should be fixed.
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 69 guests