Author Topic: Verification error  (Read 3496 times)

Viktor

  • Newbie
  • *
  • Posts: 4
    • View Profile
Verification error
« on: September 18, 2014, 05:29:55 PM »
Hi,

I am quite new to Arduino and started playing around with the Balanduino yesterday.  When I try to upload a new program all I get is the  following error:

"avrdude: verification error, first mismatch at byte 0x0000 0x14 != 0x0c avrdude: verification error; content mismatch".

The program in the memory works just fine, but I can no longer upload any new programs (not even the original one). This happened as I tested to read the serial data stream into Matlab.

Any idea of how I can solve this issue?

Lauszus

  • Administrator
  • Full Member
  • *****
  • Posts: 132
    • View Profile
Re: Verification error
« Reply #1 on: September 19, 2014, 03:59:49 AM »
Hi Viktor,

I am very sorry to hear that! Can you try to just upload the following example:

Code: [Select]
uint8_t led = LED_BUILTIN;

void setup() {
  pinMode(led, OUTPUT);
}

void loop() {
  digitalWrite(led, HIGH);
  delay(100);
  digitalWrite(led, LOW);
  delay(100);
}

And then tell me if you are able to upload it?

Regards
Lauszus

Viktor

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Verification error
« Reply #2 on: September 19, 2014, 08:08:33 AM »
I get the same error for all programs, including the one you suggested.

I have tried to google this issue but I have not found any definite answer. Some people have suggested to press the reset button before uploading, but that has not worked out for me.

Is there any way to completely clear the memory or to determine if the memory is physically broken?

Viktor

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Verification error
« Reply #3 on: September 19, 2014, 08:49:31 AM »
Below is the verbose output (or at least parts of it...).

It seems that [14] is written all over the entire memory.


Code: [Select]
Sketch uses 1,254 bytes (0%) of program storage space. Maximum is 130,048 bytes.
Global variables use 11 bytes (0%) of dynamic memory, leaving 16,373 bytes for local variables. Maximum is 16,384 bytes.
/Users/studio/Desktop/Balanduino/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Users/studio/Desktop/Balanduino/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega1284p -carduino -P/dev/tty.usbserial-DN0069U5 -b115200 -D -Uflash:w:/var/folders/n3/_grnhfw96cj0brxr5r02cd2w0000gq/T/build8657860943554536716.tmp/sketch_sep18e.cpp.hex:i

avrdude: Version 6.0.1, compiled on Apr  3 2014 at 22:00:33
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Users/studio/Desktop/Balanduino/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/studio/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/tty.usbserial-DN0069U5
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
         AVR Part                      : ATmega1284P
         Chip Erase delay              : 55000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53

         Programmer Type : Arduino
         Description     : Arduino
avrdude: Send: A [41] . [80]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [81]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [05]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [82]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [98]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
         Hardware Version: 3
         Firmware Version: 5.0
avrdude: Send: A [41] . [84]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [85]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [86]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [87]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [89]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: Send: A [41] . [81]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [05]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [82]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: B [42] . [82] . [00] . [00] . [01] . [01] . [01] . [01] . [03] . [ff] . [ff] . [ff] . [ff] . [01] . [00] . [10] . [00] . [00] . [02] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: E [45] . [05] . [08] . [d7] . [a0] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: P [50]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: Send: u [75]   [20]
avrdude: Recv: . [14] . [1e] . [97] . [05] . [10]
################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9705
avrdude: reading input file "/var/folders/n3/_grnhfw96cj0brxr5r02cd2w0000gq/T/build8657860943554536716.tmp/sketch_sep18e.cpp.hex"
avrdude: writing flash (1254 bytes):

Writing | avrdude: Send: U [55] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: d [64] . [01] . [00] F [46] . [0c] . [94] . [8a] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [c6] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [0c] . [94] . [a9] . [00] . [b5] . [01] . [b8] . [01] . [ab] . [01] . [af] . [01] . [cf] . [01] . [cf] . [01] . [bc] . [01] . [c0] . [01] . [c6] . [01] . [ca] . [01] . [00] . [00] . [00] . [08] . [07] . [01] . [02] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [03] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [09] . [0a] . [00] . [00] . [01] . [02] . [04] @ [40] . [80] . [08] . [10] . [01] . [02] . [04] . [08] . [10]   [20] . [02] . [01] . [04] . [08] . [10]   [20] . [04] . [08] . [10]   [20] @ [40] . [80] . [01] . [02]   [20] @ [40] . [80] @ [40] . [80] . [04] . [04] . [02] . [04] . [04] . [02] . [02] . [01] . [01] . [01] . [01] . [01] . [01] . [03] . [03] . [04] . [04] . [04] . [04] . [03] . [03] . [03] . [03] . [03] . [03] . [02] . [02] . [02] . [02] . [02] . [01] . [01]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
##########avrdude: Send: U [55] . [80] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: d [64] . [01] . [00] F [46] . [00] . [00] " [22] . [00] % [25] . [00] ( [28] . [00] + [2b] . [00] . [00] . [00] ! [21] . [00] (and so on...)
avrdude: Recv: . [14]
avrdude: Recv: . [10]

...

########## | 100% 0.24s

avrdude: 1254 bytes of flash written
avrdude: verifying flash memory against /var/folders/n3/_grnhfw96cj0brxr5r02cd2w0000gq/T/build8657860943554536716.tmp/sketch_sep18e.cpp.hex:
avrdude: load data flash data from input file /var/folders/n3/_grnhfw96cj0brxr5r02cd2w0000gq/T/build8657860943554536716.tmp/sketch_sep18e.cpp.hex:
avrdude: input file /var/folders/n3/_grnhfw96cj0brxr5r02cd2w0000gq/T/build8657860943554536716.tmp/sketch_sep18e.cpp.hex contains 1254 bytes
avrdude: reading on-chip flash data:

Reading | avrdude: Send: U [55] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: t [74] . [01] . [00] F [46]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14]
avrdude: Recv: . [10]
##########avrdude: Send: U [55] . [80] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: t [74] . [01] . [00] F [46]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14] . [14]  (and so on....)
########## | 100% 0.27s

avrdude: avr_read(): skipping page 5: no interesting data
avrdude: avr_read(): skipping page (6-510): no interesting data
avrdude: avr_read(): skipping page 511: no interesting data
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0x14 != 0x0c
avrdude: verification error; content mismatch
avrdude: Send: Q [51]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]

avrdude done.  Thank you.
Code: [Select]

Lauszus

  • Administrator
  • Full Member
  • *****
  • Posts: 132
    • View Profile
Re: Verification error
« Reply #4 on: September 19, 2014, 11:21:42 PM »
Hmm that is strange. Do you know how to reburn the bootloader? It can easily be done if you have another Arduino running at 3.3V or a usbasp running at 3.3V?

Regards
Lauszus

Viktor

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Verification error
« Reply #5 on: September 25, 2014, 07:56:00 AM »
 I managed to reburn the boat loader using the USBasp. The Balanduino works fine now!

Lauszus

  • Administrator
  • Full Member
  • *****
  • Posts: 132
    • View Profile
Re: Verification error
« Reply #6 on: September 25, 2014, 10:35:32 PM »
Okay great! :)

Regards
Lauszus