0

I've recently been trying to make program using IRremote(library) in my Arduino IDE(v1.8.9), but whenever I hit the upload button this error message is returned

Sketch uses 7514 bytes (23%) of program storage space. Maximum is 32256 bytes. Global variables use 415 bytes (20%) of dynamic memory, leaving 1633 bytes for local variables. Maximum is 2048 bytes.

avrdude: verification error, first mismatch at byte 0x0002

0x5d != 0x62 avrdude: verification error; content mismatch

avrdude: verification error; content mismatch

I'm usingArduino UNO R3

This is the code I'm trying to run

    #include <IRremote.h>int RECV_PIN = 11;IRrecv irrecv(RECV_PIN);decode_results results;void setup(){  Serial.begin(9600);  irrecv.enableIRIn(); // Start the receiver}void loop(){  if (irrecv.decode(&results))    {     Serial.println(results.value, HEX);     irrecv.resume(); // Receive the next value    }}

Also, every other code(not using the IRremote library) uploads just fine without any errors.

askedMay 31, 2019 at 6:00
Tom's user avatar
1
  • Is it a genuine Arduino or a cheap Chinese knock-off?CommentedMay 31, 2019 at 9:04

1 Answer1

0

There can be power/connection problem or somehow the bootloader has been damaged.So

  • Check power
  • Check Connection

If there no problem found, then by using usbasp, avrisp, usbtinyisp, etc reflash the bootloader. I hope your problem will be solved.

answeredMay 31, 2019 at 20:26
Takiuddin Ahmed's user avatar

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.