IDE2.1 Mega 2560 download problems

Download program in the mega 2560 is not possible with new IDE 2.1. This is with an windows 11 laptop. An nano is no problem.

The same program downloading with an older laptop on windows 10 and IDE 1.8.13 is working well.
What can I do to solve this problem?

Hi @arduinodude08.

Please add a forum reply here that provides a detailed explanation of what you mean by this, including:

  • What did you do?
  • What were the results you expected from doing that thing?
  • What were the results you observed that did not match your expectations?

Make sure to include the full and exact text of any error or warning messages you might have encountered.

I have Arduino IDE2.2.1 Window 11 laptop.

An test with an Arduino nano:

Board: Arduino nano
Port com4
Processor: ATmega328P(Old Bootloader)
Programmer: AVRISP mk2

That works fine, no problem.

Now the Arduino Mega 2560:

Board: Arduino Mega or Mega 2560
Port com4
Processor: ATmega 2560 (Mega 2560)
Programmer: AVRISP, I have no programmer. I think this in in Arduino.

Result:

Sketch uses 5734 bytes (2%) of program storage space. Maximum is 253952 bytes.

Global variables use 252 bytes (3%) of dynamic memory, leaving 7940 bytes for local variables. Maximum is 8192 bytes.

Failed uploading: uploading error: exit status 1avrdude: ser_open(): can't open device "\\.\COM4": Toegang geweigerd.

avrdude: ser_drain(): read error: De ingang is ongeldig.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: De ingang is ongeldig.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: De ingang is ongeldig.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: De ingang is ongeldig.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: De ingang is ongeldig.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: De ingang is ongeldig.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: De ingang is ongeldig.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

The same sketch works fine with my old W10 laptop(I have test that), but not with my W11 laptop.



I have checkt the board, the cable, the comport, the driver.

Problem solved.
How it is done?

I have uploaded the simple "blink"sketch. And that worked.
Second I have copied the to upload sketch in the blink sketch and did the upload and it worked.

Is it possible that the route to the file to long is?
The new file is located in the arduino default folder.
So the board is not defect.

My problem is solved.

1 Like

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