Cannot bootload new ATMega328P-PB(s)

I have 4 brand new ATMEGA328P and I try to bootload them but non of them successes.

Ways I have tried:

USBasp -> ATMEGA328P on breadboard (with external 16M oscillator, 10K pull-up resistor) USBasp -> ATMEGA328P on breadboard (with nothing, minimum config) USBasp -> ATMEGA328P on Arduino UNO Arduino UNO as ISP -> ATMEGA328P on breadboard (with external 16M oscillator, 10K pull-up resistor)

I purchased chips from 2 different vendors so it should not be the chip's problem. I checked the wiring for many many times and there should not be any problem with it. I can use any of the above setup to bootload a bootloaded ATMEGA328P (the one comes with the UNO board), but not any brand new one.

System is Ubuntu 16.04. Installed Avrdude 6.3. USBasp is the standard one from www.fischl.de.

This is the output when using USBasp:

root@Howard-Ubuntu:/home/howard# avrdude -c usbasp -p m328p -v

avrdude: Version 6.3, compiled on Jun 16 2017 at 22:44:18 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/root/.avrduderc" User configuration file does not exist or is not a regular file, skipping

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: error: program enable: target doesn't answer. 1 avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.

avrdude done. Thank you.

This is the output when using arduino UNO as ISP:

howard@Howard-Ubuntu:~$ avrdude -c avrisp -P /dev/ttyACM0 -p m328p

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x000000 (retrying)

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

avrdude: Device signature = 0x000000 (retrying)

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

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.

I'm confused by your posts title - ATMega328P-PB. The everyday 28 pin dip part should be marked ATMEGA328P-PU.

There is a newer version of the part which is ATMEGA328PB but it's not available in 28 pin dip packages.

What is the exact marking on the devices you purchased?

+1 for what avr_fred said, but also the fact that you're getting a device signature of 0 points towards a wiring problem.