Arduino dock error



  • I've scanned through the forum for similar errors with the arduino dock but have not found anything helpful. Any assistance will be greatly appreciated. I get the same verification content mismatch error result flashing via IDE and via SSH. Here is a screen dump:

    root@Onion:~# sh /usr/bin/arduino-dock flash /root/sketch.hex
    > Flashing application '/root/sketch.hex' ...
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: Device signature = 0x1e950f
    avrdude: erasing chip
    avrdude: reading input file "0x3f"
    avrdude: writing lock (1 bytes):
    
    Writing | ################################################## | 100% 0.00s
    
    avrdude: 1 bytes of lock written
    avrdude: verifying lock memory against 0x3f:
    avrdude: load data lock data from input file 0x3f:
    avrdude: input file 0x3f contains 1 bytes
    avrdude: reading on-chip lock data:
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: verifying ...
    avrdude: 1 bytes of lock verified
    avrdude: reading input file "0x05"
    avrdude: writing efuse (1 bytes):
    
    Writing | ################################################## | 100% 0.00s
    
    avrdude: 1 bytes of efuse written
    avrdude: verifying efuse memory against 0x05:
    avrdude: load data efuse data from input file 0x05:
    avrdude: input file 0x05 contains 1 bytes
    avrdude: reading on-chip efuse data:
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: verifying ...
    avrdude: 1 bytes of efuse verified
    avrdude: reading input file "0xDA"
    avrdude: writing hfuse (1 bytes):
    
    Writing | ################################################## | 100% 0.00s
    
    avrdude: 1 bytes of hfuse written
    avrdude: verifying hfuse memory against 0xDA:
    avrdude: load data hfuse data from input file 0xDA:
    avrdude: input file 0xDA contains 1 bytes
    avrdude: reading on-chip hfuse data:
    
    Reading | ################################################## | 100% 0.01s
    
    avrdude: verifying ...
    avrdude: 1 bytes of hfuse verified
    avrdude: reading input file "0xFF"
    avrdude: writing lfuse (1 bytes):
    
    Writing | ################################################## | 100% 0.00s
    
    avrdude: 1 bytes of lfuse written
    avrdude: verifying lfuse memory against 0xFF:
    avrdude: load data lfuse data from input file 0xFF:
    avrdude: input file 0xFF contains 1 bytes
    avrdude: reading on-chip lfuse data:
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: verifying ...
    avrdude: 1 bytes of lfuse verified
    
    avrdude done.  Thank you.
    
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: Device signature = 0x1e950f
    avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
             To disable this feature, specify the -D option.
    avrdude: erasing chip
    avrdude: reading input file "/root/sketch.hex"
    avrdude: input file /root/sketch.hex auto detected as Intel Hex
    avrdude: writing flash (32768 bytes):
    
    Writing | ################################################## | 100% 23.06s
    
    avrdude: 32768 bytes of flash written
    avrdude: verifying flash memory against /root/sketch.hex:
    avrdude: load data flash data from input file /root/sketch.hex:
    avrdude: input file /root/sketch.hex auto detected as Intel Hex
    avrdude: input file /root/sketch.hex contains 32768 bytes
    avrdude: reading on-chip flash data:
    
    Reading | ################################################## | 100% 23.80s
    
    avrdude: verifying ...
    **avrdude: verification error, first mismatch at byte 0x0026
             0x41 != 0xce**
    avrdude: verification error; content mismatch
    
    avrdude: safemode: Fuses OK (E:05, H:DA, L:FF)
    
    avrdude done.  Thank you.
    
    > ERROR, flash NOT successful
    




  • @György-Farkas > Output vs. Output on Arduino Dock 2

    Hope this helps.

    Thank you for this - unfortunately no change by changing the direction of gpio 17... back to drawing board



  • @Paul-Cousins
    Do you try to flash the MCU of a genuine Arduino Dock 2 with Omega2(+)
    or try to flash "in-system" the Arduino Nano of your nice real-world Onion project?



  • @György-Farkas I am using the arduino dock 2 - tried to flash it via the arduino ide and also via the shell script. have not tried in circuit pins as I don't have a cable for it



  • @Paul-Cousins
    Sorry, I don't have any more (useful 😉 ideas.
    If you can find what causes the error let me know please.



  • Still no luck @György-Farkas . I removed and installed fresh code, tried other sketches - still get the same error but at different hex addresses... beyond frustrated! 😞



  • Just a quick update: I tried to flash the arduino dock 2 with an arduino uno in ISP mode and the omega removed from circuit. According to the IDE there were no errors and the blue led on the dock flashed during programming indicating some activity. The dock however does absolutely nothing afterwards - blink does not blink and none of the other sketches I tried had any activity with or without omega in circuit.

    Can't say I am too impressed with the dock at this stage and the many hours spent on it with no return. I am rather going to design my own.


  • administrators

    This post is deleted!


  • @Paul-Cousins

    The program you are trying to flash in your screen output requires 100% of the Atmega's flash memory. If you're using the Omega as the programmer, it will set the fuses in a certain order, including how much space to set aside for the bootloader. It may be that your sketch needs to be written to write-protected space and thus the verification fails.

    I would suggest modifying the fuse settings at the top of /usr/share/arduino-dock/arduino-dock-lib.sh so that they read like this:

    EFUSE="0x05"
    HFUSE="0xDE"
    LFUSE="0xFF"
    

    Try that and let us know how it goes.

    Gabe



  • Thank you @Gabriel-Ongpauco. Still no luck with that modification and i am writing blinker.ino test sketch which is only 2% of the max memory.

    Sketch uses 948 bytes (2%) of program storage space. Maximum is 32256 bytes.
    Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

    Writing | ################################################## | 100% 3.33s

    avrdude: 32768 bytes of flash written
    avrdude: verifying flash memory against /tmp/sketch.hex:
    avrdude: load data flash data from input file /tmp/sketch.hex:
    avrdude: input file /tmp/sketch.hex auto detected as Intel Hex
    avrdude: input file /tmp/sketch.hex contains 32768 bytes
    avrdude: reading on-chip flash data:

    Reading | #################################################> ERROR, flash NOT successful

    Flash complete!

    | 100% 3.27s

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

    avrdude done. Thank you.



Looks like your connection to Community was lost, please wait while we try to reconnect.