A fix for Arduino timeout problem: avrdude: stk500v2_ReceiveMessage(): timeout

Sdílet
Vložit
  • čas přidán 30. 06. 2020
  • avrdude: stk500v2_ReceiveMessage(): timeout, or
    avrdude: stk500v1_ReceiveMessage(): timeout
    This error is due to the bootloader not accepting the sketch upload.
    First ensure nothing else is using the serial port. If it still doesn't upload, it's probably a hardware fault on the reset line.
    This video shows one possible cure.
    It may work on other boards. You will have to find the reset capacitor - it connects the RESET switch to the USB chip's DTR pin (I wrongly said DTS in the video).
  • Věda a technologie

Komentáře • 43

  • @hansbebber6514
    @hansbebber6514 Před 2 lety +3

    Richard, you are really, really great!
    Having the same problem I changed the capacitor C4 according to your advice and...
    MY MEGA WORKS!!!

  • @stephenhookings1985
    @stephenhookings1985 Před rokem

    Super cool mate - thanks. I had bought various FTDI programmers, followed Nick Gammon's tips and trick - put a 100uF cap to the reset - but when I put the same cap over the C4 ... boom (or not) just works ... awesome! Rescued two crappy clones. Thanks!

  • @bloggerbert
    @bloggerbert Před 3 měsíci

    I will try the extra capacitor. Thanks for the tip!

  • @kkcsynzx6250
    @kkcsynzx6250 Před rokem

    My Arduino board says that it’s made in Italy
    I thinks it’s original
    It’s having the same problem
    But components are not labeled
    So how can I find the C4 capacitor help me please

  • @Eric-mn5ek
    @Eric-mn5ek Před 3 lety

    Thanks for this. I was looking for a bit for more information, this seems the most likely cause of my issue as well.

  • @gavintheobald4560
    @gavintheobald4560 Před rokem +1

    my issue was using a custom reset button, when unplugged it worked, but when plugged in it failed and got this error.
    Thanks !

  • @atihrot755
    @atihrot755 Před 7 měsíci

    Cheers. I have an Arduino Mega. I don't have a Ch340 input but an Atmega 8u2. The port is found, but the cod cannot be uploaded. Actually, the input programmer does not communicate with the main chip. Where can there be a problem? Thank you in advance for your help.

    • @richardlangner
      @richardlangner  Před 7 měsíci

      Check if you have the driver for the 8u2. It may be worth using Zadig as shown in my video 'Programming ATTiny85 with VSC and PlatformIO'. Please let me know how you get on.

  • @serkan.cetinkaya
    @serkan.cetinkaya Před 10 měsíci

    I tried but the usb cable was about to burn out and the card stopped signaling. I restored it but the problem persists.

  • @julianstriba3670
    @julianstriba3670 Před 2 lety

    Gracias, compre un Mega con chip Ch340 y subiendo el primer programa fallo, tenia un Arduino Uno quemado y le quite el condensador, se lo soldé encima del otro y funciono, buen video.

  • @c-sl8543
    @c-sl8543 Před 2 lety

    you my good sir are god sent thank you for the video ! the reset button trick worked for my upload

    • @richardlangner
      @richardlangner  Před 2 lety

      You are very welcome, I'm glad to be of some help.

    • @pragvanshsrivastava1664
      @pragvanshsrivastava1664 Před 2 lety +1

      explain me once i can't understand i bought a new mega first time and i don't want any distruction by myself so guide me please😁

  • @aubreymmotong9550
    @aubreymmotong9550 Před 2 lety

    Are we supposed to remove the 100n cap? or place a 100n. Kindly assist having the same issue.

    • @richardlangner
      @richardlangner  Před 2 lety +1

      As my faulty capacitor was open circuit I left it in and bridged it with another, but you can take the faulty one out if you are OK with SMD work. Please note this is only one possible cause of the problem. There may be other causes such as the USB port in use or selecting the wrong port.
      Thanks for your feedback.

    • @aubreymmotong9550
      @aubreymmotong9550 Před 2 lety

      @@richardlangner Thanks for the quick response, unfortunately i get the same error using and FTDI programmer. Any solutions on that?

  • @StealthScopes
    @StealthScopes Před 3 lety

    After this is it possible to extract data from the Arduino using a program like Putty?

  • @UnCoolDad
    @UnCoolDad Před 2 lety

    Could you use a ceramic cap? What voltage, and must it be in parallel, or should one remove the old one!

    • @richardlangner
      @richardlangner  Před 2 lety +1

      The ceramic SMD capacitor on my board was open circuit, so I left the old one in circuit and bridged it with another (physically larger) one. If you can manage to fit a disc ceramic, then it will have the same effect. You can of course simply hold it across without soldering it, just to see if it cures the problem. This capacitor is only one possible cause.

    • @richardlangner
      @richardlangner  Před 2 lety +1

      Capacitor must be at least 5v working, which they all are.

    • @UnCoolDad
      @UnCoolDad Před 2 lety

      @@richardlangner thank you for the reply. I shall give it a go, as this problem is doing my head in 😜 seems a bit odd that removing one 100nf capacitor and replacing it with another cured your issue. Perhaps the cap was faulty?

    • @richardlangner
      @richardlangner  Před 2 lety +1

      @@UnCoolDad The capacitor on the board was faulty (open circuit), which prevented the reset line being pulled low when you start to program the arduino.

    • @UnCoolDad
      @UnCoolDad Před 2 lety

      @@richardlangner so it may be best to test continuity on the capacitor first, and only replace if I find no continuity. The symptoms you describe are identical to mine - I was able to program it once, and now, nothing. Frustrating!

  • @krabit86
    @krabit86 Před 11 měsíci

    sorry, would you be willing to provide a wiring sample?

  • @enriquevarela8616
    @enriquevarela8616 Před 2 lety

    it works in arduino nano chinese clon .Thanks

  • @harithdeshan6607
    @harithdeshan6607 Před 2 lety

    Great!!!

  • @user-bf8se6dj9h
    @user-bf8se6dj9h Před rokem

    Спасибо заработало 👍

  • @kaiserindustries5567
    @kaiserindustries5567 Před 3 lety

    my original arduino does that. help

  • @paultownsend2154
    @paultownsend2154 Před 3 lety

    Sadly this did not fix my Mega clone

    • @richardlangner
      @richardlangner  Před 3 lety +1

      Obviously not the capacitor then, but the message indicates the Arduino is not in program mode. Try grounding the programming pin manually on boot-up.

    • @harithdeshan6607
      @harithdeshan6607 Před 2 lety

      @@richardlangner I want to try this, but I have no clue about it.

    • @richardlangner
      @richardlangner  Před 2 lety

      @@harithdeshan6607 Hi Harith, first check if your board gives the same message as I got. A good Arduino gives this message if the serial port is already open when you try to upload, so try disconnecting the USB plug and then reconnect. Ensure the serial port is selected correctly. You can try the reset button method if you think you can get the timing right, but it's tricky. If you can get a small capacitor, solder (or hold) it across the suspect one and try again. Try it, you have nothing to loose!
      Please note that there are other faults which cause the same symptoms. Good luck.