Bootloader and fuses for Pro Mini 3.3V using Arduino UNO as ISP


  • Mod

    I thought I'd get started on learning how fuses and boot loaders work, so I flashed ArduinoISP version 04m3 to my UNO and connected a 3.3V Pro Mini as per the instructions in the sketch.

    I then opened the blink sketch, selected Arduino Pro Mini 3.3V 8MHz as board/processor and uploaded using programmer. The upload was successful and the pro mini started blinking.

    Next, I adjusted the delay to make the led blink slower and uploaded using programmer. The upload was successful and the pro mini started blinking at the slower rate.

    So far so good. As far as I have understood, when I choose "upload using programmer" the default bootloader is overwritten and I can no longer upload sketches using FTDI. Therefore I selected Tools->Burn bootloader in the Arduino IDE, thinking that doing so would load the default bootloader again.

    Selecting Burn bootloader seems to have set the fuses (-Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m). The Pro Mini now no longer blinks when powered. I am no longer able to load any sketches using "upload using programmer", avrdude gives up after a few "avrdude: Device signature = 0x000000 (retrying)" saying "avrdude: Yikes! Invalid device signature.".

    I think the new fuse settings were incompatible with the Pro Mini somehow, probably clock-related.

    1. Is there an easy way to get the Pro Mini back to life?
    2. What should I have done instead to burn the standard bootloader so I could get back to loading sketched over FTDI after my experiment?

  • Hardware Contributor

    Use this to check your fuse settings.

    In general as far as I know / did:

    • Make sure you have the desired settings (standard pro mini settings should work most of the time) available in your Arduino IDE
    • Load the Arduino as ISP sketch onto another arduino and connect pins 10-13+GND+Power to the right pins of your arduino (that you want to program)
    • Click burn bootloader to write the bootloader and set fuses
    • Disconnect that and connect a ftdi programmer (or RX/TX of the arduino I guess) and upload your normal sketch

    If you use the upload using programmer you don't need a bootloader (it get overwritten anyways here).
    Correct me if I am wrong here guys.

    If you really used the wrong fuses only the right oscillator or a high voltage programmer can help you afaik.



  • I have been through the same scenario. My savior was USBasp and AVRDUDESS

    Select programmer and click detect. If the device signature is found you will be able to set the fuse bits. Get the fuse bits from boards.txt in Arduino folder. I prefer using AVRDUDESS rather than Arduino to burn bootloaders. Its very convenient and easy to use.

    Download here http://blog.zakkemble.co.uk/avrdudess-a-gui-for-avrdude/

    0_1456984342210_Capture.PNG


  • Mod

    @LastSamurai that looks like exactly what I did, except that I used the Arduino as ISP sketch on the Uno. I'll try loading the avrisp sketch on the Uno instead.

    @Suresh-Mali thanks for the suggestion. I'll try avrdudess as well.


  • Hardware Contributor

    I have recovered several pro mini just by changing to a pro mini board and "burn bootloader" in the IDE (still Arduino as ISP) - or maybe i missunderstood the question.


  • Mod

    @sundberg84 sorry for being unclear. "Burn bootloader" is exactly what I am trying when avrdude says "avrdude: Device signature = 0x000000 (retrying)".


  • Mod

    @LastSamurai: could you point me to where I find the avrisp sketch?


  • Hardware Contributor

    @mfalkvidd I am sorry I actually meant the Arduino as ISP sketch that you were using.
    Did you check what your fuse settings mean with the calculator I linked earlier?


  • Mod

    @LastSamurai said:

    @mfalkvidd I am sorry I actually meant the Arduino as ISP sketch that you were using.
    Did you check what your fuse settings mean with the calculator I linked earlier?

    No problem, thanks for clarifying.

    The fuse settings seem to be the default for Pro Mini 3.3V (at least according to the google hits I found). So setting the fuses and burning the bootloader should have brought the Arduino back to it's default state. Haven't had time to try avrdudess yet, will do that during the weekend.



  • @mfalkvidd As long as you have not disabled SPI fuse you should be able to recover. Try AVRDUDESS with slow speed. Also on USBasp there is a jumper for slow sck speed. That helped me recover/reprogram fuse to Blank ATMEGA328p as well.


  • Mod

    I've I found the log files from Arduino IDE, so now I'm better able to reconstruct what happened. stderr and stdout are stored in different files and there aren't any timestamps in stderr so merging them is quite hard.

    Step one: Writing the ArduinoISP to my Uno. Works well.

    avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch
    
             System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
    
             Using Port                    : COM5
             Using Programmer              : arduino
             Overriding Baud Rate          : 115200
             AVR Part                      : ATmega328P
             Chip Erase delay              : 9000 us
             PAGEL                         : PD7
             BS2                           : PC2
             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
             Memory Detail                 :
    
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
               flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : Arduino
             Description     : Arduino
             Hardware Version: 3
             Firmware Version: 4.4
             Vtarget         : 0.3 V
             Varef           : 0.3 V
             Oscillator      : 28.800 kHz
             SCK period      : 3.3 us
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: Device signature = 0x1e950f
    avrdude: reading input file "C:\Users\Micke\AppData\Local\Temp\build422892666092265647.tmp/ArduinoISP.cpp.hex"
    avrdude: writing flash (4884 bytes):
    
    Writing | ################################################## | 100% 0.71s
    
    avrdude: 4884 bytes of flash written
    avrdude: verifying flash memory against C:\Users\Micke\AppData\Local\Temp\build422892666092265647.tmp/ArduinoISP.cpp.hex:
    avrdude: load data flash data from input file C:\Users\Micke\AppData\Local\Temp\build422892666092265647.tmp/ArduinoISP.cpp.hex:
    avrdude: input file C:\Users\Micke\AppData\Local\Temp\build422892666092265647.tmp/ArduinoISP.cpp.hex contains 4884 bytes
    avrdude: reading on-chip flash data:
    
    Reading | ################################################## | 100% 0.53s
    
    avrdude: verifying ...
    avrdude: 4884 bytes of flash verified
    
    avrdude done.  Thank you.
    

    Next I try to upload the blink sketch to the Pro Mini using the Uno as programmer, but the upload fails:

    avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch
    
             System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
    
             Using Port                    : COM5
             Using Programmer              : stk500v1
             Overriding Baud Rate          : 19200
             AVR Part                      : ATmega328P
             Chip Erase delay              : 9000 us
             PAGEL                         : PD7
             BS2                           : PC2
             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
             Memory Detail                 :
    
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
               flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : STK500
             Description     : Atmel STK500 Version 1.x firmware
             Hardware Version: 2
             Firmware Version: 1.18
             Topcard         : Unknown
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.05s
    
    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 "C:\Users\Micke\AppData\Local\Temp\build422892666092265647.tmp/Blink.cpp.hex"
    avrdude: writing flash (1078 bytes):
    
    Writing | ################################################## | 100% 1.41s
    
    avrdude: 1078 bytes of flash written
    avrdude: verifying flash memory against C:\Users\Micke\AppData\Local\Temp\build422892666092265647.tmp/Blink.cpp.hex:
    avrdude: load data flash data from input file C:\Users\Micke\AppData\Local\Temp\build422892666092265647.tmp/Blink.cpp.hex:
    avrdude: input file C:\Users\Micke\AppData\Local\Temp\build422892666092265647.tmp/Blink.cpp.hex contains 1078 bytes
    avrdude: reading on-chip flash data:
    
    Reading | ################################################## | 100% 0.87s
    
    avrdude: verifying ...
    avrdude: verification error, first mismatch at byte 0x0000
             0x00 != 0x0c
    avrdude: verification error; content mismatch
    
    avrdude done.  Thank you.
    

    From now on, the device signature is 0:

    avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch
    
             System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
    
             Using Port                    : COM5
             Using Programmer              : stk500v1
             Overriding Baud Rate          : 19200
             AVR Part                      : ATmega328P
             Chip Erase delay              : 9000 us
             PAGEL                         : PD7
             BS2                           : PC2
             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
             Memory Detail                 :
    
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
               flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : STK500
             Description     : Atmel STK500 Version 1.x firmware
             Hardware Version: 2
             Firmware Version: 1.18
             Topcard         : Unknown
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.05s
    
    avrdude: Device signature = 0x000000 (retrying)
    
    Reading | ################################################## | 100% 0.05s
    
    avrdude: Device signature = 0x000000 (retrying)
    
    Reading | ################################################## | 100% 0.05s
    
    avrdude: Device signature = 0x000000
    avrdude: Yikes!  Invalid device signature.
             Double check connections and try again, or use -F to override
             this check.
    
    
    avrdude done.  Thank you.
    

    These are the command that seem relevant from stdout:

    C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v2 -Pusb -Uflash:w:C:\Users\Micke\AppData\Local\Temp\build422892666092265647.tmp/Blink.cpp.hex:i 
    C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v2 -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m 
    C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v2 -Pusb -Uflash:w:C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex:i -Ulock:w:0x0F:m
    

    I have started experimenting with avrdudess. It can read my UNO (clicking detect resonds with Detected 1e950f = ATmega328P) when I use "Arduino" as programmer. But it can't read the fuses (they all show up as 0x00)

    I have not figured out if I can use the Arduino as ISP with avrdudess and I have not gotten the avrisp mkii I borrowed to work either. Avrdudess says the following when I press "detect" after connecting the avrisp mkii to the Uno ISP header, when using Atmel AVR Isp mk ii as programmer:

    Unable to detect MCU
    
    
    avrdude.exe: stk500v2_command(): command failed
    avrdude.exe: stk500v2_program_enable(): bad AVRISPmkII connection status: Target not detected
    avrdude.exe: initialization failed, rc=-1
                 Double check connections and try again, or use -F to override
                 this check.
    

    The led on the avrisp mk ii is green, regardless if the Uno is connected or not.



  • @mfalkvidd If the ATMEGA is detected then all you have to do is input the Fuse Bits and program. It should work. Just select the bootloader hex file in Flash. Check Set fuses and hit program.


  • Mod

    @Suresh-Mali the Uno is detected, but the Uno works fine. I am not able to detect the Pro Mini, which is the one I want to load the bootloader on.


  • Mod

    After more experimenting and reading I have concluded that I am clearly in over my head. I need to understand the basic concepts before I continue. @m26872 has graciously offered to help IRL so hopefully we'll be able to figure something out.


  • Mod

    Adding the result of my experiments with Nick Gammon's ISP tools for future reference.

    This is from a working Pro Mini:

    Atmega chip detector.
    Written by Nick Gammon.
    Version 1.17
    Compiled on Mar  4 2016 at 18:59:38 with Arduino IDE 10605.
    Attempting to enter ICSP programming mode ...
    Entered programming mode OK.
    Signature = 0x1E 0x95 0x0F 
    Processor = ATmega328P
    Flash memory size = 32768 bytes.
    LFuse = 0xFF 
    HFuse = 0xDA 
    EFuse = 0xFD 
    Lock byte = 0xCF 
    Clock calibration = 0x9A 
    Bootloader in use: Yes
    EEPROM preserved through erase: No
    Watchdog timer always on: No
    Bootloader is 2048 bytes starting at 7800
    
    Bootloader:
    
    7800: 0x0C 0x94 0x34 0x3C 0x0C 0x28 0x03 0x03 0x04 0x04 0x05 0x05 0x06 0x06 0x07 0x07 
    7810: 0x08 0x08 0x09 0x09 0x0A 0x0A 0x0B 0x0B 0x0C 0x0C 0x0D 0x0D 0x0E 0x0E 0x0F 0x0F 
    7820: 0x10 0x10 0x11 0x11 0x12 0x12 0x13 0x13 0x14 0x14 0x15 0x15 0x16 0x16 0x17 0x17 
    7830: 0x18 0x18 0x19 0x19 0x1A 0x1A 0x1B 0x1B 0x1C 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F 
    7840: 0x20 0x20 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x24 0x25 0x25 0x26 0x26 0x27 0x27 
    7850: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F 
    7860: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x37 0x37 
    7870: 0x38 0x38 0x39 0x39 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F 
    7880: 0x40 0x40 0x41 0x41 0x42 0x42 0x43 0x43 0x44 0x44 0x45 0x45 0x46 0x46 0x47 0x47 
    7890: 0x48 0x48 0x49 0x49 0x4A 0x4A 0x4B 0x4B 0x4C 0x4C 0x4D 0x4D 0x4E 0x4E 0x4F 0x4F 
    78A0: 0x50 0x50 0x51 0x51 0x52 0x52 0x53 0x53 0x54 0x54 0x55 0x55 0x56 0x56 0x57 0x57 
    78B0: 0x58 0x58 0x59 0x59 0x5A 0x5A 0x5B 0x5B 0x5C 0x5C 0x5D 0x5D 0x5E 0x5E 0x5F 0x5F 
    78C0: 0x60 0x60 0x61 0x61 0x62 0x62 0x63 0x63 0x64 0x64 0x65 0x65 0x66 0x66 0x67 0x67 
    78D0: 0x68 0x68 0x69 0x69 0x6A 0x6A 0x6B 0x6B 0x6C 0x6C 0x6D 0x6D 0x6E 0x6E 0x6F 0x6F 
    78E0: 0x70 0x70 0x71 0x71 0x72 0x72 0x73 0x73 0x74 0x74 0x75 0x75 0x76 0x76 0x77 0x77 
    78F0: 0x78 0x78 0x79 0x79 0x7A 0x7A 0x7B 0x7B 0x7C 0x7C 0x7D 0x7D 0x7E 0x7E 0x7F 0x7F 
    7900: 0x80 0x80 0x81 0x81 0x82 0x82 0x83 0x83 0x84 0x84 0x85 0x85 0x86 0x86 0x87 0x0E 
    7910: 0x88 0x88 0x89 0x89 0x8A 0x8A 0x8B 0x8B 0x8C 0x8C 0x8D 0x8D 0x8E 0x8E 0x8F 0x8F 
    7920: 0x90 0x90 0x91 0x91 0x92 0x92 0x93 0x93 0x28 0x94 0x95 0x95 0x96 0x96 0x97 0x97 
    7930: 0x98 0x98 0x99 0x99 0x9A 0x9A 0x9B 0x9B 0x9C 0x9C 0x9D 0x9D 0x9E 0x9E 0x9F 0x9F 
    7940: 0xA0 0xA0 0x42 0xA1 0xA2 0xA2 0xA3 0xA3 0xA4 0xA4 0xA5 0xA5 0xA6 0xA6 0xA7 0xA7 
    7950: 0xA8 0xA8 0xA9 0xA9 0xAA 0xAA 0xAB 0xAB 0xAC 0x58 0xAD 0xAD 0xAE 0xAE 0x5E 0xAF 
    7960: 0xB0 0xB0 0xB1 0xB1 0xB2 0xB2 0xB3 0xB3 0xB4 0xB4 0xB5 0xB5 0xB6 0xB6 0xB7 0xB7 
    7970: 0xB8 0xB8 0xB9 0xB9 0xBA 0xBA 0xBB 0xBB 0xBC 0xBC 0xBD 0xBD 0xBE 0xBE 0xBF 0xBF 
    7980: 0xC0 0xC0 0xC1 0xC1 0xC2 0xC2 0xC3 0xC3 0xC4 0xC4 0xC5 0xC5 0xC6 0xC6 0xC7 0xC7 
    7990: 0xC8 0xC8 0xC9 0xC9 0xCA 0xCA 0xCB 0xCB 0xCC 0xCC 0xCD 0xCD 0xCE 0xCE 0xCF 0xCF 
    79A0: 0xD0 0xD0 0xD1 0xD1 0xD2 0xD2 0xD3 0xD3 0xD4 0xA8 0xD5 0xD5 0xD6 0xD6 0xD7 0xD7 
    79B0: 0xD8 0xD8 0xD9 0xD9 0xDA 0xDA 0xDB 0xDB 0xDC 0xDC 0xDD 0xDD 0xDE 0xDE 0xDF 0xDF 
    79C0: 0xE0 0xC0 0xE1 0xE1 0xE2 0xE2 0xC6 0xE3 0xE4 0xE4 0xE5 0xE5 0xE6 0xE6 0xE7 0xE7 
    79D0: 0xE8 0xE8 0xE9 0xE9 0xEA 0xEA 0xD6 0xEB 0xEC 0xEC 0xED 0xED 0xEE 0xEE 0xEF 0xEF 
    79E0: 0xE0 0xF0 0xF1 0xF1 0xF2 0xF2 0xF3 0xF3 0xF4 0xF4 0xF5 0xF5 0xF6 0xF6 0xF7 0xF7 
    79F0: 0xF8 0xF8 0xF9 0xF9 0xFA 0xFA 0xFB 0xFB 0xFC 0xFC 0xFD 0xFD 0xFE 0xFE 0xFF 0xFF 
    7A00: 0x00 0x00 0x01 0x01 0x02 0x02 0x03 0x03 0x04 0x04 0x05 0x05 0x06 0x06 0x07 0x07 
    7A10: 0x08 0x08 0x09 0x09 0x0A 0x0A 0x0B 0x0B 0x0C 0x0C 0x0D 0x0D 0x0E 0x0E 0x0F 0x0F 
    7A20: 0x10 0x10 0x11 0x11 0x12 0x12 0x13 0x13 0x14 0x14 0x15 0x15 0x16 0x16 0x17 0x17 
    7A30: 0x18 0x18 0x19 0x19 0x1A 0x1A 0x1B 0x1B 0x1C 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F 
    7A40: 0x20 0x20 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x24 0x25 0x25 0x26 0x26 0x27 0x27 
    7A50: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F 
    7A60: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x37 0x37 
    7A70: 0x38 0x38 0x39 0x39 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F 
    7A80: 0x40 0x40 0x41 0x41 0x42 0x42 0x43 0x43 0x44 0x44 0x45 0x45 0x46 0x46 0x47 0x47 
    7A90: 0x48 0x48 0x49 0x49 0x4A 0x4A 0x4B 0x4B 0x4C 0x4C 0x4D 0x4D 0x4E 0x4E 0x4F 0x4F 
    7AA0: 0x50 0x50 0x51 0x51 0x52 0x52 0x53 0x53 0x54 0x54 0x55 0x55 0x56 0x56 0x57 0x57 
    7AB0: 0x58 0x58 0x59 0x59 0x5A 0x5A 0x5B 0x5B 0x5C 0x5C 0x5D 0x5D 0x5E 0x5E 0x5F 0x5F 
    7AC0: 0x60 0x60 0x61 0x61 0x62 0x62 0x63 0x63 0x64 0x64 0x65 0x65 0x66 0x66 0x67 0x67 
    7AD0: 0x68 0x68 0x69 0x69 0x6A 0x6A 0x6B 0x6B 0x6C 0x6C 0x6D 0x6D 0x6E 0x6E 0x6F 0x6F 
    7AE0: 0x70 0x70 0x71 0x71 0x72 0x72 0x73 0x73 0x74 0x74 0x75 0x75 0x76 0x76 0x77 0x77 
    7AF0: 0x78 0x78 0x79 0x79 0x7A 0x7A 0x7B 0x7B 0x7C 0x7C 0x7D 0x7D 0x7E 0x7E 0x7F 0x7F 
    7B00: 0x80 0x80 0x81 0x81 0x82 0x82 0x83 0x83 0x84 0x84 0x85 0x85 0x86 0x86 0x87 0x87 
    7B10: 0x88 0x88 0x89 0x89 0x8A 0x8A 0x8B 0x8B 0x8C 0x8C 0x8D 0x8D 0x8E 0x8E 0x8F 0x8F 
    7B20: 0x20 0x90 0x91 0x91 0x24 0x92 0x93 0x93 0x94 0x94 0x95 0x95 0x96 0x96 0x97 0x97 
    7B30: 0x98 0x98 0x99 0x99 0x9A 0x9A 0x9B 0x9B 0x9C 0x9C 0x9D 0x9D 0x9E 0x3C 0x9F 0x9F 
    7B40: 0xA0 0xA0 0xA1 0xA1 0xA2 0xA2 0xA3 0xA3 0xA4 0xA4 0xA5 0xA5 0xA6 0xA6 0xA7 0xA7 
    7B50: 0xA8 0xA8 0xA9 0xA9 0xAA 0xAA 0xAB 0xAB 0xAC 0xAC 0x5A 0xAD 0xAE 0xAE 0xAF 0xAF 
    7B60: 0xB0 0xB0 0xB1 0xB1 0xB2 0xB2 0xB3 0xB3 0x68 0xB4 0xB5 0xB5 0xB6 0xB6 0xB7 0xB7 
    7B70: 0xB8 0xB8 0xB9 0xB9 0xBA 0xBA 0xBB 0xBB 0xBC 0xBC 0xBD 0xBD 0xBE 0xBE 0xBF 0xBF 
    7B80: 0xC0 0xC0 0xC1 0xC1 0xC2 0xC2 0xC3 0xC3 0xC4 0xC4 0xC5 0xC5 0xC6 0xC6 0xC7 0xC7 
    7B90: 0xC8 0xC8 0xC9 0xC9 0xCA 0xCA 0xCB 0xCB 0xCC 0xCC 0xCD 0xCD 0xCE 0xCE 0xCF 0xCF 
    7BA0: 0xD0 0xD0 0xD1 0xD1 0xD2 0xD2 0xD3 0xD3 0xD4 0xA8 0xD5 0xD5 0xD6 0xD6 0xD7 0xD7 
    7BB0: 0xD8 0xD8 0xD9 0xD9 0xDA 0xB4 0xDB 0xDB 0xDC 0xDC 0xDD 0xDD 0xDE 0xDE 0xDF 0xDF 
    7BC0: 0xE0 0xE0 0xE1 0xE1 0xE2 0xE2 0xE3 0xE3 0xE4 0xE4 0xE5 0xE5 0xE6 0xE6 0xE7 0xE7 
    7BD0: 0xE8 0xE8 0xE9 0xE9 0xEA 0xEA 0xEB 0xEB 0xEC 0xEC 0xED 0xED 0xEE 0xEE 0xEF 0xEF 
    7BE0: 0xF0 0xF0 0xF1 0xF1 0xF2 0xF2 0xF3 0xF3 0xF4 0xF4 0xF5 0xF5 0xF6 0xF6 0xF7 0xF7 
    7BF0: 0xF8 0xF8 0xF9 0xF9 0xFA 0xFA 0xFB 0xFB 0xFC 0xFC 0xFD 0xFD 0xFE 0xFE 0xFF 0xFF 
    7C00: 0x00 0x00 0x01 0x01 0x02 0x02 0x03 0x03 0x04 0x04 0x05 0x05 0x06 0x06 0x07 0x07 
    7C10: 0x08 0x08 0x09 0x09 0x0A 0x0A 0x0B 0x0B 0x0C 0x0C 0x0D 0x0D 0x0E 0x0E 0x0F 0x0F 
    7C20: 0x10 0x10 0x11 0x11 0x12 0x12 0x13 0x13 0x14 0x14 0x15 0x15 0x16 0x16 0x17 0x17 
    7C30: 0x18 0x18 0x19 0x19 0x1A 0x1A 0x1B 0x1B 0x1C 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F 
    7C40: 0x20 0x20 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x24 0x25 0x25 0x26 0x26 0x27 0x27 
    7C50: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F 
    7C60: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x37 0x37 
    7C70: 0x38 0x38 0x39 0x39 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F 
    7C80: 0x40 0x40 0x41 0x41 0x42 0x42 0x43 0x43 0x44 0x44 0x45 0x45 0x46 0x46 0x47 0x47 
    7C90: 0x48 0x48 0x49 0x49 0x4A 0x4A 0x4B 0x4B 0x4C 0x4C 0x4D 0x4D 0x4E 0x4E 0x4F 0x4F 
    7CA0: 0x50 0x50 0x51 0x51 0x52 0x52 0x53 0x53 0x54 0x54 0x55 0x55 0x56 0x56 0x57 0x57 
    7CB0: 0x58 0x58 0x59 0x59 0x5A 0x5A 0x5B 0x5B 0x5C 0x5C 0x5D 0x5D 0x5E 0x5E 0x5F 0x5F 
    7CC0: 0x60 0x60 0x61 0x61 0x62 0x62 0x63 0x63 0x64 0x64 0x65 0x65 0x66 0x66 0x67 0x67 
    7CD0: 0x68 0x68 0x69 0x69 0x6A 0x6A 0x6B 0x6B 0x6C 0x6C 0x6D 0x6D 0x6E 0x6E 0x6F 0x6F 
    7CE0: 0x70 0x70 0x71 0x71 0x72 0x72 0x73 0x73 0x74 0x74 0x75 0x75 0x76 0x76 0x77 0x77 
    7CF0: 0x78 0x78 0x79 0x79 0x7A 0x7A 0x7B 0x7B 0x7C 0x7C 0x7D 0x7D 0x7E 0x7E 0x7F 0x7F 
    7D00: 0x80 0x80 0x81 0x81 0x82 0x82 0x83 0x83 0x84 0x84 0x85 0x85 0x86 0x86 0x87 0x87 
    7D10: 0x88 0x88 0x89 0x89 0x8A 0x8A 0x16 0x8B 0x8C 0x8C 0x8D 0x8D 0x8E 0x8E 0x8F 0x8F 
    7D20: 0x90 0x90 0x91 0x91 0x92 0x92 0x93 0x93 0x94 0x94 0x95 0x95 0x96 0x96 0x97 0x97 
    7D30: 0x98 0x98 0x99 0x99 0x9A 0x9A 0x9B 0x9B 0x9C 0x9C 0x9D 0x9D 0x9E 0x9E 0x9F 0x9F 
    7D40: 0x40 0xA0 0xA1 0xA1 0xA2 0xA2 0xA3 0x46 0xA4 0xA4 0x4A 0xA5 0xA6 0xA6 0xA7 0xA7 
    7D50: 0xA8 0xA8 0xA9 0xA9 0xAA 0xAA 0xAB 0xAB 0xAC 0xAC 0xAD 0xAD 0xAE 0xAE 0xAF 0xAF 
    7D60: 0xB0 0xB0 0xB1 0xB1 0xB2 0xB2 0xB3 0xB3 0xB4 0xB4 0xB5 0xB5 0xB6 0xB6 0xB7 0xB7 
    7D70: 0xB8 0xB8 0xB9 0xB9 0xBA 0xBA 0xBB 0xBB 0xBC 0x78 0xBD 0xBD 0x7C 0xBE 0xBF 0xBF 
    7D80: 0xC0 0xC0 0xC1 0xC1 0xC2 0xC2 0xC3 0xC3 0x88 0xC4 0xC5 0xC5 0xC6 0xC6 0xC7 0xC7 
    7D90: 0xC8 0xC8 0xC9 0xC9 0xCA 0xCA 0x96 0xCB 0xCC 0x98 0xCD 0xCD 0xCE 0xCE 0xCF 0xCF 
    7DA0: 0xD0 0xD0 0xD1 0xD1 0xD2 0xD2 0xD3 0xD3 0xD4 0xD4 0xD5 0xD5 0xD6 0xD6 0xD7 0xD7 
    7DB0: 0xD8 0xD8 0xD9 0xD9 0xB4 0xFF 0xDB 0xFF 0xDC 0xFF 0xDD 0xFF 0xDE 0xFF 0xDF 0xFF 
    7DC0: 0xE0 0xFF 0xE1 0xFF 0xE2 0xFF 0xE3 0xFE 0xE4 0xFE 0xE5 0xFE 0xE6 0xFE 0xE7 0xFE 
    7DD0: 0xE8 0xFE 0xE9 0xFE 0xEA 0xFE 0xEB 0xFE 0xEC 0xFE 0xED 0xFE 0xEE 0xFE 0xEF 0xFE 
    7DE0: 0xF0 0xFE 0xF1 0xFE 0xF2 0xFE 0xF3 0xFE 0xF4 0xFE 0xF5 0xFE 0xF6 0xFE 0xF7 0xFE 
    7DF0: 0xF8 0xFE 0xF9 0xFE 0xFA 0xFE 0xFB 0xFE 0xFC 0xFE 0xFD 0xFE 0xFE 0xFE 0xFF 0xFE 
    7E00: 0x00 0x7E 0x01 0x7E 0x02 0x7E 0x03 0x7E 0x04 0x7E 0x05 0x7E 0x06 0x7E 0x07 0x7E 
    7E10: 0x08 0x7E 0x09 0x7E 0x0A 0x7E 0x0B 0x7E 0x0C 0x7E 0x0D 0x7E 0x0E 0x7E 0x0F 0x7E 
    7E20: 0x10 0x7E 0x11 0x7E 0x12 0x7E 0x13 0x7E 0x14 0x7E 0x15 0x7E 0xFF 0xFF 0xFF 0xFF 
    7E30: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFE 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F 
    7E40: 0x20 0x20 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x24 0x25 0x25 0x26 0x26 0x27 0x27 
    7E50: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F 
    7E60: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x37 0x37 
    7E70: 0x38 0x38 0x39 0x39 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F 
    7E80: 0x40 0x40 0x41 0x41 0x42 0x42 0x43 0x43 0x44 0x44 0x45 0x45 0x46 0x46 0x47 0x47 
    7E90: 0x48 0x48 0x49 0x49 0x4A 0x4A 0x4B 0x4B 0x4C 0x4C 0x4D 0x4D 0x4E 0x4E 0x4F 0x4F 
    7EA0: 0x50 0x50 0x51 0x51 0x52 0x52 0x53 0x53 0x54 0x54 0x55 0x55 0x56 0x56 0x57 0x57 
    7EB0: 0x58 0x58 0x59 0x59 0x5A 0x5A 0x5B 0x5B 0x5C 0x5C 0x5D 0x5D 0x5E 0x5E 0x5F 0x5F 
    7EC0: 0x60 0x60 0x61 0x61 0x62 0x62 0x63 0x63 0x64 0x64 0x65 0x65 0x66 0x66 0x67 0x67 
    7ED0: 0x68 0x68 0x69 0x69 0x6A 0x6A 0x6B 0x6B 0x6C 0x6C 0x6D 0x6D 0x6E 0x6E 0x6F 0x6F 
    7EE0: 0x70 0x70 0x71 0x71 0x72 0x72 0x73 0x73 0x74 0x74 0x75 0x75 0x76 0x76 0x77 0x77 
    7EF0: 0x78 0x78 0x79 0x79 0x7A 0x7A 0x7B 0x7B 0x7C 0x7C 0x7D 0x7D 0x7E 0x7E 0x7F 0x7F 
    7F00: 0x80 0x80 0x81 0x81 0x82 0x82 0x83 0x83 0x84 0x84 0x85 0x85 0x86 0x0C 0x87 0x87 
    7F10: 0x88 0x88 0x89 0x12 0x8A 0x8A 0x16 0x8B 0x8C 0x8C 0x8D 0x8D 0x8E 0x8E 0x8F 0x1E 
    7F20: 0x90 0x90 0x91 0x91 0x92 0x92 0x93 0x93 0x94 0x94 0x95 0x95 0x96 0x96 0x97 0x97 
    7F30: 0x30 0x98 0x99 0x99 0x9A 0x9A 0x9B 0x9B 0x9C 0x9C 0x9D 0x9D 0x9E 0x9E 0x9F 0x9F 
    7F40: 0xA0 0xA0 0xA1 0xA1 0xA2 0xA2 0x46 0xA3 0xA4 0xA4 0xA5 0xA5 0xA6 0xA6 0xA7 0x4E 
    7F50: 0xA8 0xA8 0xA9 0xA9 0xAA 0xAA 0xAB 0xAB 0xAC 0xAC 0xAD 0xAD 0xAE 0xAE 0xAF 0xAF 
    7F60: 0xB0 0xB0 0xB1 0xB1 0xB2 0xB2 0xB3 0xB3 0xB4 0xB4 0xB5 0xB5 0xB6 0xB6 0xB7 0xB7 
    7F70: 0xB8 0xB8 0xB9 0xB9 0x74 0xBA 0xBB 0xBB 0xBC 0xBC 0xBD 0xBD 0xBE 0xBE 0xBF 0xBF 
    7F80: 0xC0 0xC0 0xC1 0xC1 0xC2 0xC2 0xC3 0xC3 0xC4 0xC4 0xC5 0xC5 0xC6 0xC6 0xC7 0xC7 
    7F90: 0xC8 0xC8 0xC9 0xC9 0xCA 0xCA 0xCB 0xCB 0xCC 0xCC 0xCD 0xCD 0xCE 0xCE 0xCF 0xCF 
    7FA0: 0xD0 0xD0 0xD1 0xD1 0xD2 0xD2 0xD3 0xD3 0xD4 0xD4 0xD5 0xD5 0xD6 0xD6 0xD7 0xD7 
    7FB0: 0xD8 0xD8 0xD9 0xD9 0xDA 0xDA 0xDB 0xDB 0xDC 0xDC 0xDD 0xDD 0xDE 0xDE 0xDF 0xDF 
    7FC0: 0xE0 0xE0 0xE1 0xE1 0xE2 0xE2 0xE3 0xE3 0xE4 0xE4 0xE5 0xE5 0xE6 0xE6 0xE7 0xE7 
    7FD0: 0xE8 0xE8 0xE9 0xE9 0xEA 0xEA 0xEB 0xEB 0xEC 0xEC 0xED 0xED 0xEE 0xEE 0xEF 0xEF 
    7FE0: 0xF0 0xF0 0xF1 0xF1 0xF2 0xF2 0xF3 0xF3 0xF4 0xF4 0xF5 0xF5 0xF6 0xF6 0xF7 0xF7 
    7FF0: 0xF8 0xF8 0xF9 0xF9 0xFA 0xFA 0xFB 0xFB 0xFC 0xFC 0xFD 0xFD 0xFE 0xFE 0xFF 0xFF 
    
    MD5 sum of bootloader = 0xEF 0x58 0xC2 0x1E 0xCA 0xEE 0xE3 0xCB 0x4D 0xDA 0x58 0x51 0x95 0xD7 0x90 0xBC 
    Bootloader MD5 sum not known.
    
    First 256 bytes of program memory:
    
    0: 0x00 0x00 0x01 0x01 0x02 0x02 0x03 0x03 0x04 0x04 0x05 0x05 0x06 0x06 0x07 0x07 
    10: 0x08 0x08 0x09 0x09 0x0A 0x0A 0x0B 0x0B 0x0C 0x0C 0x0D 0x0D 0x0E 0x0E 0x0F 0x0F 
    20: 0x10 0x10 0x11 0x11 0x12 0x12 0x13 0x13 0x14 0x14 0x15 0x15 0x16 0x16 0x17 0x17 
    30: 0x18 0x18 0x19 0x19 0x1A 0x1A 0x1B 0x1B 0x1C 0x1C 0x1D 0x1D 0x1E 0x1E 0x1F 0x1F 
    40: 0x20 0x20 0x21 0x21 0x22 0x22 0x23 0x23 0x24 0x24 0x25 0x25 0x26 0x26 0x27 0x27 
    50: 0x28 0x28 0x29 0x29 0x2A 0x2A 0x2B 0x2B 0x2C 0x2C 0x2D 0x2D 0x2E 0x2E 0x2F 0x2F 
    60: 0x30 0x30 0x31 0x31 0x32 0x32 0x33 0x33 0x34 0x34 0x35 0x35 0x36 0x36 0x37 0x37 
    70: 0x38 0x38 0x39 0x39 0x3A 0x3A 0x3B 0x3B 0x3C 0x3C 0x3D 0x3D 0x3E 0x3E 0x3F 0x3F 
    80: 0x40 0x40 0x41 0x41 0x42 0x42 0x43 0x43 0x44 0x44 0x45 0x45 0x46 0x46 0x47 0x47 
    90: 0x48 0x48 0x49 0x49 0x4A 0x4A 0x4B 0x4B 0x4C 0x4C 0x4D 0x4D 0x4E 0x4E 0x4F 0x4F 
    A0: 0x50 0x50 0x51 0x51 0x52 0x52 0x53 0x53 0x54 0x54 0x55 0x55 0x56 0x56 0x57 0x57 
    B0: 0x58 0x58 0x59 0x59 0x5A 0x5A 0x5B 0x5B 0x5C 0x5C 0x5D 0x5D 0x5E 0x5E 0x5F 0x5F 
    C0: 0x60 0x60 0x61 0x61 0x62 0x62 0x63 0x63 0x64 0x64 0x65 0x65 0x66 0x66 0x67 0x67 
    D0: 0x68 0x68 0x69 0x69 0x6A 0x6A 0x6B 0x6B 0x6C 0x6C 0x6D 0x6D 0x6E 0x6E 0x6F 0x6F 
    E0: 0x70 0x70 0x71 0x71 0x72 0x72 0x73 0x73 0x74 0x74 0x75 0x75 0x76 0x76 0x77 0x77 
    F0: 0x78 0x78 0x79 0x79 0x7A 0x7A 0x7B 0x7B 0x7C 0x7C 0x7D 0x7D 0x7E 0x7E 0x7F 0x7F 
    
    Programming mode off.
    
    Atmega fuse calculator.
    Written by Nick Gammon.
    Version 1.10
    Compiled on Mar  4 2016 at 19:12:42 with Arduino IDE 10605.
    Attempting to enter programming mode ...
    Entered programming mode OK.
    Signature = 0x1E 0x95 0x0F 
    Processor = ATmega328P
    Flash memory size = 32768
    LFuse = 0xFF 
    HFuse = 0xDA 
    EFuse = 0xFD 
    Lock byte = 0xFF 
    Clock calibration = 0x9A 
    External Reset Disable.................. [ ]
    Debug Wire Enable....................... [ ]
    Enable Serial (ICSP) Programming........ [X]
    Watchdog Timer Always On................ [ ]
    Preserve EEPROM through chip erase...... [ ]
    Boot into bootloader.................... [X]
    Divide clock by 8....................... [ ]
    Clock output............................ [ ]
    Bootloader size: 2048 bytes.
    Start-up time: SUT0: [ ]  SUT1: [ ] (see datasheet)
    Clock source: low-power crystal.
    Brownout detection at: 2.7V.
    Atmega chip programmer.
    Written by Nick Gammon.
    Version 1.35
    Compiled on Mar  4 2016 at 19:14:44 with Arduino IDE 10605.
    Attempting to enter ICSP programming mode ...
    Entered programming mode OK.
    Signature = 0x1E 0x95 0x0F 
    Processor = ATmega328P
    Flash memory size = 32768 bytes.
    LFuse = 0xFF 
    HFuse = 0xDA 
    EFuse = 0xFD 
    Lock byte = 0xFF 
    Clock calibration = 0x9A 
    Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader ...
    

  • Mod

    These are from my failed attempts at uploading new bootloader to the working Pro Mini, which resulted in a Pro Mini that can no longer load anything using FTDI but it can still be accessed over ICSP (which the first Pro Mini can not, so I seem to have done something different this time).

    
    Atmega chip programmer.
    Written by Nick Gammon.
    Version 1.35
    Compiled on Mar  4 2016 at 19:14:44 with Arduino IDE 10605.
    Attempting to enter ICSP programming mode ...
    Entered programming mode OK.
    Signature = 0x1E 0x95 0x0F 
    Processor = ATmega328P
    Flash memory size = 32768 bytes.
    LFuse = 0xFF 
    HFuse = 0xDA 
    EFuse = 0xFD 
    Lock byte = 0xFF 
    Clock calibration = 0x9A 
    Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader ...
    Using Lilypad 8 MHz loader.
    Bootloader address = 0x7800
    Bootloader length = 1932 bytes.
    Type 'Q' to quit, 'V' to verify, or 'G' to program the chip with the bootloader ...
    Verifying ...
    Verification error at address 7800. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7801. Got: 0xFF  Expected: 0x94 
    Verification error at address 7802. Got: 0xFF  Expected: 0x34 
    Verification error at address 7803. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7804. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7805. Got: 0xFF  Expected: 0x94 
    Verification error at address 7806. Got: 0xFF  Expected: 0x51 
    Verification error at address 7807. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7808. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7809. Got: 0xFF  Expected: 0x94 
    Verification error at address 780A. Got: 0xFF  Expected: 0x51 
    Verification error at address 780B. Got: 0xFF  Expected: 0x3C 
    Verification error at address 780C. Got: 0xFF  Expected: 0x0C 
    Verification error at address 780D. Got: 0xFF  Expected: 0x94 
    Verification error at address 780E. Got: 0xFF  Expected: 0x51 
    Verification error at address 780F. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7810. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7811. Got: 0xFF  Expected: 0x94 
    Verification error at address 7812. Got: 0xFF  Expected: 0x51 
    Verification error at address 7813. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7814. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7815. Got: 0xFF  Expected: 0x94 
    Verification error at address 7816. Got: 0xFF  Expected: 0x51 
    Verification error at address 7817. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7818. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7819. Got: 0xFF  Expected: 0x94 
    Verification error at address 781A. Got: 0xFF  Expected: 0x51 
    Verification error at address 781B. Got: 0xFF  Expected: 0x3C 
    Verification error at address 781C. Got: 0xFF  Expected: 0x0C 
    Verification error at address 781D. Got: 0xFF  Expected: 0x94 
    Verification error at address 781E. Got: 0xFF  Expected: 0x51 
    Verification error at address 781F. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7820. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7821. Got: 0xFF  Expected: 0x94 
    Verification error at address 7822. Got: 0xFF  Expected: 0x51 
    Verification error at address 7823. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7824. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7825. Got: 0xFF  Expected: 0x94 
    Verification error at address 7826. Got: 0xFF  Expected: 0x51 
    Verification error at address 7827. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7828. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7829. Got: 0xFF  Expected: 0x94 
    Verification error at address 782A. Got: 0xFF  Expected: 0x51 
    Verification error at address 782B. Got: 0xFF  Expected: 0x3C 
    Verification error at address 782C. Got: 0xFF  Expected: 0x0C 
    Verification error at address 782D. Got: 0xFF  Expected: 0x94 
    Verification error at address 782E. Got: 0xFF  Expected: 0x51 
    Verification error at address 782F. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7830. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7831. Got: 0xFF  Expected: 0x94 
    Verification error at address 7832. Got: 0xFF  Expected: 0x51 
    Verification error at address 7833. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7834. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7835. Got: 0xFF  Expected: 0x94 
    Verification error at address 7836. Got: 0xFF  Expected: 0x51 
    Verification error at address 7837. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7838. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7839. Got: 0xFF  Expected: 0x94 
    Verification error at address 783A. Got: 0xFF  Expected: 0x51 
    Verification error at address 783B. Got: 0xFF  Expected: 0x3C 
    Verification error at address 783C. Got: 0xFF  Expected: 0x0C 
    Verification error at address 783D. Got: 0xFF  Expected: 0x94 
    Verification error at address 783E. Got: 0xFF  Expected: 0x51 
    Verification error at address 783F. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7840. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7841. Got: 0xFF  Expected: 0x94 
    Verification error at address 7842. Got: 0xFF  Expected: 0x51 
    Verification error at address 7843. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7844. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7845. Got: 0xFF  Expected: 0x94 
    Verification error at address 7846. Got: 0xFF  Expected: 0x51 
    Verification error at address 7847. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7848. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7849. Got: 0xFF  Expected: 0x94 
    Verification error at address 784A. Got: 0xFF  Expected: 0x51 
    Verification error at address 784B. Got: 0xFF  Expected: 0x3C 
    Verification error at address 784C. Got: 0xFF  Expected: 0x0C 
    Verification error at address 784D. Got: 0xFF  Expected: 0x94 
    Verification error at address 784E. Got: 0xFF  Expected: 0x51 
    Verification error at address 784F. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7850. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7851. Got: 0xFF  Expected: 0x94 
    Verification error at address 7852. Got: 0xFF  Expected: 0x51 
    Verification error at address 7853. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7854. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7855. Got: 0xFF  Expected: 0x94 
    Verification error at address 7856. Got: 0xFF  Expected: 0x51 
    Verification error at address 7857. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7858. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7859. Got: 0xFF  Expected: 0x94 
    Verification error at address 785A. Got: 0xFF  Expected: 0x51 
    Verification error at address 785B. Got: 0xFF  Expected: 0x3C 
    Verification error at address 785C. Got: 0xFF  Expected: 0x0C 
    Verification error at address 785D. Got: 0xFF  Expected: 0x94 
    Verification error at address 785E. Got: 0xFF  Expected: 0x51 
    Verification error at address 785F. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7860. Got: 0xFF  Expected: 0x0C 
    Verification error at address 7861. Got: 0xFF  Expected: 0x94 
    Verification error at address 7862. Got: 0xFF  Expected: 0x51 
    Verification error at address 7863. Got: 0xFF  Expected: 0x3C 
    Verification error at address 7864. Got: 0xFF  Expected: 0x0C 
    1924 verification error(s).
    First 100 shown.
    Programming mode off.
    Type 'C' when ready to continue with another chip ...
    Attempting to enter ICSP programming mode ...
    Entered programming mode OK.
    Signature = 0x1E 0x95 0x0F 
    Processor = ATmega328P
    Flash memory size = 32768 bytes.
    LFuse = 0xFF 
    HFuse = 0xDA 
    EFuse = 0xFD 
    Lock byte = 0xFF 
    Clock calibration = 0x9A 
    Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader ...
    Using Lilypad 8 MHz loader.
    Bootloader address = 0x7800
    Bootloader length = 1932 bytes.
    Type 'Q' to quit, 'V' to verify, or 'G' to program the chip with the bootloader ...
    Fixing low fuse setting ...
    Programming mode off.
    Attempting to enter ICSP programming mode ...
    Entered programming mode OK.
    Erasing chip ...
    Writing bootloader ...
    Committing page starting at 0x7800
    Committing page starting at 0x7880
    Committing page starting at 0x7900
    Committing page starting at 0x7980
    Committing page starting at 0x7A00
    Committing page starting at 0x7A80
    Committing page starting at 0x7B00
    Committing page starting at 0x7B80
    Committing page starting at 0x7C00
    Committing page starting at 0x7C80
    Committing page starting at 0x7D00
    Committing page starting at 0x7D80
    Committing page starting at 0x7E00
    Committing page starting at 0x7E80
    Committing page starting at 0x7F00
    Committing page starting at 0x7F80
    Written.
    Verifying ...
    Verification error at address 7800. Got: 0x00  Expected: 0x0C 
    Verification error at address 7801. Got: 0x00  Expected: 0x94 
    Verification error at address 7802. Got: 0x01  Expected: 0x34 
    Verification error at address 7803. Got: 0x01  Expected: 0x3C 
    Verification error at address 7804. Got: 0x02  Expected: 0x0C 
    Verification error at address 7805. Got: 0x02  Expected: 0x94 
    Verification error at address 7806. Got: 0x03  Expected: 0x51 
    Verification error at address 7807. Got: 0x03  Expected: 0x3C 
    Verification error at address 7808. Got: 0x04  Expected: 0x0C 
    Verification error at address 7809. Got: 0x04  Expected: 0x94 
    Verification error at address 780A. Got: 0x05  Expected: 0x51 
    Verification error at address 780B. Got: 0x05  Expected: 0x3C 
    Verification error at address 780C. Got: 0x06  Expected: 0x0C 
    Verification error at address 780D. Got: 0x06  Expected: 0x94 
    Verification error at address 780E. Got: 0x07  Expected: 0x51 
    Verification error at address 780F. Got: 0x07  Expected: 0x3C 
    Verification error at address 7810. Got: 0x08  Expected: 0x0C 
    Verification error at address 7811. Got: 0x08  Expected: 0x94 
    Verification error at address 7812. Got: 0x09  Expected: 0x51 
    Verification error at address 7813. Got: 0x09  Expected: 0x3C 
    Verification error at address 7814. Got: 0x0A  Expected: 0x0C 
    Verification error at address 7815. Got: 0x0A  Expected: 0x94 
    Verification error at address 7816. Got: 0x0B  Expected: 0x51 
    Verification error at address 7817. Got: 0x0B  Expected: 0x3C 
    Verification error at address 7819. Got: 0x0C  Expected: 0x94 
    Verification error at address 781A. Got: 0x0D  Expected: 0x51 
    Verification error at address 781B. Got: 0x0D  Expected: 0x3C 
    Verification error at address 781C. Got: 0x0E  Expected: 0x0C 
    Verification error at address 781D. Got: 0x0E  Expected: 0x94 
    Verification error at address 781E. Got: 0x0F  Expected: 0x51 
    Verification error at address 781F. Got: 0x0F  Expected: 0x3C 
    Verification error at address 7820. Got: 0x10  Expected: 0x0C 
    Verification error at address 7821. Got: 0x10  Expected: 0x94 
    Verification error at address 7822. Got: 0x11  Expected: 0x51 
    Verification error at address 7823. Got: 0x11  Expected: 0x3C 
    Verification error at address 7824. Got: 0x12  Expected: 0x0C 
    Verification error at address 7825. Got: 0x12  Expected: 0x94 
    Verification error at address 7826. Got: 0x13  Expected: 0x51 
    Verification error at address 7827. Got: 0x13  Expected: 0x3C 
    Verification error at address 7828. Got: 0x14  Expected: 0x0C 
    Verification error at address 7829. Got: 0x14  Expected: 0x94 
    Verification error at address 782A. Got: 0x15  Expected: 0x51 
    Verification error at address 782B. Got: 0x15  Expected: 0x3C 
    Verification error at address 782C. Got: 0x16  Expected: 0x0C 
    Verification error at address 782D. Got: 0x16  Expected: 0x94 
    Verification error at address 782E. Got: 0x17  Expected: 0x51 
    Verification error at address 782F. Got: 0x17  Expected: 0x3C 
    Verification error at address 7830. Got: 0x18  Expected: 0x0C 
    Verification error at address 7831. Got: 0x18  Expected: 0x94 
    Verification error at address 7832. Got: 0x19  Expected: 0x51 
    Verification error at address 7833. Got: 0x19  Expected: 0x3C 
    Verification error at address 7834. Got: 0x1A  Expected: 0x0C 
    Verification error at address 7835. Got: 0x1A  Expected: 0x94 
    Verification error at address 7836. Got: 0x1B  Expected: 0x51 
    Verification error at address 7837. Got: 0x1B  Expected: 0x3C 
    Verification error at address 7838. Got: 0x1C  Expected: 0x0C 
    Verification error at address 7839. Got: 0x1C  Expected: 0x94 
    Verification error at address 783A. Got: 0x1D  Expected: 0x51 
    Verification error at address 783B. Got: 0x1D  Expected: 0x3C 
    Verification error at address 783C. Got: 0x1E  Expected: 0x0C 
    Verification error at address 783D. Got: 0x1E  Expected: 0x94 
    Verification error at address 783E. Got: 0x1F  Expected: 0x51 
    Verification error at address 783F. Got: 0x1F  Expected: 0x3C 
    Verification error at address 7840. Got: 0x20  Expected: 0x0C 
    Verification error at address 7841. Got: 0x20  Expected: 0x94 
    Verification error at address 7842. Got: 0x21  Expected: 0x51 
    Verification error at address 7843. Got: 0x21  Expected: 0x3C 
    Verification error at address 7844. Got: 0x22  Expected: 0x0C 
    Verification error at address 7845. Got: 0x22  Expected: 0x94 
    Verification error at address 7846. Got: 0x23  Expected: 0x51 
    Verification error at address 7847. Got: 0x23  Expected: 0x3C 
    Verification error at address 7848. Got: 0x24  Expected: 0x0C 
    Verification error at address 7849. Got: 0x24  Expected: 0x94 
    Verification error at address 784A. Got: 0x25  Expected: 0x51 
    Verification error at address 784B. Got: 0x25  Expected: 0x3C 
    Verification error at address 784C. Got: 0x26  Expected: 0x0C 
    Verification error at address 784D. Got: 0x26  Expected: 0x94 
    Verification error at address 784E. Got: 0x27  Expected: 0x51 
    Verification error at address 784F. Got: 0x27  Expected: 0x3C 
    Verification error at address 7850. Got: 0x28  Expected: 0x0C 
    Verification error at address 7851. Got: 0x28  Expected: 0x94 
    Verification error at address 7852. Got: 0x29  Expected: 0x51 
    Verification error at address 7853. Got: 0x29  Expected: 0x3C 
    Verification error at address 7854. Got: 0x2A  Expected: 0x0C 
    Verification error at address 7855. Got: 0x2A  Expected: 0x94 
    Verification error at address 7856. Got: 0x2B  Expected: 0x51 
    Verification error at address 7857. Got: 0x2B  Expected: 0x3C 
    Verification error at address 7858. Got: 0x2C  Expected: 0x0C 
    Verification error at address 7859. Got: 0x2C  Expected: 0x94 
    Verification error at address 785A. Got: 0x2D  Expected: 0x51 
    Verification error at address 785B. Got: 0x2D  Expected: 0x3C 
    Verification error at address 785C. Got: 0x2E  Expected: 0x0C 
    Verification error at address 785D. Got: 0x2E  Expected: 0x94 
    Verification error at address 785E. Got: 0x2F  Expected: 0x51 
    Verification error at address 785F. Got: 0x2F  Expected: 0x3C 
    Verification error at address 7860. Got: 0x30  Expected: 0x0C 
    Verification error at address 7861. Got: 0x30  Expected: 0x94 
    Verification error at address 7862. Got: 0x31  Expected: 0x51 
    Verification error at address 7863. Got: 0x31  Expected: 0x3C 
    Verification error at address 7864. Got: 0x32  Expected: 0x0C 
    Verification error at address 7865. Got: 0x32  Expected: 0x94 
    1924 verification error(s).
    First 100 shown.
    Programming mode off.
    Type 'C' when ready to continue with another chip ...
    Attempting to enter ICSP programming mode ...
    Entered programming mode OK.
    Signature = 0x1E 0x95 0x0F 
    Processor = ATmega328P
    Flash memory size = 32768 bytes.
    LFuse = 0xE2 
    HFuse = 0xDA 
    EFuse = 0xFD 
    Lock byte = 0xFF 
    Clock calibration = 0x9A 
    Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader ...
    
    
    C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM3 -b19200 -Uflash:w:C:\Program Files 
    
    (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex:i -Ulock:w:0x0F:m 
    
    avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch
    
             System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
    Reading | ################################################## | 100% 0.01s
    
    avrdude: verifying ...
    avrdude: 1 bytes of lfuse verified
    
    avrdude done.  Thank you.
    
    
             Using Port                    : COM3
             Using Programmer              : stk500v1
             Overriding Baud Rate          : 19200
             AVR Part                      : ATmega328P
             Chip Erase delay              : 9000 us
             PAGEL                         : PD7
             BS2                           : PC2
             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
             Memory Detail                 :
    
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
               flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : STK500
             Description     : Atmel STK500 Version 1.x firmware
             Hardware Version: 2
             Firmware Version: 1.18
             Topcard         : Unknown
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.05s
    
    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 "C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex"
    avrdude: writing flash (32652 bytes):
    
    Writing | ################################################## | 100% -0.00s
    
    avrdude: 32652 bytes of flash written
    avrdude: verifying flash memory against C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex:
    avrdude: load data flash data from input file C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex:
    avrdude: input file C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex contains 32652 bytes
    avrdude: reading on-chip flash data:
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: verifying ...
    avrdude: verification error, first mismatch at byte 0x7800
             0x00 != 0x0c
    avrdude: verification error; content mismatch
    
    avrdude done.  Thank you.
    
    Error while burning bootloader.
    

    This is the result when trying Gammon's Board Programmer on the first Pro Mini:

    Atmega chip programmer.
    Written by Nick Gammon.
    Version 1.35
    Compiled on Mar  4 2016 at 21:31:10 with Arduino IDE 10605.
    Attempting to enter ICSP programming mode ......................................................
    Failed to enter programming mode. Double-check wiring!
    Type 'C' when ready to continue with another chip ...
    Attempting to enter ICSP programming mode ......................................................
    Failed to enter programming mode. Double-check wiring!
    Type 'C' when ready to continue with another chip ...
    

    I hope to one day be able to explain all this, so someone else can avoid making the same mistakes.



  • @mfalkvidd Do you have an USBasp? It works great burning bootloaders. You will be able to recover the fuse as long as you have not set the fuse to disable SPI. If SPI is disabled then the only way to recover is using High Voltage Programmer.


  • Mod

    I don't unfortunately. I have borrowed an avrisp mk ii but I haven't been able to get it working.
    I can absolutely buy an USBasb but if I am unable to get the avrisp mk ii to work, I will probably not succeed with the USBasp either so I need to learn more first.


  • Mod

    By the way, I found http://eleccelerator.com/fusecalc/fusecalc.php?chip=atmega328p&LOW=E2&HIGH=DA&EXTENDED=FD&LOCKBIT=FF for calculating fuses. I find it easier to view than Engbedded's fuse calculator, and it is possible to link directly to any fuse settings which is really nice.



  • @mfalkvidd AVRDudess works with AVRISP mkii as well. Have you tried to detect the Pro Mini chip using AVRDudess+AVRISPMkii. Are you able to detect the chip using Mkii in AVRDudess?


  • Mod


  • Mod

    Finally some success!
    I am now able to read and write the fuses on my Pro Minis using Arduino as ISP.

    I have uploaded the Arduino as ISP sketch (File->Examples->ArduinoISP in the Arduino IDE) to my Uno and connected the Uno to the Pro Mini as per the instructions in the sketch. The key was to use -b 19200 as parameter to avrdude, without that I'm unable to connect.

    Log from reading the fuses:

    C:\Users\Micke>"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude" -C"C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrd
    ude.conf" -v -patmega328p -c stk500v1 -Pcom3 -b 19200
    
    avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch
    
             System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
    
             Using Port                    : com3
             Using Programmer              : stk500v1
             Overriding Baud Rate          : 19200
             AVR Part                      : ATmega328P
             Chip Erase delay              : 9000 us
             PAGEL                         : PD7
             BS2                           : PC2
             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
             Memory Detail                 :
    
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
               flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : STK500
             Description     : Atmel STK500 Version 1.x firmware
             Hardware Version: 2
             Firmware Version: 1.18
             Topcard         : Unknown
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.06s
    
    avrdude: Device signature = 0x1e950f
    avrdude: safemode: lfuse reads as FF
    avrdude: safemode: hfuse reads as DA
    avrdude: safemode: efuse reads as 5
    
    avrdude: safemode: lfuse reads as FF
    avrdude: safemode: hfuse reads as DA
    avrdude: safemode: efuse reads as 5
    avrdude: safemode: Fuses OK (H:05, E:DA, L:FF)
    
    avrdude done.  Thank you.
    

    Log from writing the extended fuse to the same value it already has;

    C:\Users\Micke>"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude" -C"C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrd
    ude.conf" -v -patmega328p -c stk500v1 -Pcom3 -b 19200 -Uefuse:w:0x05:m
    
    avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch
    
             System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
    
             Using Port                    : com3
             Using Programmer              : stk500v1
             Overriding Baud Rate          : 19200
             AVR Part                      : ATmega328P
             Chip Erase delay              : 9000 us
             PAGEL                         : PD7
             BS2                           : PC2
             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
             Memory Detail                 :
    
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
               flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : STK500
             Description     : Atmel STK500 Version 1.x firmware
             Hardware Version: 2
             Firmware Version: 1.18
             Topcard         : Unknown
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.06s
    
    avrdude: Device signature = 0x1e950f
    avrdude: safemode: lfuse reads as FF
    avrdude: safemode: hfuse reads as DA
    avrdude: safemode: efuse reads as 5
    avrdude: reading input file "0x05"
    avrdude: writing efuse (1 bytes):
    
    Writing | ################################################## | 100% 0.03s
    
    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.02s
    
    avrdude: verifying ...
    avrdude: 1 bytes of efuse verified
    
    avrdude: safemode: lfuse reads as FF
    avrdude: safemode: hfuse reads as DA
    avrdude: safemode: efuse reads as 5
    avrdude: safemode: Fuses OK (H:05, E:DA, L:FF)
    
    avrdude done.  Thank you.
    

    Log from turning off BOD:

    C:\Users\Micke>"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude" -C"C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrd
    ude.conf" -v -patmega328p -c stk500v1 -Pcom3 -b 19200 -Uefuse:w:0x07:m
    
    avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch
    
             System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
    
             Using Port                    : com3
             Using Programmer              : stk500v1
             Overriding Baud Rate          : 19200
             AVR Part                      : ATmega328P
             Chip Erase delay              : 9000 us
             PAGEL                         : PD7
             BS2                           : PC2
             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
             Memory Detail                 :
    
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
               flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : STK500
             Description     : Atmel STK500 Version 1.x firmware
             Hardware Version: 2
             Firmware Version: 1.18
             Topcard         : Unknown
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.06s
    
    avrdude: Device signature = 0x1e950f
    avrdude: safemode: lfuse reads as FF
    avrdude: safemode: hfuse reads as DA
    avrdude: safemode: efuse reads as 5
    avrdude: reading input file "0x07"
    avrdude: writing efuse (1 bytes):
    
    Writing | ################################################## | 100% 0.05s
    
    avrdude: 1 bytes of efuse written
    avrdude: verifying efuse memory against 0x07:
    avrdude: load data efuse data from input file 0x07:
    avrdude: input file 0x07 contains 1 bytes
    avrdude: reading on-chip efuse data:
    
    Reading | ################################################## | 100% 0.02s
    
    avrdude: verifying ...
    avrdude: 1 bytes of efuse verified
    
    avrdude: safemode: lfuse reads as FF
    avrdude: safemode: hfuse reads as DA
    avrdude: safemode: efuse reads as 7
    avrdude: safemode: Fuses OK (H:07, E:DA, L:FF)
    
    avrdude done.  Thank you.
    

  • Mod

    And I'm also able to upload a new bootloader to Pro Minu from Arduino IDE using an Arduino UNO as ISP.
    The ArduinoISP guide says that I might need to put a capacitor between reset and gnd on the Uno, but what I had to do is put a capacitor (0.1uF) on between reset and gnd the target Arduino Pro Mini.

    I don't understand why I need to do that, but uploading fails (avrdude says "verification error") 10 out of 10 tries without the capacitor. Upload is successful 10 out of 10 times with the capacitor.

    This is the log from a successful upload, in case it is useful for anyone else:

    C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM3 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m 
    
    avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch
    
             System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
    
             Using Port                    : COM3
             Using Programmer              : stk500v1
             Overriding Baud Rate          : 19200
             AVR Part                      : ATmega328P
             Chip Erase delay              : 9000 us
             PAGEL                         : PD7
             BS2                           : PC2
             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
             Memory Detail                 :
    
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
               flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : STK500
             Description     : Atmel STK500 Version 1.x firmware
             Hardware Version: 2
             Firmware Version: 1.18
             Topcard         : Unknown
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.06s
    
    avrdude: Device signature = 0x1e950f
    avrdude: erasing chip
    avrdude: reading input file "0x3F"
    avrdude: writing lock (1 bytes):
    
    Writing | ################################################## | 100% 0.03s
    
    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.02s
    
    avrdude: verifying ...
    avrdude: 1 bytes of lock verified
    avrdude: reading input file "0x05"
    avrdude: writing efuse (1 bytes):
    
    Writing | ################################################## | 100% 0.06s
    
    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.02s
    
    avrdude: verifying ...
    avrdude: 1 bytes of efuse verified
    avrdude: reading input file "0xDA"
    avrdude: writing hfuse (1 bytes):
    
    Writing | ################################################## | 100% 0.02s
    
    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.02s
    
    avrdude: verifying ...
    avrdude: 1 bytes of hfuse verified
    avrdude: reading input file "0xFF"
    avrdude: writing lfuse (1 bytes):
    
    C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM3 -b19200 -Uflash:w:C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex:i -Ulock:w:0x0F:m 
    Writing | ################################################## | 100% 0.02s
    
    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.02s
    
    avrdude: verifying ...
    avrdude: 1 bytes of lfuse verified
    
    avrdude done.  Thank you.
    
    
    avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch
    
             System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
    
             Using Port                    : COM3
             Using Programmer              : stk500v1
             Overriding Baud Rate          : 19200
             AVR Part                      : ATmega328P
             Chip Erase delay              : 9000 us
             PAGEL                         : PD7
             BS2                           : PC2
             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
             Memory Detail                 :
    
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
               flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : STK500
             Description     : Atmel STK500 Version 1.x firmware
             Hardware Version: 2
             Firmware Version: 1.18
             Topcard         : Unknown
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.06s
    
    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 "C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex"
    avrdude: writing flash (32652 bytes):
    
    Writing | ################################################## | 100% 0.00s
    
    avrdude: 32652 bytes of flash written
    avrdude: verifying flash memory against C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex:
    avrdude: load data flash data from input file C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex:
    avrdude: input file C:\Program Files (x86)\Arduino\hardware\arduino\avr/bootloaders/atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex contains 32652 bytes
    avrdude: reading on-chip flash data:
    
    Reading | ################################################## | 100% -0.00s
    
    avrdude: verifying ...
    avrdude: 32652 bytes of flash verified
    avrdude: reading input file "0x0F"
    avrdude: writing lock (1 bytes):
    
    Writing | ################################################## | 100% 0.06s
    
    avrdude: 1 bytes of lock written
    avrdude: verifying lock memory against 0x0F:
    avrdude: load data lock data from input file 0x0F:
    avrdude: input file 0x0F contains 1 bytes
    avrdude: reading on-chip lock data:
    
    Reading | ################################################## | 100% 0.02s
    
    avrdude: verifying ...
    avrdude: 1 bytes of lock verified
    
    avrdude done.  Thank you.
    

  • Hardware Contributor

    The cap definitly has to on the programmer (uno) between reset and ground. Otherwise when you try to reset the target board for reprogramming you just reset the programmer (and then the programming fails).
    Strange that it worked the other way.


  • Mod

    After visiting @m26872 and getting great insights to his workflow and his projects, I can report this:

    • The avrisp mk ii I borrowed from a co-worker does not work. So that's why I wasn't successful using that device. AVR Studio gave some helpful error messages, much more helpful than Arduino IDE, so lesson learned: Use AVR Studio when troubleshooting.
    • Using my Arduino Uno as ISP worked fine at his place, even without the capacitor. When I got home, I tried 10 times without the capacitor and all but 1 were successful. Strange. But at least it works 🙂
    • We were not able to revive any of the 4 Pro Mini i "bricked" when experimenting. Good thing they are so cheap 🙂

    A BIG thanks to m26872 for helping me and for a nice visit to his home.


Log in to reply
 

Suggested Topics

  • 3
  • 24
  • 2
  • 2
  • 4
  • 2

22
Online

11.2k
Users

11.1k
Topics

112.5k
Posts