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.
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.