ESP32 strange issue with using SPI device
Posted: Wed Jul 29, 2020 2:24 am
I am using ESP-WROOM-32 on a breakout board and not any development board https://image.made-in-china.com/202f0j0 ... Module.jpg.
I connected it to ILI9341 SPI device (TFT display) as slave on VSPI pins. When I power it up, the screen is always white even on multiple resets. At random, some movement happens on screen but then back to white screen.
However, when I connect the serial cable from ESP32 to my PC, on reset, the SPI device works fine. What's strange is, it works with even a single wire (say GND) connected to the USB cable.
I am guessing this is to do with SPI noise or power issues but not sure. I am using 3.3v regulated output from separate power sources for both ESP32 and the SPI slave device and not using power from USB. I also tried reducing the SPI frequency but it's the same behavior.
I have tested the behavior with Adafruit_ILI9341 and TFT_eSPI both libraries.
Same SPI device works fine with Arduino Due.
Any suggestions on what could be wrong?
I connected it to ILI9341 SPI device (TFT display) as slave on VSPI pins. When I power it up, the screen is always white even on multiple resets. At random, some movement happens on screen but then back to white screen.
However, when I connect the serial cable from ESP32 to my PC, on reset, the SPI device works fine. What's strange is, it works with even a single wire (say GND) connected to the USB cable.
I am guessing this is to do with SPI noise or power issues but not sure. I am using 3.3v regulated output from separate power sources for both ESP32 and the SPI slave device and not using power from USB. I also tried reducing the SPI frequency but it's the same behavior.
I have tested the behavior with Adafruit_ILI9341 and TFT_eSPI both libraries.
Same SPI device works fine with Arduino Due.
Any suggestions on what could be wrong?