Search found 8 matches

by FozzTexx
Tue Jul 15, 2025 3:02 pm
Forum: General Discussion
Topic: Bug in receiving CDC-ACM serial state notifications
Replies: 0
Views: 58

Bug in receiving CDC-ACM serial state notifications

I'm working on interfacing an ESP32-S3 to a USB CDC-ACM serial adapter. Right now I'm in the early stages so I'm just working from the cdc_acm_host example. I'm trying to get the ESP32-S3 to read the state of the DSR signal, however it seems there's a bug in how it handles the state notify event ...
by FozzTexx
Thu Jul 10, 2025 1:35 pm
Forum: ESP-IDF
Topic: How can I receive continuously with SPI into a circular buffer?
Replies: 11
Views: 3430

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

Hi,
Thanks for the reply @FozzTexx . I have ESP-IDF version5.3.1
Then your hardware doesn't support it.
by FozzTexx
Thu Jul 03, 2025 2:09 am
Forum: ESP-IDF
Topic: How can I receive continuously with SPI into a circular buffer?
Replies: 11
Views: 3430

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


Hi,
I want to receive data continuously with SPI into a circular buffer. I tried using your code @FozzTexx
I cant find a member like this hw->dma_conf.dma_continue , could you help with this. Thank you!


If you don't have that field then you're using a version of ESP32/ESP-IDF that no longer ...
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: 11
Views: 3430

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 ...
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: 11
Views: 3430

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 ...
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: 11
Views: 3430

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 ...
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: 11
Views: 3430

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 ...
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: 11
Views: 3430

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 ...

Go to advanced search