logo elektroda
logo elektroda
X
logo elektroda

ESP32 Upload Fails After Multiple Attempts, No Output in Arduino IDE Monitor

Atypowy256 1728 9
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20069700
    Atypowy256
    Level 3  
    Hello,
    I've encountered quite a problem with my ESP32, which after a few uploads of IDE code stopped uploading it. I found some cool code on the internet which I changed a bit. I changed this code maybe 5 times and it kept uploading, and the 6th time it got "offended" and I can't upload it.
    I haven't changed anything in the settings, the cable is good, I only have one diode connected to the esp.
    Additionally, when I turn on the Monitor in the arduino IDE it doesn't display anything, where the earlier code should work.
    Error:
    esptool.py v3.3
    Serial port COM7
    Connecting.....................................An error occurred while loading the sketch

    Pressing the BOOT/EN button does not do anything. Uploading the code worked immediately.

    Please help!
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 20069734
    pier
    Level 24  
    Atypowy256 wrote:
    Hello,
    I've encountered quite a problem with my ESP32, which has stopped uploading IDE code after a couple of uploads. I found some cool code on the internet which I changed a bit. I changed this code maybe 5 times and it kept uploading, and the 6th time it got "offended" and I can't upload it.
    I haven't changed anything in the settings, the cable is good, I only have one diode connected to the esp.
    Additionally, when I turn on the Monitor in the arduino IDE it doesn't display anything, where the earlier code should work.
    Error:
    esptool.py v3.3
    Serial port COM7
    Connecting.....................................An error occurred while loading the sketch

    Pressing the BOOT/EN button does not do anything. Uploading the code worked immediately.

    Please help!
    .

    Uploading code to the ESP32 always involves pressing a button at the right time.
  • ADVERTISEMENT
  • #3 20069769
    jack63
    Level 43  
    pier wrote:
    Uploading code to the ESP32 always involves pressing a button at the right time.

    And this is interesting. I have "uploaded" many times on the devkit board and pressed nothing, although the button is there.
    I suggest waiting for colleague khoam to comment. He is probably the best ESP expert on Elektroda.
    For my part, I suggest to look for and check the esptool logs after a failed program upload operation.
  • ADVERTISEMENT
  • #4 20069783
    pier
    Level 24  
    jack63 wrote:
    pier wrote:
    Uploading code to the ESP32 always involves pressing a button at the right time.

    And this is interesting. I have "uploaded" many times on the devkit board and pressed nothing, although the button is there.
    I suggest waiting for colleague khoam to comment. He is probably the best ESP expert on Elektroda.
    For my part, I suggest to look for and check the esptool logs after a failed program upload operation.


    I, on the other hand, have not uploaded anything without pressing the button.
  • #5 20070080
    Atypowy256
    Level 3  
    pier wrote:
    I, on the other hand, did not upload anything without pressing a button.
    .
    In my case nothing had to be clicked, everything happened automatically. I thought about using a USB-UART converter and connecting the rx and tx to the ESP, but I don't know if that has the right to work.
  • #6 20070133
    khoam
    Level 42  
    pier wrote:
    Uploading code to the ESP32 always involves pushing a button at the right time.

    Unless there is an autoreset circuit on the board, which is rather rare, but found in simpler and 'economical' solutions.

    ESP32 Upload Fails After Multiple Attempts, No Output in Arduino IDE Monitor

    @Atypowy256 I would suggest clearing the ESP32 flash first. You can use Flash Download Tools for this: Link
  • #7 20071165
    Atypowy256
    Level 3  
    khoam wrote:
    @Atypowy256 I suggest you first clean the ESP32 flash. You can use Flash Download Tools for this: link
    .
    If I did it right, it didn't do anything. Further the program does not want to upload.
  • ADVERTISEMENT
  • #8 20071171
    khoam
    Level 42  
    Atypowy256 wrote:
    If I got it right, it did nothing.
    .
    If the flash cleanup was successful, then the problem is not likely to be with the ESP32 board, but with the settings in the Arduino IDE.
  • #9 20071424
    Atypowy256
    Level 3  
    khoam wrote:
    If the flash cleanup was successful, the problem is not likely to be with the ESP32 board, but with the settings in the Arduino IDE.
    .
    An error pops up (pic).
    ESP32 Upload Fails After Multiple Attempts, No Output in Arduino IDE Monitor .
  • #10 20216820
    zi.ko
    Level 26  
    If the monitor does not display any data from the ESP after a reset, I would look for a fault in the connection or failure of the UART, ultimately the ESP itself.

Topic summary

The discussion revolves around an issue with uploading code to an ESP32 device using the Arduino IDE. The user reports that after several successful uploads, the device fails to upload new code, displaying an error related to the esptool.py and not providing any output in the IDE monitor. Various responses suggest troubleshooting steps, including checking the timing of button presses during uploads, examining esptool logs, and ensuring proper connections. Some users mention the possibility of an autoreset circuit and recommend clearing the ESP32 flash memory using Flash Download Tools. If the monitor remains unresponsive, it is advised to check for connection faults or potential hardware failures.
Summary generated by the language model.
ADVERTISEMENT