HMI 3.5". Failed to Connect to ESP32; No serial data received

I am trying to upload first sketch from tutorial to HMI 3.5" v1 and getting this error:
A fatal error occurred: Failed to connect to ESP32: No serial data received.
Failed uploading: uploading error: exit status 2
Arduino IDE (v2.3.2) Board is set to "ESP32 Wrover Module" v.3.1.0 (latest). Port is connected properly, serial monitor works -- pre-installed program outputs touch coordinates, etc.
Please advise.

Comments

  • Dear @maxzorine ,
    There is no error in this program, it is a download error, it may be a serial port or USB connection problem, this error has nothing to do with the program.

    The error message "A fatal error occurred: No serial data received indicates that the Arduino IDE is unable to communicate with the ESP32 chip on your display. This could be due to several reasons, and here are some steps you can take to troubleshoot the issue:

    1.lowering the baud rate:Refer to this forum link
    A fatal error occurred: https://forum.elecrow.com/index.php?p=/discussion/783

    2.Check Connections: Ensure that the ESP32 is properly connected to the display and that all connections are secure.

    3.Power Supply: Make sure the ESP32 is receiving adequate power. Sometimes, insufficient power can cause communication issues.

    4.Reset the Board: Try resetting the ESP32 board by pressing the reset button or by powering it off and on again.

    5.Change USB Port: Try a different USB port on your computer, or use a different USB cable to rule out any issues with the cable or port.Change Serial Driver

    6.Flash Speed: In the Arduino IDE, go to Tools > Flash Speed and try a lower speed.

    7.Check for Conflicts: If you have other devices connected to your computer, they might be causing a conflict. Disconnect other devices and try again.

    8.Try Another Program: Does the other code compile and work properly

    If you have any further questions, please don't hesitate to let me know.

  • Referring to your previous suggestions:
    1. Baud rate of what? Serial monitor? Serial monitor is working correctly. So baud rate is set properly. I tried to change "upload speed" from default 921600 to higher values -- same error.
    2-5. Tried all that, and then tried on different computer. Same error
    6. Changed flash speed from 80 to 40 --- same error
    7. No conflicts shown in "Device manager". USB-SERIAL CH340 (COM6). Both computers recognize board with no issues.
    8. Tried different program, two lines of code, no serial monitor commands -- same error
    Please advise.

Sign In or Register to comment.