ESP32 SPI master slave communication not working in DMA mode

headpin
Posts: 1
Joined: Sat May 15, 2021 4:43 am

ESP32 SPI master slave communication not working in DMA mode

Postby headpin » Sat May 15, 2021 5:02 am

The ESP32 SPI master & slave sample program given as part of ESP-IDF examples (https://github.com/espressif/esp-idf/tr ... /spi_slave) doesn't work for me.

I flashed the "spi_slave/receiver" on a ESP32 & "spi_slave/sender" firmware on to another ESP32 dev. board. The GPIO pins 12, 13, 14, 15 & 2 are connected from one ESP32 to another (picture attached).

After that when i run the firmware, i see the receiver & sender isn't consistently getting the messages. Intermittently junk characters are outputted. See the screen below. Don't know what is causing this issue. Any help is appreciated.

SPI Sender :-
Sender.jpg
SPI Sender
Sender.jpg (126.76 KiB) Viewed 2274 times
SPI Receiver :-
Receiver.jpg
SPI Receiver
Receiver.jpg (270.94 KiB) Viewed 2274 times
Wire connection between two ESP32:-
ESP32_WireConnection.jpg
ESP 32 SPI wire connection
ESP32_WireConnection.jpg (65.58 KiB) Viewed 2274 times

vinu_gss
Posts: 2
Joined: Sat Sep 11, 2021 2:21 pm

Re: ESP32 SPI master slave communication not working in DMA mode

Postby vinu_gss » Tue Sep 21, 2021 9:15 pm

which is the devkit ? v1 or v4?

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 96 guests