Arduino Forum

Using Arduino => Microcontrollers => Topic started by: qwertymodo on Feb 20, 2012, 07:21 am

Title: [SOLVED] ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Feb 20, 2012, 07:21 am
I'm new to the Arduino and just starting to play around with my Mega 2650r3, but one thing I wanted to try out was the ArduinoISP capability to flash an Atmega8515 for another project I'm working on.  I have the Intel-format .hex file I wish to flash and I know the pinout for hooking it up, and I've have tried following the tutorial's I've found, but I have a feeling that I'm missing something in the configuration for flashing on a breadboard (preferably the barebones setup without additional components on the board).  I can get as far as uploading ArduinoISP to the Mega and then firing up avrdude and initializing the chip, but when I try to flash the actual .hex, it gives me a protocol error.  I'll post any more detailed information that may be necessary, but I'm pretty sure I am missing some basic setup, since most of the tutorials I've found are for programming other chips, so I may be incorrectly configured.  Any pointers would be greatly appreciated.

EDIT: For anyone reading this later for reference, I ended up wiring up the entire circuit shown here http://arduino.cc/en/Tutorial/ArduinoToBreadboard (http://arduino.cc/en/Tutorial/ArduinoToBreadboard) using an external crystal, the barebones layout did NOT work.  I then had to follow this hack http://code.google.com/p/arduino/issues/detail?id=661#c3 (http://code.google.com/p/arduino/issues/detail?id=661#c3) to get ArduinoISP to play nice.  Also, to clear up a couple of things that were not quite clear to me as a noob searching aimlessly on the internet, this does require a 100nF (.1uF) cap across RESET and GND on the Arduino inserted AFTER the ArduinoISP sketch has been uploaded but BEFORE uploading the .hex to the 8515, and the 22pF caps on the crystal recommended in the above linked guide worked fine even though my project manual indicated the need for 27's.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Feb 20, 2012, 07:40 am
Quote
it gives me a protocol error


- ? -
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Feb 20, 2012, 07:53 am
Sorry, I tried it last night and have since disconnected it.  Didn't remember the exact error offhand.  I'll hook it back up and post back.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Feb 20, 2012, 08:26 am
If it happens to be relevant, using the project documentation I have, this is how it's all connected:

       MEGA || 8515
MISO  50         7
MOSI  51         6
SCK    52         8
SS      53         9
    +5v            40
   GND            20

And here's the output of avrdude:

Code: [Select]
C:\>avrdude -p m8515 -P com7 -c avrisp -b 19200 -U flash:w:gbcf-fw-2.1-usb.hex

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATMEGA8515
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.14s

avrdude: Device signature = 0x1e9306
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATMEGA8515
avrdude: reading input file "gbcf-fw-2.1-usb.hex"
avrdude: input file gbcf-fw-2.1-usb.hex auto detected as Intel Hex
avrdude: writing flash (3614 bytes):

Writing |                                                    | 0% 0.00s
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): protocol error
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Feb 20, 2012, 08:50 am

Using Arduino IDE 1.0?
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Feb 20, 2012, 08:59 am
I used Arduino IDE to flash the ArduinoISP sketch to the Arduino, then I used avrdude manually from the command-line because I couldn't find any way to program a specified .hex file to a specified microcontroller, only the presets for the Arduino controllers.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Feb 20, 2012, 09:09 am

Which version of the Arduino IDE did you use to compile the ArduinoISP sketch?
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Feb 20, 2012, 09:19 am
Whatever the latest version was as of a week or so ago.  It says 1.0.  And I'm using the ArduinoISP sketch that came with it.  File>Examples>ArduinoISP
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Feb 20, 2012, 09:38 am

The failure is the result of a bug in the ArduinoISP sketch surfaced by a change in the Arduino IDE 1.0.  You can either lower the baud rate to 9600 (http://code.google.com/p/arduino/issues/detail?id=661&can=1&q=arduinoisp) or send me a Personal Message (http://arduino.cc/forum/index.php?action=pm;sa=send;u=10859) with your email address and I'll reply with a version that works.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Feb 20, 2012, 09:42 am
So, I did some more reading, and from what I've seen, I need to disable auto-reset?  I read that a 120ohm resistor or 100nm cap bridging from +5v to reset should be sufficient.  From what I have on hand, I have an equivalent resistance of ~114ohms across it and here's what I get now:

Code: [Select]
C:\>avrdude -p m8515 -P com7 -c avrisp -b 19200 -U flash:w:gbcf-fw-2.1-usb.hex

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATMEGA8515
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.13s

avrdude: Device signature = 0x1e9306
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATMEGA8515
avrdude: reading input file "gbcf-fw-2.1-usb.hex"
avrdude: input file gbcf-fw-2.1-usb.hex auto detected as Intel Hex
avrdude: writing flash (3614 bytes):

Writing |                                                    | 0% 0.00s
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): programmer is out of sync
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Feb 20, 2012, 09:45 am
Tried the baud rate change and this is what I got:

Code: [Select]
C:\>avrdude -p m8515 -P com7 -c avrisp -b 9600 -U flash:w:gbcf-fw-2.1-usb.hex
avrdude: stk500_getsync(): not in sync: resp=0xff

avrdude done.  Thank you.


My email is my username at yahoo, I'll be glad to give the fixed version a try.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Feb 20, 2012, 10:12 am

Email is on the way.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Feb 20, 2012, 10:32 am
The version you sent me gives even stranger errors than I was getting before...

Code: [Select]
C:\>avrdude -p m8515 -P com7 -c avrisp -b 19200 -U flash:w:gbcf-fw-2.1-usb.hex

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATMEGA8515
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.10s

avrdude: Device signature = 0x1e9306
avrdude: safemode: Verify error - unable to read lfuse properly. Programmer may
not be reliable.
avrdude: safemode: To protect your AVR the programming will be aborted

avrdude done.  Thank you.


It's 1:30am here, so I'm gonna call it a night.  But thanks for the help so far.  Hopefully, we'll get this sorted...
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Feb 20, 2012, 10:41 am

[font=Courier New]avrdude -p m8515 -P com7 -c stk500 -v -v -v -b 19200 -U flash:w:gbcf-fw-2.1-usb.hex[/font]
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 08, 2012, 03:14 am
I started on another project (musical floppy drives :D) so I've ignored this for awhile, and now that I decided to give it another try, I just accidentally broke off a wire end in the header for MOSI (pin 51).  Any ideas for removing a wire that's gotten broken off in the pin header?
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Mar 08, 2012, 03:42 am

There have been two suggestions on the forum: 1. Use a needle.  2. Remove the plastic shroud.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 10, 2012, 02:04 am
Ok, so I got that sorted out (kinda... it works for now :P).  I want to give this another shot, but I'm going to start fresh and make no assumption that I have any idea what I'm doing here.  The information I'm going off of originated from http://www.instructables.com/id/How-to-use-Arduino-Mega-2560-as-Arduino-isp/ (http://www.instructables.com/id/How-to-use-Arduino-Mega-2560-as-Arduino-isp/) and http://arduino.cc/en/Tutorial/ArduinoToBreadboard (http://arduino.cc/en/Tutorial/ArduinoToBreadboard), neither of which actually discusses programming to the 8515, but I'm assuming that the information is still applicable other than pin assignments on the microcontroller itself.  My information regarding the 8515 is coming from the project manual for the project I'm actually building

Manual:
http://www.reinerziegler.de/GB-Flasher/gbcflsh_manual.pdf (http://www.reinerziegler.de/GB-Flasher/gbcflsh_manual.pdf)

Schematic:
http://www.reinerziegler.de/GB-Flasher/schem+pcb/GB%20Cart%20Flasher%20(USB).pdf (http://www.reinerziegler.de/GB-Flasher/schem+pcb/GB%20Cart%20Flasher%20(USB).pdf)

Ok, so with all of that info, I've attached a picture to show what my board setup looks like (the LED is just a leftover from some other stuff I was working on...)

One thing I've been wondering is, do I need the 100uF cap across RST->GND on the Arduino to prevent auto-reset like I've read several places or is that not an issue?  Do I need the external crystal while flashing or can I do it this way?  Basically, I just want to make sure there are no errors in my hookup before continuing to hunt down the problem on the software side.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Mar 10, 2012, 02:19 am
Quote
Basically, I just want to make sure there are no errors in my hookup before continuing to hunt down the problem on the software side.


GNDs need to be connected.

Is the target powered close to 5 volts?

Quote
One thing I've been wondering is, do I need the 100uF cap across RST->GND on the Arduino to prevent auto-reset like I've read several places?


Yes.

Quote
Do I need the external crystal while flashing or can I do it this way? 


If the target will be running from an external crystal then you will need to connect the external crystal while flashing.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 10, 2012, 02:54 am
Quote
GNDs need to be connected.

Which GND's?  Do I nee to connect the Arduino's GND to the breadboard GND?

Quote
Is the target powered close to 5 volts?

The breadboard supply line is connected to an external 5v 1000mA source.

Quote
If the target will be running from an external crystal then you will need to connect the external crystal while flashing.

It will be.  So I take it that I should be following more closely to the first scenario on the arduino.cc ArduinoToBreadboard guide for breadboard setup, rather than the barebones setup I have now?  If so, do I need the capacitors as well and how do I figure out which pins on the 8515 I should be wiring this stuff up to?  I'm assuming from the project wiring schematic that the crystal goes between pins 18 and 19, but I have no idea for the capacitors.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Mar 10, 2012, 03:26 am
Which GND's?  Do I nee to connect the Arduino's GND to the breadboard GND?


Yes.

Quote
The breadboard supply line is connected to an external 5v 1000mA source.


Perfect.

Quote
So I take it that I should be following more closely to the first scenario on the arduino.cc ArduinoToBreadboard guide for breadboard setup, rather than the barebones setup I have now?


At the point you change the fuses so the processor runs from the external crystal you will have to have the crystal connected.  Until then you can play with the target without connecting the external crystal.  The processor leaves the factory ready-to-run.

Quote
If so, do I need the capacitors as well


If you are using a crystal then yes.  If you are using a resonator then the capacitors are built-in.

Quote
and how do I figure out which pins on the 8515 I should be wiring this stuff up to?


Datasheet.  The crystal or resonator is connected across XTAL1 and XTAL2 (physical pins 18 and 19).

Quote
I'm assuming from the project wiring schematic that the crystal goes between pins 18 and 19, but I have no idea for the capacitors.


The capacitors are connected from the pin to GND.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 10, 2012, 05:25 am
I don't have the right size caps and neither did RadioShack.  I'll have to drop by the school tomorrow and pick some up from the bookstore (yay tech school bookstores :D)
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 10, 2012, 05:42 am
Ok, so other than the resistor and caps being the wrong value (just threw in ones I had lying around for the sake of the picture, I'll get the right ones tomorrow) does this hookup look right?

The wires are:

                   Ard.  8515
RED:   MISO   50      7
YLW:  MOSI    51      6
GRN:  SCK     52      8
BLUE: SS       53      9

The crystal is between 18 and 19, with a cap on either side of it each connected to GND.  Pin 40 on the 8515 is tied to +5v and pin 20 goes to GND.  Breadboard GND is tied to Arduino GND, Arduino +5v is bridged to Arduino RESET by a 100nF cap.  10k resistor between the 8515 pin 9 (RESET) to GND  Breadboard has external +5v source (using an old phone charger I picked up at Goodwill :P) Anything else I'm missing?

Here's the 8515 pinout for reference http://circuits.datasheetdir.com/18/ATMEGA8515-pinout.jpg (http://circuits.datasheetdir.com/18/ATMEGA8515-pinout.jpg)
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Mar 10, 2012, 07:02 am

Crystal capacitors go to GND not +5V.  Other than that it looks good.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 10, 2012, 09:38 pm
Woops, good catch -_-  Turns out, the school bookstore has new owners and doesn't open on Saturdays anymore, so I'll have to wait till Monday to get parts :(
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: SirNickity on Mar 12, 2012, 10:06 pm
Unless I've missed something, you don't ever need a cap between +5v and reset.

You put a 100nF between +5v and Gnd to filter noise as close to the Vcc pin as possible (optional, recommended) and likewise one between DTR and reset if you're using FTDI for serial.  You DO, however, want the 10K resistor between +5v and reset -- this pulls it high unless grounded to reset.

Also, just a nitpick -- resonators don't always have built-in caps.  I have some that do, some that don't.  Check for the third leg.  FYI, it doesn't necessarily have to be 22nF on the nose.  Remember, most caps are 5% tolerance anyway.  I have 20nF, 27nF and 30nF in my parts bin.  No 22s.  (Just what I have.  No good reason for those values in particular.)

Oh, one last thing..  You might want to check the output voltage on that PSU.  Remember, transformers usually aren't rated at 5v exactly, especially not without a load.  Under light or no load, they may go significantly higher.  If it's regulated (probably the case for a cellphone charger, but not necessarily for a cordless phone) then you're all set.  If not, you need 7v+ and a 5v regulator.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 13, 2012, 12:35 am

Unless I've missed something, you don't ever need a cap between +5v and reset.

You DO, however, want the 10K resistor between +5v and reset -- this pulls it high unless grounded to reset.


Just to clarify, the cap is between +5v and RST on the Arduino being used as the ISP, the 10k resistor is between +5v and RST on the chip being programmed... correct?

Also, I'm using a crystal with 22u caps, so no issue there, and my multimeter says the PSU is running @ 4.97V so that's good as well.  Goodwill FTW :)
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Mar 13, 2012, 02:06 am
Just to clarify, the cap is between +5v and RST on the Arduino being used as the ISP ... correct?


Not correct.  (Sorry I missed that in your earlier post.)  The capacitor goes from RESET to GND (after uploading the ArduinoISP sketch).

When using a (120 ohm) resistor to disable auto-reset, the resistor is connected from RESET to +5V.

Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 13, 2012, 04:46 am

Not correct.  (Sorry I missed that in your earlier post.)  The capacitor goes from RESET to GND (after uploading the ArduinoISP sketch).

When using a (120 ohm) resistor to disable auto-reset, the resistor is connected from RESET to +5V.




Woops, that's actually how I have it hooked up, I wasn't really paying attention when I typed :P
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 14, 2012, 03:16 am
Finally got the last of the parts, hooked it up, flashed the ArduinoISP sketch, fired up avrdude and got this:

Code: [Select]
avrdude: stk500_2_ReceiveMessage(): timeout

[repeats the timeout message over and over for several minutes]


Then after a few minutes this comes up:

Code: [Select]
avrdude: stk500v2_getsync(): timeout communicating with programmer
         AVR Part                      : ATMEGA8515
         Chip Erase delay              : 9000 us
         PAGEL                         : P00
         BS2                           : P00
         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         4    10   128    0 no        512    0      0  9000  9000 0xff 0xff
                                  Block Poll               Page      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         33     6    64    0 yes      8192   64    128  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
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           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          4    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 : STK500V2
         Description     : Atmel STK500
         Programmer Model: Unknown
avrdude: stk500_2_ReceiveMessage(): timeout
[continues repeating every few seconds]


I get the same error with the TinyISP sketch that Coding Badly sent me.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Mar 14, 2012, 03:19 am
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer


You've specified the wrong protocol.  "STK500" (versus "STK500V2") is the correct choice.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 14, 2012, 04:17 am
I specified stk500 (not v2).  Just for kicks, I tried them both:

Code: [Select]
C:\>avrdude -p m8515 -P com7 -c stk500 -v -v -v -b 19200 -U flash:w:gbcf-fw-2.1-usb.hex

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com7
         Using Programmer              : stk500
         Overriding Baud Rate          : 19200
avrdude: stk500_2_ReceiveMessage(): timeout


Code: [Select]
C:\>avrdude -p m8515 -P com7 -c stk500v2 -v -v -v -b 19200 -U flash:w:gbcf-fw-2.1-usb.hex

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com7
         Using Programmer              : stk500v2
         Overriding Baud Rate          : 19200
avrdude: stk500_2_ReceiveMessage(): timeout
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: Coding Badly on Mar 14, 2012, 05:09 am

Try the "arduino" protocol...

[font=Courier New]avrdude -p m8515 -P com7 -c  arduino  -v -v -v -b 19200 -U flash:w:gbcf-fw-2.1-usb.hex[/font]
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 14, 2012, 05:42 am


Try the "arduino" protocol...

[font=Courier New]avrdude -p m8515 -P com7 -c  arduino  -v -v -v -b 19200 -U flash:w:gbcf-fw-2.1-usb.hex[/font]



Finally, some headway :)  Unfortunately, new errors :(

Code: [Select]
C:\>avrdude -p m8515 -P com7 -c  arduino  -v -v -v -b 19200 -U flash:w:gbcf-fw-2.1-usb.hex

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com7
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200
         AVR Part                      : ATMEGA8515
         Chip Erase delay              : 9000 us
         PAGEL                         : P00
         BS2                           : P00
         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         4    10   128    0 no        512    0      0  9000  9000 0xff 0xff
                                  Block Poll               Page      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         33     6    64    0 yes      8192   64    128  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
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           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          4    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 : Arduino
         Description     : Arduino
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: please define PAGEL and BS2 signals in the configuration file for part ATMEGA8515
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e9306
avrdude: safemode read 1, lfuse value: e1
avrdude: safemode read 2, lfuse value: e1
avrdude: safemode read 3, lfuse value: e1
avrdude: safemode: lfuse reads as E1
avrdude: safemode read 1, hfuse value: d9
avrdude: safemode read 2, hfuse value: d9
avrdude: safemode read 3, hfuse value: d9
avrdude: safemode: hfuse reads as D9
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATMEGA8515
avrdude: reading input file "gbcf-fw-2.1-usb.hex"
avrdude: input file gbcf-fw-2.1-usb.hex auto detected as Intel Hex
avrdude: writing flash (3614 bytes):

Writing | ################################################## | 100% 5.67s

avrdude: 3614 bytes of flash written
avrdude: verifying flash memory against gbcf-fw-2.1-usb.hex:
avrdude: load data flash data from input file gbcf-fw-2.1-usb.hex:
avrdude: input file gbcf-fw-2.1-usb.hex auto detected as Intel Hex
avrdude: input file gbcf-fw-2.1-usb.hex contains 3614 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 3.02s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0010
         0x87 != 0x88
avrdude: verification error; content mismatch

avrdude: safemode read 1, lfuse value: e1
avrdude: safemode read 2, lfuse value: e1
avrdude: safemode read 3, lfuse value: e1
avrdude: safemode: lfuse reads as E1
avrdude: safemode read 1, hfuse value: d9
avrdude: safemode read 2, hfuse value: d9
avrdude: safemode read 3, hfuse value: d9
avrdude: safemode: hfuse reads as D9
avrdude: safemode: Fuses OK

avrdude done.  Thank you.
Title: Re: ArduinoISP programming Atmega8515 on breadboard
Post by: qwertymodo on Mar 14, 2012, 06:01 am
I finally got it working using the ArduinoISP example sketch modified to run at 9600.  The TinyISP sketch you emailed me did not work.  Thanks for the help in getting this all working :)