ERROR with ARDUINO MEGA 2560!

Hello everyone,
I've been using the Arduino MEGA2560 and I am learning to use (using the 1.8.16 IDE) but, just now, I've encountered this issue:

Arduino:1.8.16 (Linux), Tarjeta:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

El Sketch usa 1536 bytes (0%) del espacio de almacenamiento de programa. El máximo es 253952 bytes.
Las variables Globales usan 9 bytes (0%) de la memoria dinámica, dejando 8183 bytes para las variables locales. El máximo es 8192 bytes.
avrdude: verification error, first mismatch at byte 0x036c
0xb8 != 0xf8
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch

The message appears every time I try to upload any kind of program to the Arduino so I think it's a board problem.
If you have any suggestions or need more information please reply!

Try another USB cable maybe?

As is new board, I have only one USB. But, is there any other option?

I think it's strange that it says "The Sketch uses 1536 bytes (0%) ..."

Are you saying that you have previously used the Mega without any issue, or did it show this problem out of the box?

I think it's strange that it says "The Sketch uses 1536 bytes (0%) ..."

What sketch are you trying to load?

I've written a very simple example, as follow:

void setup() {
pinMode(13, OUTPUT); // put your setup code here, to run once:
}

void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000); // put your main code here, to run repeatedly:
}

The sketch uses less than 1% of the available flash. It could simply be due to the way the integer percentage is reported.

Maybe it could be related to the port settings? Because when I want to select the port option it only appears in Tools> Ports> "dev / USBo"

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