mrcodetastic / esp32s3_spi_dma_tx_seg_loop

Example of SPI Master DMA driven segmented transfers on the ESP32S3
2 stars 0 forks source link
esp32-s3 esp32s3 octal-spi segmented-transfer spi

Overview

This code uses the ESP32S3's SPI (GPSPI2) device to start a half-duplex octal (8 bits in parallel) transmission, sending a 25kByte segment continuously until interrupted.

The transmission can be restarted.

Logic flow

image

As seen in Pulseview

The gap between stopping a transmission, waiting for completion (via interrupt) and then restarting is only a few milliseconds.

image