Xinyuan-LilyGO / T-Display-S3

MIT License
733 stars 174 forks source link

Serial Monitor displays nothing. #126

Closed igoralves1 closed 1 year ago

igoralves1 commented 1 year ago

I bought a LilyGo Soldered pin S3 board no touch screen. I am using Mac Monterey 12.6.3 M1 and Arduino IDE 2.0.5. I am using the example arduino_gfx_demo to test the board. If we analyse the code in the file arduino_gfx_demo.ino in the line 21 we should expect the output Hello T-Display-S3 in the Arduino-IDE Serial Monitor. When I upload the code I can see all the printnice output in the T-Display but I cant see the Serial.println("Hello T-Display-S3"); in the Serial Monitor. I also tried to display in the terminal using the ls /dev/tty.* to identify the boad port and the screen /dev/tty.usbmodem2101 to display the serial monitor info.

I am following all the settings suggested in the README.md > correct settings in the Tools menu but I see nothing. No displays.

Is there any process that is publishing all outputs to the board screen?

teastainGit commented 1 year ago

Have you displayed serial on this board with a simpler sketch!?

igoralves1 commented 1 year ago

No.

Screen Shot 2023-03-20 at 4 31 13 PM Screen Shot 2023-03-20 at 4 31 28 PM Screen Shot 2023-03-20 at 4 31 53 PM
teastainGit commented 1 year ago

OK, looks like a simple enough test sketch ;) I am using Arduino 2.0.4 not the beta nightly build. I am running ESP32 v2.0.6. I will try and duplicate your problem tonight. Sometimes I have to push the little reset button on the back and try toggling the serial controls to the right of the serial monitor, especially the “timestamp”.

teastainGit commented 1 year ago

I have an extensive LilyGO T-Display S3 GitHub repository with all the problems I (and others) have faced, here: https://github.com/teastainGit/LilyGO-T-display-S3-setup-and-examples They keep changing the setup config advice! Here is a screen shot from their ReadMe from December 2022: https://github.com/teastainGit/LilyGO-T-display-S3-setup-and-examples/blob/main/Arduino_Config.png The difference that I see that impacts Serial Monitor is this one: "USB DFU On Boot | Enabled" is the new setting. I'm not sure what it does but I have always followed the previous advice and "Disabled" Hope this helps, keep me informed! -Terry

lewisxhe commented 1 year ago

Have you turned on CDC? As shown below image

igoralves1 commented 1 year ago

@lewisxhe Yes I have the same configuration. It seems that the 2.0.5 has more variables but we have all the same values. Still not displaying

Screen Shot 2023-03-21 at 7 19 23 AM
igoralves1 commented 1 year ago

I'm not sure what it does but I have always followed the previous advice and "Disabled" Hope this helps, keep me informed! -Terry

@teastainGit set Disabled and it did not worked.

lewisxhe commented 1 year ago

I uploaded a firmware that displays and prints time stamps. Please try it out https://github.com/Xinyuan-LilyGO/T-Display-S3/tree/main/firmware

igoralves1 commented 1 year ago

I uploaded a firmware that displays and prints time stamps. Please try it out https://github.com/Xinyuan-LilyGO/T-Display-S3/tree/main/firmware

I see that you created some .bin and a batch with .exe inside. I am running in a MAC. Could you please make available the sketchs?

teastainGit commented 1 year ago

"> I uploaded a firmware that displays and prints time stamps. Please try it out https://github.com/Xinyuan-LilyGO/T-Display-S3/tree/main/firmware"

What does this firmware do? I asked in another Issue about the bootloader being protected in ROM and cannot be damaged. I thought that the only program in a board is the bootloader and your sketch? Thank you, Terry

lewisxhe commented 1 year ago

Sketch > https://github.com/Xinyuan-LilyGO/T-Display-S3/tree/main/example/TFT_Rainbow Install Esptool > https://github.com/RavenSystem/esp-homekit-devices/wiki/Install-ESPTool-on-macOS Flash Command In Mac : esptool --chip esp32s3 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin

Let you brush in the firmware I provided to see if this board works properly Now, don't you say you can't output any messages to Serial?

igoralves1 commented 1 year ago

@lewisxhe It is working. This is what I did:

  1. Installed ESPTOOL -> python3 -m pip install esptool
  2. CD to the firmware folder -> https://github.com/Xinyuan-LilyGO/T-Display-S3/tree/main/firmware
  3. Ran your code -> esptool --chip esp32s3 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin
  4. Rainbow is in the device screen
  5. Opened the ArduinoIDE in any project and connected to the board port
  6. Display millis is ok, as we can see in the picture.
Screen Shot 2023-03-23 at 8 46 29 AM
  1. opened a previous project simple hello world.
  2. uploaded it to to the board with the same configuration as 2 days ago
  3. Now I see hello world in the display.
Screen Shot 2023-03-23 at 8 57 01 AM
  1. And also can verify Serial.print from other projects.
Screen Shot 2023-03-23 at 9 03 54 AM

All is good but what is different now? What was the issue? The only different thing in my machine is that I have installed ESPTOOL but I think this is not what is making the difference. I will close the ticket. Thanks

LucaZiegler commented 1 year ago

@lewisxhe It is working. This is what I did:

  1. Installed ESPTOOL -> python3 -m pip install esptool
  2. CD to the firmware folder -> https://github.com/Xinyuan-LilyGO/T-Display-S3/tree/main/firmware
  3. Ran your code -> esptool --chip esp32s3 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin
  4. Rainbow is in the device screen
  5. Opened the ArduinoIDE in any project and connected to the board port
  6. Display millis is ok, as we can see in the picture.
Screen Shot 2023-03-23 at 8 46 29 AM
  1. opened a previous project simple hello world.
  2. uploaded it to to the board with the same configuration as 2 days ago
  3. Now I see hello world in the display.
Screen Shot 2023-03-23 at 8 57 01 AM
  1. And also can verify Serial.print from other projects.
Screen Shot 2023-03-23 at 9 03 54 AM

All is good but what is different now? What was the issue? The only different thing in my machine is that I have installed ESPTOOL but I think this is not what is making the difference. I will close the ticket. Thanks

Yes I now got an output, but with a new sketch not anymore.

LucaZiegler commented 1 year ago

OK ...found it .. for the Lilygo T-display S3 you have to set USB CDC on Boot "Enable".

igoralves1 commented 1 year ago

OK ...found it .. for the Lilygo T-display S3 you have to set USB CDC on Boot "Enable".

BTY It was activated from the beginning . See

igoralves1 commented 1 year ago

It seems that this error is related to another error that I posted https://github.com/Xinyuan-LilyGO/T-Display-S3/issues/138.

In the 138 issue AND maybe here, it seems that there is a physical issue with the flash memory. I had to replace the board and I bought another ESP32-S3 from another vendor.

The brand new LilyGO board and the other brand new board are still showing the same issues: sometimes it does not finishes the upload process (issue 138) and sometimes it still do not shows the output in the Serial Monitor.

Some times instructions suggested by @lewisxhe works, see this https://github.com/Xinyuan-LilyGO/T-Display-S3/issues/126#issuecomment-1478772413 it shows the output in the Serial Monitor, pressing the boot. But not all that times I have the firmware uploaded (issue 138).

All that is leading me to conclude that there is something in the software or in the OS MAC, not in the hardware

lewisxhe commented 1 year ago

Hi @igoralves1

From what you conclude it has something to do with your OS?

obejohn commented 12 months ago

I had a similar issue with a Lilygo T-QT ESP32-S3 board. Lewisxhe's suggestion to set USB CDC on boot to "Enabled" solved my issue. Interestingly, the issue wasn't evident when using the Seeed-XIAO-ESP32C3 or the Lilygo T Display boards, even with USB CDC on boot set to "Disabled". Go figure.

One difference between my settings (that worked) and igoralves1's settings is I don't have USB DFU on boot "Enabled".

A very BIG thank you to Lewisxhe for solving my issue.

My setup is a Windows 11 pc with Arduino 2.1.1 using the Esptool as the programmer.

Have you turned on CDC? As shown below image

avidX027 commented 3 months ago

Hi I came across this issue trying to print "Hello, world!" to serial monitor, my issue was resolved by setting USB CDC On Boot to "Enabled". Board : Lilygo T-QT ESP32-S3 OS : Windows 10 Arduino IDE Version : 2.3.2 Screenshot (1) Thank you.

summerfind commented 2 weeks ago

Hi. my T-Display S3 on Arduino IDE, works well only when serial monitor is open, if close it no luck, why so?

pjeantaud commented 1 week ago

In Tools, try "USB CDC on Boot » > Disabled

Le 19 juin 2024 à 04:42, xinzhou @.***> a écrit :

Hi. my T-Display S3 on Arduino IDE, works well only when serial monitor is open, if close it no luck, why so?

— Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/T-Display-S3/issues/126#issuecomment-2177433133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMAZUKKUNJU3ZBWEQYOEH3LZIDVYLAVCNFSM6AAAAAAWBJZLAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZXGQZTGMJTGM. You are receiving this because you are subscribed to this thread.