I sampled some microcontrollers from Atmel not too long ago and I picked up some of what I thought were the Arduino Uno uCs.
Turns out, instead of grabbing the ATmega328P-PU, I got the P-PN. I did some digging around and the general consensus is that the P-PU one refers to pico-power. I also read that operating temps were a little different but other than that, it shouldn't be any different.
So, here is my problem: I have been trying to burn the bootloader onto them but, alas, to no avail.
I am using my Arduino Uno R3 wired up through pins 10, 11, 12, & 13 to a standalone ATmega328P-PN using its own internal oscillator on a breadboard.
I have added this to my /boards.txt file:
##############################################################
atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock)
atmega328bb.upload.protocol=stk500
atmega328bb.upload.maximum_size=30720
atmega328bb.upload.speed=57600
atmega328bb.bootloader.low_fuses=0xE2
atmega328bb.bootloader.high_fuses=0xDA
atmega328bb.bootloader.extended_fuses=0x05
atmega328bb.bootloader.path=arduino:atmega
atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex (strikeout is the incorrect part)
atmega328bb.bootloader.unlock_bits=0x3F
atmega328bb.bootloader.lock_bits=0x0F
atmega328bb.build.mcu=atmega328p
atmega328bb.build.f_cpu=8000000L
atmega328bb.build.core=arduino:arduino
atmega328bb.build.variant=arduino:standard
I know that there are some incorrect settings in there and I can see them but I don't know what the valid corrections would be. I didn't try too much with this method; at least not until I know the information is correct.
I tried my hand at optiLoader which uses a sketch to burn the bootloader onto the blank microcontroller. I uploaded the sketch to my Uno and then hit the reboot to initiate the burn. I didn't get any error message but every time I try to upload a sketch (Blink, even), I get this error code:
avrdude: stk500_getsync(): not in sync: resp=0x00
When I tried to do the conventional "Arduino as ISP" and then "Burn Bootloader" under the Tools menu but I got these two different error codes (one code at one attempt and the second during another attempt):
avrdude: stk500_getsync(): not in sync: resp=0x30
...and...
avrdude: stk500_getsync(): not in sync: resp=0x98
I am using Windows 7 Professional and I am using the Arduino IDE version 1.0.5-r2. Please someone tell me what I am doing wrong or could someone point me in the right direction.
Is it simply that it won't work with the ATmega328P-PN?
Thank you for reading through this and thanks for helping out.