Skip to content
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

TFT Feather S3 resets when init() is called #3568

Open
davepl opened this issue Nov 29, 2024 · 4 comments
Open

TFT Feather S3 resets when init() is called #3568

davepl opened this issue Nov 29, 2024 · 4 comments

Comments

@davepl
Copy link

davepl commented Nov 29, 2024

Here's the entirety of the project, so it should be easy to replicate - but I can't imagine what it could be.

#include <Arduino.h>
#include <TFT_eSPI.h>

TFT_eSPI tft = TFT_eSPI();

void setup() 
{
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello World!");
  tft.init();
  tft.fillScreen(TFT_BLUE);
}

void loop() 
{
  Serial.println("Loop");
  delay(1000);
}

[env:adafruit_feather_esp32s3]
platform = espressif32
board = adafruit_feather_esp32s3
framework = arduino
upload_port = /dev/cu.usbmodemA142201
monitor_port = /dev/cu.usbmodemA142201
monitor_speed = 115200
lib_deps = bodmer/TFT_eSPI@^2.5.43

When I build and upload this, it resets in tft.init() on all of my TFT S3 Feather Adafruit boards. Any ideas?

@Basitadam
Copy link

Basitadam commented Nov 30, 2024

Can you add this line to your setup file

 #define USE_HSPI_PORT

or this to build flags:

 -D USE_HSPI_PORT

and test again

@davepl
Copy link
Author

davepl commented Dec 1, 2024

That fixed it. The pragmatist in me says "Holw cow, thanks!". The programmer in me asks "WTF is that all bout then?"

@Basitadam
Copy link

Tells the library which SPI port of S3 to use. Was not needed before but something changed in esp-idf library, now it is needed

@sjorsvr
Copy link

sjorsvr commented Dec 1, 2024

When you have an SD card connected as well in your project, like mine, and use the SD library the code will crash. The S3 will not reboot anymore but when creating f.e. a new folder on the card the code will crash. So the line above is just a temporary solution for some cases. Hope that Bodmer will have some time to fix this issue. A real number of issues reported seem to concern the same problem : reboot at tft_init.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants