Bootloader for Atmega328p U-KR

Hi there,
recently purchased some cheap pro-mini boards and I'm having issues with burning a bootloader for them.
This is 5v 16Mhz version.




D:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CD:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cusbasp -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m 

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "D:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : usbasp
         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 : usbasp
         Description     : USBasp, http://www.fischl.de/usbasp/

avrdude: auto set sck period (because given equals null)
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)

Error while burning bootloader.
Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0xffffff (probably .avr8x_mega)
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

avrdude done.  Thank you.

Anyone have an idea?

do you have an usbasp programmer? how did you wire it to the Mini?

Aren't ProMinis supposed to come with a bootloader? Just curious as to why you want to burn a boot loader?

Yes I used a usbasp programmer.

Yes they are, for some reason bootloader stopped working. Meaning code upload from serial didnt work. So I though of burning the bootloader with the usbasp programmer, hence this issue came about.

1 Like

If avrdude can't read the device signature, then it's likely a wiring issue between your ProMini and the usbasp programmer. As @Juraj asked back in post #2, what wires did you connect between the ProMini to the usbasp programmer, and where did you connect them?

@markd833 wiring issue cannot be because I have another board which I bought together with this this faulty one, and it has no issue burning the UNO bootloader with this same setup.

My programing tool setup;




then check soldering of SPI pins on the bad Mini.

checked with a multi meter for continuity and re-soldered all the joints.
Have good continuity.
Issue is still same.
However, I realize the chip is warm and that is unusual right?
Guess I might have toasted the chip while playing around?

Yes, it's probably damaged.

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