Closed Nicrus86 closed 11 months ago
Have you tried master/slave examples first? Please try it with a smaller buffer size. If you don't need more than 64 bytes, use the default SPI library and ESP32SPISlave.
If you still need help with the problem, please feel free to reopen this issue.
On ESP32, in Arduino framework with include ESP32DMASPIMaster.h and ESP32DMASPISlave.h (https://github.com/hideakitai/ESP32DMASPI), I tried an simple transmition from Master to Slave using a DMA buffer, but there are data lost in reception, regardless of the size of the data sent and the frequency of sending.
=== CODE MASTER SPI ==========
=== CODE SLAVE SPI ==========
[OUTPUT MASTER]
In Master Code, I send a data with incremental integer on TX buffer dma. When the Master receive on RX buffer dma some '0', the Slave don't receive the current data on RX buffer dma.
[OUTPUT SLAVE]
In Slave code, I reset RX buffer dma (with '0') after print current data.