Implementing SPI transactions over 64 bytes without DMA

cawald18
Posts: 1
Joined: Mon May 27, 2024 4:01 am

Implementing SPI transactions over 64 bytes without DMA

Postby cawald18 » Mon May 27, 2024 4:11 am

I'm working on a project where the ESP32 will be configured as a spi slave device. The main controller will provide data to the ESP32 over spi at 2 MHz. However, the spi transactions will be variable in length, and based on the documentation here: https://docs.espressif.com/projects/esp ... slave.html, it still seems like there is still a usage restriction on DMA if the spi transaction is not a multiple of 4 bytes. Is this still the case or has this been fixed on newer chips?

If the DMA issue still exists, is there anyway to implement a spi driver that can handle transactions over 64 bytes without DMA? From the documentation, it seems like anything over 64 bytes requires DMA, but since I don't have control over the transaction length, I don't know if there's an easy software fix for this.

Who is online

Users browsing this forum: Google [Bot], mensbufo and 76 guests