Possible work around for compiling error avrdude / atk500

new too the form so i thought i would exsplain the experiences i have been receving from the above irritating error.

it first started when i updated too the latest ardunio IDE which caused all the issues , all the above upload issues. which it would appear many people are having...
avrdude missing , blablabla atk500 such and such....
i had to replace the conf file as that went missing too (annoying)

so i connected my gen uno3 too my other laptop which had an early version the IDE , 2.01 as exspected it worked no isssue. so i burned some random code and it worked no problem still.
i installed a early version on the laptop i want to work with my gen r3... and it worked fine , it would upload no issue and it thought it was cured. , reinstalled the latest version , and it still worked.
then following day. turned my laptop on , and it stopped working.... again ( give me strength)
did the usual checking all the relevent
i then moved onto trying a clone (elegoo r3) , and it worked no issue ? wierd... , this is where i noticed that when i connected the clone it was assigned a com port straight away. which was inuse? wierd....
so i looked again and it assigned the same com port.... i restarted the computer without the elegoo attached the same com port was still in use. , so i relesed all the com ports. and then tried again.

navigate too this page and read through this it might work for you..
https://soldered.com/learn/how-to-clear-or-reset-com-ports/

and hay prestro its working once again.... i'll try again tomorrow and see if it continues , but i think there is a confict going on and this is why that the errors is accuring. this could be the issue others are getting too.

if this worked for you let me know..

That's really great error description.

In a computer world you have to be thorough. I have to check the atk500 before start writing the answer. First I thought it is some new avrdude protocol I'd never seen before. Turns out it supposed to be stk500, right?

Post the error from the log, in a text form, also your OS type and version.

ughh... that will teach me for not proof reading what i typed in... i'll blame it on the time i wrote it!
win version Windows 10 Enterprise , and yes STK500.

and as of today (sat 05/08/2023 @ 12.44 afternoon) , i compiled a small LED flashing program and it still works as it should after a shutdown.

Make sure nothing in OS take control over the COM port and block its use in IDE: antivirus, firewall etc.

in this paticular instance there was no need to mention a firewall as it would appear that it had nothing to do with it.

as i mentioned , for some reason the com ports where being held even when nothing was being connected. when i released them all it worked. i think what was happening is either STK500 and the avrdude.exe , where being held by the com port. , i have no idea why but it would appear that it worked no issue after releasing them.

I am still amazed that even after decades Windows still has problems managing COM ports. It was much worse in "the old days", so they are getting better.

Hard to say what is the problem now from my point of view that it is working now and previously not. STK500 is just one of the many protocols which avrdude can operate with. Avrdude is a tool (program) called by Arduino IDE to upload compiled sketch to the board. I'd never seen the error message since you've never posted one. There is a set of usual problems and my recommendation is just reflecting them.
I'm just trying to help as many other experts here on the forum. I have some experience in a field but I can also be wrong. It happens sometime. Anyhow, I am trying do my best.

its quite a common problem which is googled for.

before i signed up on here i was googling it too , and performing pretty much all the relevant checks i would need to do , such as ensuring the board has been selected. , ensuring the board is being seen , performing the rx-tx test etc etc. , nothing would work. , so i figured maybe the people who have come across the same issue maybe this method could work. for them too

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.