Search found 5 matches

by FozzTexx
Sun Sep 08, 2024 3:01 pm
Forum: ESP-IDF
Topic: How can I receive continuously with SPI into a circular buffer?
Replies: 7
Views: 1562

Re: How can I receive continuously with SPI into a circular buffer?

I figured out how to get it to work! Wasn't easy, spent a lot of time going over the ESP32 tech ref manual, the ESP32 programming guide, and walking through the SPI driver source. I was able to get SPI continuous to work and I'm able to get a pointer to where in the buffer that is currently being wr...
by FozzTexx
Sun Sep 01, 2024 2:03 pm
Forum: ESP-IDF
Topic: How can I receive continuously with SPI into a circular buffer?
Replies: 7
Views: 1562

Re: How can I receive continuously with SPI into a circular buffer?

After more investigation I've found that no matter what I do, the SPI will write 68 bytes no matter what. If I change the chunk size to 64, it still writes 68 bytes, but the extra 4 bytes wrap around to the beginning of the chunk before it moves to the next chunk! It also is actually only writing 67...
by FozzTexx
Sat Aug 31, 2024 1:57 pm
Forum: ESP-IDF
Topic: How can I receive continuously with SPI into a circular buffer?
Replies: 7
Views: 1562

Re: How can I receive continuously with SPI into a circular buffer?

I think I've managed to get SPI to receive to a circular buffer, but for some reason it won't fill the chunk before moving to the next one. No matter what I set the chunk size too, it only writes 68 bytes and then skips to the next chunk. The first thing I do is allocate the buffer and setup a linke...
by FozzTexx
Fri Aug 30, 2024 1:35 pm
Forum: ESP-IDF
Topic: How can I receive continuously with SPI into a circular buffer?
Replies: 7
Views: 1562

Re: How can I receive continuously with SPI into a circular buffer?

I have a device which will suddenly set a "sending" signal low on one pin and then immediately go into transmitting a variable length data packet on another pin, with a clock speed of 2Mhz. If I call `spi_device_queue_trans` when the signal goes low, there is too long of a delay before the SPI perip...
by FozzTexx
Thu Aug 29, 2024 6:23 pm
Forum: ESP-IDF
Topic: How can I receive continuously with SPI into a circular buffer?
Replies: 7
Views: 1562

How can I receive continuously with SPI into a circular buffer?

Trying to figure out how I can do a continuous receive on ESP32 with SPI into a circular buffer and be able to know where the SPI peripheral position is at any time. It looks like there is a `dma_continue` flag that can be set, but I haven't foundt how to get the pointer to where in the buffer the S...