Issue with ESP32 and TFT SPI Screen After Extended Use

I’m using an ESP32 with a TFT SPI screen in a project. The code is fairly long but runs without issues initially. However, after connecting the ESP32 to a phone charger for power, the setup works perfectly for about two weeks. After this period, the TFT SPI screen suddenly turns black, and the red LED on the ESP32 turns on.

Does anyone have insights into what might be causing this issue or suggestions on how to troubleshoot it?

Welcome to the forum

As your topic does not relate directly to the installation or operation of the IDE it has been moved to a more relevant category of the forum

1 Like

That's strange. Running for two weeks and then derailing.
Bad powering usually brings the same issue within in minutes.
Really odd.

Posting the code, and if possible, schematics, could bring more light to this issue.