Sorry ahead of time for the large message, but I know that details are usually appreciated in helping debug issues.
This is Part 1 of a few Parts, because of the exceeded size limit
I am having problems boot loading and loading sketches to the Atmega328p-pu chip.
Let me start by defining a few things:
I am using a windows 7 (64bit) platform
Arduino IDE 1.0
Avrdude 5.10
Pocket AVR programmer (https://www.sparkfun.com/products/9825
FT232RL USB to Serial breakout board (SparkFun USB to Serial Breakout - FT232RL - BOB-12731 - SparkFun Electronics)
And I followed the procedure to build a breadboard for boot loading and programming from: http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard
I quadruple checked my setup numerous times to make sure it was correct.
Note: I did have to pin test the AVR programmer 6-pin connector and found that it has to be inserted in the opposite direction as shown in step 6.3 http://itp.nyu.edu/physcomp/uploads/arduinobload_plugin.jpg. The supplied 6-pin has to go in the opposite direction from what is shown in this image.
Step 6.4 "Time to Burn" does not work and lead me down the following path: Using AVRdude directly for the boot load.
I had issues getting the drivers all installed, but in the end, I basically followed the procedure details outlined by BeagleBoy at the top of the comments list at: https://www.sparkfun.com/products/9825
It did not work fist time and had to uninstall and reinstall a couple of times, but in the end, I have the following results in DeviceManager when both the Programmer and USB FT232RL are plugged in:
Device Manager: (Partial list)
- LibUSB-Win32 Devices
- USBtiny
- Ports (Com & LPT)
- USB Serial Port (COM4)
- Other Devices
- Unknown device
To try using the Arduino IDE 1.0 to program the boot loader, I do the following:
Tools/Board: Set to Arduino Uno
Tools/Serial Port: Com4 is selected and recognized, i.e. the FT232R is seen.
Tools/Programmer: Set to USBtinyISP
Files/Preferences: select verbose output for both compilation and upload.
Then, running Tools/Burn Bootloader, I recieve the following message:
C:\Program Files (x86)\arduino-1.0\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\arduino-1.0\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cusbtiny -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xde:m -Ulfuse:w:0xff:m
avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\arduino-1.0\hardware/tools/avr/etc/avrdude.conf"
Using Port : lpt1
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: bus-0:\\.\libusb0-0001--0x1781-0x0c9f
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
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
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/usbtinyisp/
avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 00 53 53]
avrdude: AVR device initialized and ready to accept instructions
Reading | CMD: [30 00 00 00] [53 73 73 73]
CMD: [30 00 01 00] [73 73 73 73]
################CMD: [30 00 02 00] [73 73 73 73]
################################## | 100% 0.01s
avrdude: Device signature = 0x737373
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
Double check chip, or use -F to override this check.
avrdude done. Thank you.
I think that the bottom line is that the Device Signature is wrong. I have tried a couple of chips and each returns 0x737373 for the signature. I also noticed that in the message above it says "avrdude: programmer operation not supported". Not sure if this is also an issue or not.
My largest issue is WHY do I always get a 0x737373 return from any of the Atmega328p-pu chips that I put in?
Shouldn't it be reading 1E 95 0F for this chip???
Next step in next message below...