A fix for Arduino timeout problem: avrdude: stk500v2_ReceiveMessage(): timeout
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
Richard, you are really, really great!
Having the same problem I changed the capacitor C4 according to your advice and...
MY MEGA WORKS!!!
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!
I will try the extra capacitor. Thanks for the tip!
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
Thanks for this. I was looking for a bit for more information, this seems the most likely cause of my issue as well.
Glad it helped you
my issue was using a custom reset button, when unplugged it worked, but when plugged in it failed and got this error.
Thanks !
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.
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.
I tried but the usb cable was about to burn out and the card stopped signaling. I restored it but the problem persists.
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.
I am very pleased to be of some help to you.
you my good sir are god sent thank you for the video ! the reset button trick worked for my upload
You are very welcome, I'm glad to be of some help.
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😁
Are we supposed to remove the 100n cap? or place a 100n. Kindly assist having the same issue.
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.
@@richardlangner Thanks for the quick response, unfortunately i get the same error using and FTDI programmer. Any solutions on that?
After this is it possible to extract data from the Arduino using a program like Putty?
Yes
Could you use a ceramic cap? What voltage, and must it be in parallel, or should one remove the old one!
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.
Capacitor must be at least 5v working, which they all are.
@@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?
@@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.
@@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!
sorry, would you be willing to provide a wiring sample?
Sure.
it works in arduino nano chinese clon .Thanks
Great!!!
Спасибо заработало 👍
my original arduino does that. help
Just follow the video
Sadly this did not fix my Mega clone
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.
@@richardlangner I want to try this, but I have no clue about it.
@@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.