logo elektroda
logo elektroda
X
logo elektroda

ESP32-A fatal error occurred: Timed out waiting for packet header

damianniziol 864 11
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19965243
    damianniziol
    Level 4  
    Hello :sm9: , a few days ago two boards came to me from ali, one is ESP32-CAM the other ESP32 38 PIN.
    The ESP32-Cam board is not a problem, everything works, the sketch loads, connects to the wifi network and transmits the image. However, I have a problem with the second board, I can't upload a simple program there:

    Code: Arduino
    Log in, to see the code
    .

    In the console this information appears : .

    ESP32-A fatal error occurred: Timed out waiting for packet header .

    Tile settings:

    ESP32-A fatal error occurred: Timed out waiting for packet header .
    Pictures of the troublesome tile
    ESP32-A fatal error occurred: Timed out waiting for packet header .
    ESP32-A fatal error occurred: Timed out waiting for packet header ESP32-A fatal error occurred: Timed out waiting for packet header

    Picture of working board

    ESP32-A fatal error occurred: Timed out waiting for packet header .

    I'm also not sure how to unambiguously determine the type of this board , it's hard to find another board like it in this configuration with the same circuit layout. In the auction it was only referred to as , "ESP-32 38 PINS."

    It is the third day that I am looking for information to solve this problem, but without success. I have seen on youtube and various forums ways that some people connect condensers or resistors under specific pins and this helps some to upload the sketch. I've also tried doing this but I'm not sure if I've connected to the right pins. I've also tried selecting different boards from the board manager in arduino but it's still the same.
    I don't know what I can do anymore on this topic so this is my first post on a forum (of any kind), so please understand :P I'm asking for help that maybe someone smarter can do something about it :) .
    Greetings !

    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 19965254
    khoam
    Level 42  
    damianniziol wrote:
    Tile settings:
    .
    They are wrong, it is not WROVER. It should be e.g. ESP32 Dev Module.

    damianniziol wrote:
    In the auction it was only specified as , "ESP-32 38 PINS."
    .
    This is ESP32-DevKitC.

    damianniziol wrote:
    On youtube and in various forums I have seen ways that some people connect condensers or resistors to specific pins and this helps some upload the sketch.

    It would be better if they offered spellchecking - potentially less dangerous :)
  • ADVERTISEMENT
  • #3 19965262
    damianniziol
    Level 4  
    .
    When changing to:
    ESP32-A fatal error occurred: Timed out waiting for packet header

    Further it is the same :
    ESP32-A fatal error occurred: Timed out waiting for packet header










    .
  • ADVERTISEMENT
  • #4 19965268
    khoam
    Level 42  
    Try it on the settings as below:

    ESP32-A fatal error occurred: Timed out waiting for packet header .
  • #5 19965273
    damianniziol
    Level 4  
    After the change to : ESP32-A fatal error occurred: Timed out waiting for packet header .

    It continues as follows: ESP32-A fatal error occurred: Timed out waiting for packet header
  • ADVERTISEMENT
  • #6 19965280
    khoam
    Level 42  
    Then press the "BOOT" button before uploading the programme and only release it when the programme loading has finished.
  • #7 19965292
    damianniziol
    Level 4  
    It is exactly the same as before : ESP32-A fatal error occurred: Timed out waiting for packet header

    Added after 4 [minutes]:

    I can also add that after pressing the button, RST, once, the port monitor displays such information (then the LED on the board flashes) : ESP32-A fatal error occurred: Timed out waiting for packet header .

    And after pressing "Boot" once (the led goes out) and the following is displayed : ESP32-A fatal error occurred: Timed out waiting for packet header
  • #8 19965312
    khoam
    Level 42  
    This is some kind of cable or USB port problem, but it is also possible that the board is faulty. From the picture, it appears that the bootloader itself is loaded, and then there is a "hang" when trying to load the actual program.
    What you can still try to do is to erase all the flash in the ESP. This can be done using the Flash Download Tool: Link .

    EDIT: direct link to Flash Download Tool: Link
  • #9 19965391
    damianniziol
    Level 4  
    Should the programme spit out any information, a message, when the "ERASE" button is clicked?

    Added after 9 [minutes]:

    In Thonny there is an option to clean the flash before uploading firmware and when it comes to cleaning, after a long time it spits out an error, I also tried with "boot" pressed but the same :
    ESP32-A fatal error occurred: Timed out waiting for packet header .

    Added after 2 [minutes]:

    As for the USB I have tried with all of them on both laptops one on win 10 the other on win 7 and it is the same, and as for the cable I can try with another one but at the moment I don't have another one.
  • #10 19965447
    khoam
    Level 42  
    damianniziol wrote:
    In Thonny there is an option to clean flesh before uploading firmware
    .
    Try with the "Dual I/O" and "Dual Output" options. It's also worth trying on a different USB cable, but not one just for charging your mobile phone.
  • #11 19965472
    damianniziol
    Level 4  
    I also tried with these two options and still the same, tomorrow I will try to get a second cable and let you know if anything has changed.
  • #12 19967042
    damianniziol
    Level 4  
    With the new cable it is the same, still error ;(

Topic summary

The discussion revolves around an issue with uploading a program to an ESP32 38 PIN board, while an ESP32-CAM board functions correctly. The user encounters a "Timed out waiting for packet header" error during the upload process. Various troubleshooting steps are suggested, including changing board settings, pressing the "BOOT" button during upload, and checking USB cables and ports. Recommendations also include using the Flash Download Tool to erase the flash memory and trying different I/O settings. Despite these efforts, the user continues to face the same error, indicating potential hardware issues with the board or cable.
Summary generated by the language model.
ADVERTISEMENT