avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 14
avrdude: reading input file "grbl_v0_8b_edge_328p_16mhz_9600_build20121013.hex"
avrdude: error opening grbl_v0_8b_edge_328p_16mhz_9600_build20121013.hex: No such file or directory
avrdude: input file grbl_v0_8b_edge_328p_16mhz_9600_build20121013.hex auto detected as invalid format
avrdude: can't open input file grbl_v0_8b_edge_328p_16mhz_9600_build20121013.hex: No such file or directory
avrdude: read from file 'grbl_v0_8b_edge_328p_16mhz_9600_build20121013.hex' failed
avrdude: safemode: Fuses OK
avrdude done. Thank you.
As you can see, I changed the device signature from 1E 95 0F to 1E 95 14 (for PU chip). The original signature gave the type of error. I am able to run sketches including controlling a stepper motor using easy driver board.
Since I seem to be having a communication problem, I also tried a different usb cable and different modem ports…no luck.
I running a MacBook Pro with Mountain Lion installed. This is the code I'm using:
I changed the chip code based on information in the following forum link:
I had the same error message with the original chip code contained in avrdude.conf. as follows:
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
My chips are 328P-PU. Is there a different code for these chips?
Yes, blink works OK. I have also been able to run all three of Brian Schmalz’s stepper motor examples. Today I added a joystick shield and it seems to work OK (position outputs show up the serial monitor). Thanks.
Still no luck with 328P-PU device codes. I tried everything I can of. I ran the Loop-Back test and it checked ok. I have run several sketches with serialWrite and digitalWrite with success. But, every time I try to upload a hex file for my CNC project, I get:
avrdude: AVR device initialized and ready to accept instructions
Regarding the moderator comment "f you are seeing this:
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
Then it looks to me that you do not have a '328P plugged in."
These are two new Unos purchased from amazon.com (different vendors). The chips on both are marked ATMEG328P-PU. Could they be counterfeit or clones? They were in nicely sealed packages and the boards are marked Made in Italy.
Also is there a way to determine the device code of a board? Thanks.