-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp32 2.0.15 and tft_espi keeps restarting esp32c3 mini #3284
Comments
I think you will need to post your user setup so people know what pins you are trying to use. |
my user setup : #define ST7789_DRIVER // Configure all registers #define TFT_WIDTH 240 //#define CGRAM_OFFSET // Library will add offsets required //#define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue //#define TFT_INVERSION_ON // DSTIKE stepup // Generic ESP32 setup //ESP32 C3 generic default #define TFT_CS 1 #define TFT_DC 10 //#define TOUCH_CS 1 // Optional for touch screen // For NodeMCU - use pin numbers in the form PIN_Dx where Dx is the NodeMCU pin designation //#define TOUCH_CS -1 #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH #define SMOOTH_FONT #define SPI_FREQUENCY 27000000 #define SPI_READ_FREQUENCY 20000000 #define SPI_TOUCH_FREQUENCY 2500000 // #define SUPPORT_TRANSACTIONS |
The same happened to me. I use an ESP32-S3 and the TFT_eSPI library and an ST7796 display. With version 2.0.14 everything works fine. Under 2.0.15 the controller reboots everytime I call tft.init(). Even some old projects that worked for months or even years are not unsable under 2.0.15. |
esp32 2.0.16 same behaviour as 2.0.15. |
Not sure TBH. Seems like there were some 3.0 features that snuck into the 2.0.15 release that ended up being breaking changes. I just realized there's a new release out since two days back: https://github.com/espressif/arduino-esp32/releases/tag/2.0.16. Too late for me to test it out now, but I'll give it a go tomorrow. |
ESP32-S3 2.0.14 was working with TFT_eSPI, 2.015 and 2.0.16 - Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled. |
Plese refer to this issue: #3304 (comment) Revert your esp32 board package to 2.0.14 and that should solve the reset loop. The latest version are causing issues with memory and is not compatible with the TFT_eSPI library. This is tested for ESP32-S3 and I can confirm for this. |
@dbtronics it has already been established that there's an incompatibility with both 2.0.15 and 2.0.16. |
Thanks for these comments guys, I was pulling my hair out trying to figure out why my code no longer worked on my ESP32-C3, just reboots forever. It was a Store Access Fault at MTVAL 0x00000010 if that helps. |
I can also confirm the same issues exists with a custom board using a ESP32-C3-Mini module. Ironically, PlatformIO worked perfectly with the same Arduino setup that did not - until I upgraded the ESP32 core from v6.6.0 to v6.7.0 and the same thing happens (constant panic/reset) with PlatformIO. |
IIRC PlatformIO v. 6.6.0 uses ESP32 v. 2.0.14. Probably got updated to either 2.0.15 or 2.0.16 in v. 6.7.0. |
Yes I can confirm for ESP32-S3-devkitc-1 for PlatformIO. Have to go with V6.6.0 for screens to work. |
The bug is here in the library TFT_eSPI/Processors/TFT_eSPI_ESP32_C3.h Lines 30 to 35 in fae22f7
same for the S3. See open issue in Arduino repo espressif/arduino-esp32#9618 (comment) @Bodmer please correct the wrong fix. |
Ugh, this is really painful. I'm trying to use LoRa with a TFT display on a C3-zero so I need both the FSPI and HSPI buses. Thankfully, LoRa allows me to attach my own SPI bus (setSPI) so I just created a new FSPI bus. But it broke under Thanks for all your hard work so far |
Hi,
I use arduino ide 2.3.0, tft_espi 2.5.43 library, and esp32 by espressif 2.0.15 package , and the esp32c3 super mini module.
The following code lights the led 1 time.
But when I uncomment // tft.init() the led keeps blinking, so the module keeps restarting.
It does not happen when I use esp32 package 2.0.14
Any idea what the problem is ?
Regards
Sjors
code :
/*
*/
#include <TFT_eSPI.h>
TFT_eSPI tft = TFT_eSPI();
const byte led8 = 8;
byte UseFont;
char str[80];
void setup(){
// Serial.begin(115200);
// delay(2000);
pinMode(8, OUTPUT);
digitalWrite(8, HIGH);
delay(1000);
digitalWrite(8, LOW);
delay(1000);
digitalWrite(8, HIGH);
// tft.init(); // tft.begin(); zijn hetzelfde
}
void loop(){
}
The text was updated successfully, but these errors were encountered: