ESP32 SPI display issue with high Frequency
Posted: Thu Feb 20, 2020 8:53 am
Hi,
Im having this weird issue, if I set my CPU frequency to anything higher than 10MHz(40MHz XTAL), SPI driving an ST7735 just stops working, it freezes and glitches. If I set the CPU frequency to the lowest setting, the display works fine. I can't figure out whats the issue exactly. Im using VSPI.
Tried different displays, same problem, tried to refresh the display only 1 frame per second, same problem, 1 frame per 10 seconds same problem, reduced SPI clock speed to 10Mhz from 27mhz, same problem.
ST7735 library im using is https://github.com/Bodmer/TFT_eSPI
#define TFT_CS 5
#define TFT_RST 15
#define TFT_DC 2
Thanks!
Im having this weird issue, if I set my CPU frequency to anything higher than 10MHz(40MHz XTAL), SPI driving an ST7735 just stops working, it freezes and glitches. If I set the CPU frequency to the lowest setting, the display works fine. I can't figure out whats the issue exactly. Im using VSPI.
Tried different displays, same problem, tried to refresh the display only 1 frame per second, same problem, 1 frame per 10 seconds same problem, reduced SPI clock speed to 10Mhz from 27mhz, same problem.
ST7735 library im using is https://github.com/Bodmer/TFT_eSPI
#define TFT_CS 5
#define TFT_RST 15
#define TFT_DC 2
Thanks!