Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Dirk Jan
#58533 Hi,

I try to use an RA8875 based TFT display on my ESP8266. The communication it through SPI and the platform Arduino. It does not work stable! Not on a Wemos, not on a NodeMCU. It starts working but the ESP8266 seems to reset itself every 20 sec.

I red a lot about problems with SPI in combination with the RA8875 and ESP8266. However, I cant find any solutions. Does anybody know a different SPI lib or RA8875 lib that works?
Or would it be better to use an other Arduino? Or switch to I2C? Any experiences?

Regards, DJ
User avatar
By Dirk Jan
#58555 @Ribeiro Santos: The libs I am using are these:

RA8875 libs:
The original from the supplier: http://www.buydisplay.com/default/serial-spi-arduino-5-inch-tft-lcd-touch-shield-ra8875-for-mega-due-uno
The Adafruit variant (or original): https://github.com/adafruit/Adafruit_RA8875

SPI libs:
The default 8266 SPI lib (https://github.com/esp8266/Arduino)

The RA8875 libs include examples, that code I try to run on my ESP8266 boards and that code will result in a crash/reset after 20 seconds. I have attached one of these example .ino files to this thread.

I red about the SPI lib not being OK on ESP8266, at least at the end of 2015, also found another lib https://github.com/MetalPhreak/ESP8266_SPI_Driver, but this lib uses other commands - the RA8826 driver cannot work with it and my knowledge of SPI is not good enough to solve that.
You do not have the required permissions to view the files attached to this post.
User avatar
By Dirk Jan
#58589 I found the problem, pfff.
The examples I tried include long loops, too long for the ESP8266 Watchdog timer. So at a certain point it would reset the ESP. Now I included a yield() command in every loop, at it runs very smooth!

DJ :D