Search found 3 matches

by takeshikawami
Wed Mar 27, 2024 7:26 pm
Forum: ESP-IDF
Topic: ESP32 DMA buffer size issue
Replies: 4
Views: 1878

Re: ESP32 DMA buffer size issue

I find someone else post a similar question and it can be solve by setting .max_transfer_sz in spi_bus_config_t to larger size. This confused me because I thought the maximum size was only 4092 before.
by takeshikawami
Tue Mar 19, 2024 6:44 pm
Forum: ESP-IDF
Topic: ESP32 DMA buffer size issue
Replies: 4
Views: 1878

Re: ESP32 DMA buffer size issue

To allocate a larger buffer, simply adjust the buffer_size constant to your desired size. For example: #define buffer_size 2048 // or any other desired size DMA_ATTR uint32_t recvbuf[buffer_size]; But when I adjust the size lager than 1023, it will keep printling out the initialized contents in the...
by takeshikawami
Tue Mar 19, 2024 3:17 am
Forum: ESP-IDF
Topic: ESP32 DMA buffer size issue
Replies: 4
Views: 1878

ESP32 DMA buffer size issue

Hello, I am currently working on a project where I use an ESP32 as an SPI slave to receive data from another device. I follow the official ESP-IDF example for an SPI slave receiver, which can be found here: https://github.com/espressif/esp-idf/blob/v5.2.1/examples/peripherals/spi_slave/receiver/main...