Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
A new Arduino Mega (clone) when attempting to load a sketch produces this error message.

I have checked the board type, baud speed (115200)confirmed the correct port and loaded the sketch on another board with no issue.

Can any throw any light on this issue please.

Sketch uses 67841 bytes (26%) of program storage space. Maximum is 253952 bytes.
Global variables use 2101 bytes (25%) of dynamic memory, leaving 6091 bytes for local variables. Maximum is 8192 bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
Failed uploading: uploading error: exit status 1


What I have tried:

I have checked the board type, baud speed (115200)confirmed the correct port and loaded the sketch on another board with no issue.
Posted
Comments
raddevus 25-Aug-23 13:42pm    
Which OS are you running? There is a problem on Linux where you don't have access to the port, which shows up like this.
raddevus 25-Aug-23 13:45pm    
Also, there are numerous reasons this problem can occur and many of the differing solutions can be see on this StackOverflow => https://stackoverflow.com/questions/19645441/avrdude-stk500v2-receivemessage-timeout
CPallini 19-Dec-23 2:15am    
Is the 'other board' identical to the problematic one?

Well, either the board is not supported by the IDE you're using, the correct board hasn't been selected in the IDE, the board is not on the port you're telling the IDE it's on, the USB cable is bad, or the board has insufficient power, or the board is bad.

Other than that, there is nothing else to go on.
 
Share this answer
 
Comments
Nigel Badley 25-Aug-23 12:43pm    
Thank you for your response, I have set;ected the right board and as I said checked the correct port and loaded a sketch to another board with out issue, using the same cable.

The supplier is now sending a replacement board so hopefully the issue will be solved, unless its a bad batch :(
There is, apparently an issue with the latest iOS updates where it blocks non iOS drivers.

I got a replacement board which worked initially but after the update does noting the port.

A web search indicates this is a known issue with various options of remedial programming to resolve the issue.

To be continued 🤔

Thanks for your responses.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900