ESP32-S3 TFT Hello World Not Printing

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
nh1628
 
Posts: 18
Joined: Thu Apr 27, 2023 12:09 pm

ESP32-S3 TFT Hello World Not Printing

Post by nh1628 »

Hello,

I am using Platform IO as my IDE and I am trying to debug my ESP32 by running a simple hello world program.

I have successfully run it and seen the output in PIO's serial monitor on an Uno, however, I am not seeing the same result with the ESP32.

The ESP32 says it has successfully compiled and uploaded the code (same code as on the Arduino Uno) however I am not seeing any output from the ESP32.

The code I am using is:

Code: Select all

#include <Arduino.h>

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("Hello World!");
}
With this result from uploading to the ESP32 in the terminal:

Code: Select all

Looking for upload port...
Auto-detected: COM10
Forcing reset using 1200bps open/close on port COM10
Waiting for the new upload port...
Uploading .pio\build\adafruit_feather_esp32s3_tft\firmware.bin
esptool.py v4.5.1
Serial port COM9
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:59:a9:e0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x002d0000 to 0x002fdfff...
Flash will be erased from 0x00010000 to 0x00053fff...
Compressed 22656 bytes to 14254...
Writing at 0x00000000... (100 %)
Wrote 22656 bytes (14254 compressed) at 0x00000000 in 0.5 seconds (effective 385.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 136...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (136 compressed) at 0x00008000 in 0.1 seconds (effective 412.5 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 562.0 kbit/s)...
Hash of data verified.
Compressed 185328 bytes to 119268...
Writing at 0x002d0000... (12 %)
Writing at 0x002d7894... (25 %)
Writing at 0x002de62b... (37 %)
Writing at 0x002e5223... (50 %)
Writing at 0x002eadb8... (62 %)
Writing at 0x002f07bf... (75 %)
Writing at 0x002f5829... (87 %)
Writing at 0x002fb81e... (100 %)
Wrote 185328 bytes (119268 compressed) at 0x002d0000 in 2.5 seconds (effective 585.8 kbit/s)...
Hash of data verified.
Compressed 274880 bytes to 156595...
Writing at 0x00010000... (10 %)
Writing at 0x0001c4fd... (20 %)
Writing at 0x000246ca... (30 %)
Writing at 0x00029cd6... (40 %)
Writing at 0x0002f029... (50 %)
Writing at 0x000342ad... (60 %)
Writing at 0x0003a5f1... (70 %)
Writing at 0x00044c81... (80 %)
Writing at 0x0004a2a2... (90 %)
Writing at 0x0004fe0f... (100 %)
Wrote 274880 bytes (156595 compressed) at 0x00010000 in 3.3 seconds (effective 658.8 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
================================================================================================= [SUCCESS] Took 39.41 seconds =================================================================================================
 *  Terminal will be reused by tasks, press any key to close it. 
However, in the serial monitor this is all I see:

Code: Select all

Executing task in folder Test Project: C:\Users\n\.platformio\penv\Scripts\platformio.exe device monitor 

--- Terminal on COM9 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://BANNED/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: ESP32-S3 TFT Hello World Not Printing

Post by mikeysklar »

Here is how to get started with using the TFT with the Arduino IDE. Once you have success there with the library and sample code you can then move on to make it all go with Platform IO. This sample code was designed for the ESP32-S3 Feather TFT, but also works with the reverse model.

https://learn.adafruit.com/esp32-s3-rev ... ilt-in-tft

User avatar
nh1628
 
Posts: 18
Joined: Thu Apr 27, 2023 12:09 pm

Re: ESP32-S3 TFT Hello World Not Printing

Post by nh1628 »

mikeysklar wrote: Mon May 15, 2023 7:17 pm Here is how to get started with using the TFT with the Arduino IDE. Once you have success there with the library and sample code you can then move on to make it all go with Platform IO. This sample code was designed for the ESP32-S3 Feather TFT, but also works with the reverse model.

https://learn.adafruit.com/esp32-s3-rev ... ilt-in-tft
Hi Mike, Arduino IDE doesn't seem to work for me as when I try and install the board in board manager by using the links supplied by adafruit and espressif, it is never able to download the board's associated files.

Also, I've just tried this test program in platformIO and I've installed the following libraries, Adafruit BusIO, Adafruit GFX Library, Adafruit ST7735 and ST7789, and Adafruit seesaw, however, I am still getting this error when compiling.

Code: Select all

src/main.cpp: In function 'void setup()':
src/main.cpp:55:3: error: 'testdrawtext' was not declared in this scope
   testdrawtext(
   ^~~~~~~~~~~~
src/main.cpp:55:3: note: suggested alternative: 'mbstate_t'
   testdrawtext(
   ^~~~~~~~~~~~
   mbstate_t
src/main.cpp:66:3: error: 'tftPrintTest' was not declared in this scope
   tftPrintTest();
   ^~~~~~~~~~~~
src/main.cpp:66:3: note: suggested alternative: 'tft8bitbus'
   tftPrintTest();
   ^~~~~~~~~~~~
   tft8bitbus
src/main.cpp:74:3: error: 'testlines' was not declared in this scope
   testlines(ST77XX_YELLOW);
   ^~~~~~~~~
src/main.cpp:78:3: error: 'testfastlines' was not declared in this scope
   testfastlines(ST77XX_RED, ST77XX_BLUE);
   ^~~~~~~~~~~~~
src/main.cpp:81:3: error: 'testdrawrects' was not declared in this scope
   testdrawrects(ST77XX_GREEN);
   ^~~~~~~~~~~~~
src/main.cpp:84:3: error: 'testfillrects' was not declared in this scope
   testfillrects(ST77XX_YELLOW, ST77XX_MAGENTA);
   ^~~~~~~~~~~~~
src/main.cpp:88:3: error: 'testfillcircles' was not declared in this scope
   testfillcircles(10, ST77XX_BLUE);
   ^~~~~~~~~~~~~~~
src/main.cpp:89:3: error: 'testdrawcircles' was not declared in this scope
   testdrawcircles(10, ST77XX_WHITE);
   ^~~~~~~~~~~~~~~
src/main.cpp:92:3: error: 'testroundrects' was not declared in this scope
   testroundrects();
   ^~~~~~~~~~~~~~
src/main.cpp:95:3: error: 'testtriangles' was not declared in this scope
   testtriangles();
   ^~~~~~~~~~~~~
src/main.cpp:98:3: error: 'mediabuttons' was not declared in this scope
   mediabuttons();
   ^~~~~~~~~~~~
src/main.cpp:98:3: note: suggested alternative: 'sbttons'
   mediabuttons();
   ^~~~~~~~~~~~
   sbttons
*** [.pio\build\adafruit_feather_esp32s3_tft\src\main.cpp.o] Error 1

User avatar
nh1628
 
Posts: 18
Joined: Thu Apr 27, 2023 12:09 pm

Re: ESP32-S3 TFT Hello World Not Printing

Post by nh1628 »

It seems like PlatformIO is uploading successfully "supposedly" but the board itself isn't responding to any change, even with a simple blink test.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: ESP32-S3 TFT Hello World Not Printing

Post by mikeysklar »

I'll help you on the Arduino side, but you are on your own for Platform IO issues.

What is the error you are encountering when setting up the boards support files and necessary libraries? Which version of the Arduino IDE are you using?

User avatar
nh1628
 
Posts: 18
Joined: Thu Apr 27, 2023 12:09 pm

Re: ESP32-S3 TFT Hello World Not Printing

Post by nh1628 »

mikeysklar wrote: Tue May 16, 2023 6:49 pm I'll help you on the Arduino side, but you are on your own for Platform IO issues.

What is the error you are encountering when setting up the boards support files and necessary libraries? Which version of the Arduino IDE are you using?
I ended up switching computers and it seems like there's a permissions issue when trying to add the custom boards using this link in preferences: https://raw.githubusercontent.com/espre ... index.json.

When I switched computers it seems to work and install now, however, the com ports seem to not communicate. I only have a com1 and a com4 and it doesn't work on either when trying to upload.
^
I resolved this by the following:
Press and hold BOOT button
Press and release EN button
Release BOOT button
Hit Upload in the arduino IDE

However I am still not seeing any response from the Arduino. I'm starting to wonder if this would be an issue with the ESP32-S3 TFT module.

The only time that I have seen anything successfully run on the board is the factory reset .ini file from the Adafruit website that displays the voltage and battery voltage.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: ESP32-S3 TFT Hello World Not Printing

Post by mikeysklar »

You are making good progress.

Your controller and display are fine if they work with the factory reset.

I grabbed my ESP32-S3 TFT and uploaded the example code found in the Arduino IDE:

File > Adafruit ST7735 and ST7789 Library > graphicstest_feather_esp32s2_tft

It compiled and ran fine. The only caveat was after upload I needed to press the 'reset' button so the program would start executing.

I am on a MacOS machine running Ventura with the following:

Arduino IDE 2.1.0

Code: Select all

Using library Adafruit GFX Library at version 1.11.5 in folder: /Users/mikeysklar/Documents/Arduino/libraries/Adafruit_GFX_Library 
Using library Adafruit BusIO at version 1.14.1 in folder: /Users/mikeysklar/Documents/Arduino/libraries/Adafruit_BusIO 
Using library Wire at version 2.0.0 in folder: /Users/mikeysklar/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7/libraries/Wire 
Using library SPI at version 2.0.0 in folder: /Users/mikeysklar/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7/libraries/SPI 
Using library Adafruit ST7735 and ST7789 Library at version 1.10.0 in folder: /Users/mikeysklar/Documents/Arduino/libraries/Adafruit_ST7735_and_ST7789_Library

User avatar
nh1628
 
Posts: 18
Joined: Thu Apr 27, 2023 12:09 pm

Re: ESP32-S3 TFT Hello World Not Printing

Post by nh1628 »

mikeysklar wrote: Wed May 17, 2023 5:19 pm You are making good progress.

Your controller and display are fine if they work with the factory reset.

I grabbed my ESP32-S3 TFT and uploaded the example code found in the Arduino IDE:

File > Adafruit ST7735 and ST7789 Library > graphicstest_feather_esp32s2_tft

It compiled and ran fine. The only caveat was after upload I needed to press the 'reset' button so the program would start executing.

I am on a MacOS machine running Ventura with the following:

Arduino IDE 2.1.0

Code: Select all

Using library Adafruit GFX Library at version 1.11.5 in folder: /Users/mikeysklar/Documents/Arduino/libraries/Adafruit_GFX_Library 
Using library Adafruit BusIO at version 1.14.1 in folder: /Users/mikeysklar/Documents/Arduino/libraries/Adafruit_BusIO 
Using library Wire at version 2.0.0 in folder: /Users/mikeysklar/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7/libraries/Wire 
Using library SPI at version 2.0.0 in folder: /Users/mikeysklar/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7/libraries/SPI 
Using library Adafruit ST7735 and ST7789 Library at version 1.10.0 in folder: /Users/mikeysklar/Documents/Arduino/libraries/Adafruit_ST7735_and_ST7789_Library
Well this seemed to work, thank you so much for the help!

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: ESP32-S3 TFT Hello World Not Printing

Post by mikeysklar »

Cool. Glad to hear you are up and running.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”