Waveshare ESP32-S3-TOUCH-LCD-1.69 crash on tft.init() / PlatformIO - Arduino framework SOLVED! #3641
Replies: 4 comments 8 replies
-
Add this to your flags:
or
|
Beta Was this translation helpful? Give feedback.
-
.. and touch works flawlessly with |
Beta Was this translation helpful? Give feedback.
-
Glad you got everything work as well as touch, baught me a waveshare 2.8" touch st7796 last week. Over the weekend i tryd to mod the lvgl touch driver as not finding working library for CST328 touch, still have compiler errors as compiler does not exept new struct values. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your input that solved my problem. the WaveShare site shows three versions of ESP32-S3-Touch-LCD-2.8 .. which one did you get ? how do you know it’s CST328 ? i can’t see that on the schematics and can only find this CST328 library online https://github.com/mmMicky/TouchLibESP32-S3-Touch-LCD-2.8 (ST7789 / waveshare.comESP32-S3-Touch-LCD-2.8 B:waveshare.comESP32-S3-Touch-LCD-2.8 C (round):waveshare.comJohnJohn Witherspoon(416) ***@***.*** Feb 3, 2025, at 1:38 AM, AnRich26 ***@***.***> wrote:waveshare 2.8" touch st7796
|
Beta Was this translation helpful? Give feedback.
-
Im wondering if someone can take a look at my code.
I've hit a brick wall with getting basic TFT_eSpi 'Hello World' to display on this board.
https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-1.69
This is an ST7789 & ESP32-S3. I cant get past tft_init().
Im using PlatformIO and the Arduino framework. My on-line research has not been successful.
"Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled."
PlatformIO.ini follows:
`; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
src_dir = src\printAndTFT_test
;src_dir = src\printTest
[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
upload_speed = 921600
monitor_speed = 115200
lib_deps =
; lvgl/lvgl @ 8.4.0
bodmer/TFT_eSPI @ ^2.5.43
SPI
FS
SPIFFS
build_flags =
-Os
;-DBOARD_HAS_PSRAM //PSRAM chip not found or not supported, or wrong PSRAM line mode
;-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
`
main.cpp follows
`#include <Arduino.h>
#include <TFT_eSPI.h>
TFT_eSPI tft = TFT_eSPI();
void setup() {
Serial.begin(115200);
Serial.printf("ms since start: %d\n",millis());
delay(7000);
Serial.printf("Setup.. %s\n\n",FILENAME);
tft.init();
tft.setRotation(1);
tft.fillScreen(TFT_BLACK);
tft.setCursor(0,0,4);
tft.setTextColor(TFT_WHITE);
tft.drawString("Hello World!...", 10, 10);
Serial.println ("Hello World!");
}
int count=0;
void loop() {
Serial.printf("%03d - tick - %d\n",count,millis());
count++;
delay(1000);
}`
Beta Was this translation helpful? Give feedback.
All reactions