hideakitai / ESP32DMASPI

SPI library for ESP32 which use DMA buffer to send/receive transactions
MIT License
181 stars 37 forks source link

40 & 80MHz not work #29

Closed Scadi2 closed 1 year ago

Scadi2 commented 1 year ago

Up to a frequency of 26,666,666Hz (80Mhz/3) it works perfectly. at 40 & 80MHz this error appears: [ERROR] SPI device transmit failed : 258 E (26712) spi_master: check_trans_valid(676): invalid dev handle

I need 80MHZ for a high-speed application.

hideakitai commented 1 year ago

You can if you make a correctly routed PCB. For example, 8MHz is too fast for the breadboard.

master.setFrequency(4000000);            // default: 8MHz (too fast for bread board...)

FYI

https://www.protoexpress.com/blog/best-high-speed-pcb-routing-practices/