FIXED.
After checking design on the breakout board, I concluded that for some reason atmegas were not responsive. (not even with external crstal). After getting access to new batch of working atmegas, that I double checked with https://www.adafruit.com/product... I resosoldered them and design works now.
-----------------------------------------------
I am new to the electronics world. I try to build boards described in this project http://owhl.org/electronics-buil.... (CPU board).
I have bought ATMEGA328p AU microchips from 2 different suppliers (since there are some fake atmegas) and I assembled 3 different boards - making sure its done well.
I connect to the chip using ISP serial port and I checked connectivity between ISP header pins and atmega pins (all tests passed).
The atmegas should be - bare metal (without bootloader).
However when I was trying read the chip signature using avr dude - and usb tiny I keep on getting same error on 3 boards:
The setup is: assembled board with atmega -> isp port -> isp port on usb tiny -> usb port on my lapotop
anna:~/$ /home/anna/arduino-1.8.5/hardware/tools/avr/bin/avrdude -C/home/anna/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf - -v -patmega328p -usbtiny
avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/home/anna/Downloads/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/home/anna/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : usb
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 001:008
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 : USBtiny
Description : USBtiny simple USB programmer, http://www.ladyada.net/make/usbt...
avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
I already experimented with different programmers. Thye work so the problem is not in the programmer. I have measured voltage on isp header on my board (there is power).
Assuming the design is correct and beside buying fake atmega - what could get wrong?
*I did already comparisions of marking and visual inspections, that is also why i bought atmeags from different suppliers - one of them was Heisner electronics.
Possible tests to do:
1) check atmega clock pin using oscilloscope (but in some michrochips) it is dissabled
2) check miso/mosi pin using osciloscope - since it should generate
Do you have some other ideas what should I check to understand why I cannot connect?
Thanks




