Problem with a Standalone AVR ISP Programmer Shield Kit

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ve2abo
 
Posts: 2
Joined: Sat Jan 21, 2012 12:12 am

Problem with a Standalone AVR ISP Programmer Shield Kit

Post by ve2abo »

Hi !

I bought a Standalone AVR ISP Programmer Shield Kit a short while ago from Adafruit. I finished assembling it this week. I attached some picture of the final result. I tested all connection one by one manually: everything seems fine.

Then I followed instruction on how to use it but the result is not what is expected. From my (french) winxp machine, i tried all these different method (with all these results...)

Arduino 1.0 - adaLoader :
verify = Binary sketch size: 32368 bytes (of a 258048 byte maximum)
upload = Binary sketch size: 32368 bytes (of a 258048 byte maximum)
push of button = briefly (half a second maybe) green led on, then both leds on and high pitch continuous sound from piezo until reset or poweroff

Arduino 0023 - adaLoader :
verify = Binary sketch size: 31300 bytes (of a 258048 byte maximum)
upload = Binary sketch size: 31300 bytes (of a 258048 byte maximum)
push of button = briefly (half a second maybe) green led on, then both leds on and high pitch continuous sound from piezo until reset or poweroff

Arduino 0023 - bootLoader :
verify = Binary sketch size: 6662 bytes (of a 258048 byte maximum)
upload = Binary sketch size: 6662 bytes (of a 258048 byte maximum)
Then "Burn Bootloader" / "w/Arduino as ISP" and after 15 seconds :
"avrdude: stk500_getsync(): not in sync: resp=0x00"
Arduino 1.0 - adaLoader :
verify = Binary sketch size: 7334 bytes (of a 258048 byte maximum)
upload = Binary sketch size: 7334 bytes (of a 258048 byte maximum)
Then "Programmer" / "Arduino as ISP" followed by "Burn Bootloader" and after 15 seconds : "
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I run all this on a Arduino Mega2560.

So here are some of my question:
Is assembly looks ok ?
Is it ok to use this shield on a Mega2560
If so, is it ok to run the code for adaloader or bootloader downloded from github (as by link from ladyada web site...) without any change ?
Is it ok to use bootloader code even if I installed the unnecessary (for bootloader) switch and piezo on the shield ?
Is there something else I can do to further diagnose this situation?
Any other suggestions ?

Many thanks any advance for your answer.

Stephane Lacasse
Attachments
Standalone AVR ISP programmer shield underside
Standalone AVR ISP programmer shield underside
underside.JPG (851.32 KiB) Viewed 1312 times
Standalone AVR ISP programmer shield topside_above
Standalone AVR ISP programmer shield topside_above
topside_below.JPG (578.8 KiB) Viewed 1312 times
Standalone AVR ISP programmer shield topside_below
Standalone AVR ISP programmer shield topside_below
topside_above.JPG (768.5 KiB) Viewed 1312 times

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: Problem with a Standalone AVR ISP Programmer Shield Kit

Post by adafruit_support_bill »

The SPI signals used for ISP are on different pins on the MEGA. The shield as wired will only work on a standard Arduino. The standard proto-shield does not extend to the additional pins that the Mega uses for ISP.

Arduino Pins: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK)
Mega pins: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS).

User avatar
ve2abo
 
Posts: 2
Joined: Sat Jan 21, 2012 12:12 am

Re: Problem with a Standalone AVR ISP Programmer Shield Kit

Post by ve2abo »

Thanks for the fast and very to the point answer. This explains clearly the problematic.

May I suggest that it might be a good a good idea to change "This shield kit pack will allow you to turn any Arduino into an AVR chip burner!" in the kit web page to "This shield kit pack will allow you to turn any standard size Arduino into an AVR chip burner!" as this would have tip me off (and will probably many other).

Again thanks for the fast reply.

Stephane Lacasse

User avatar
tomasreabe
 
Posts: 50
Joined: Tue Jul 14, 2009 10:14 pm

Re: Problem with a Standalone AVR ISP Programmer Shield Kit

Post by tomasreabe »

So the change to the mega you need to change the address inside adaLoader to this?

Code: Select all

// It is based on AVRISP
//
// Using the following pins:
//Arduino  Mega
//    10    53 : slave reset
//    11    51 : MOSI
//    12    50 : MISO
//    13    52 : SCK
//     9      9 : 8 MHz clock output - connect this to the XTAL1 pin of the AVR
//                  if you want to program a chip that requires a crystal without
//                  soldering a crystal in
// ----------------------------------------------------------------------


#include "optiLoader.h"
#include "SPI.h"

// Global Variables
int pmode = 0;
byte pageBuffer[128];                  /* One page of flash */

/*
 * Pins to target
 */
#define SCK 52
#define MISO 50
#define MOSI 51
#define RESET 53
#define CLOCK 9     // self-generate 8mhz clock - handy!
But inside optiLoader.h you will want to change:
byte hexcode[20000]; // intel hex format image
to
byte hexcode[32768]; // intel hex format image
So you have the full space of the 328 Correct?


Thanks for any help

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”