AVR ISP Kit problem

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Re: AVR ISP Kit problem

Postby RosscoS » Fri Jul 20, 2012 1:44 pm

Just checking I did this correctly, I am supposed to upload the code with the shield attached (but no blank chip in the ZIF socket). Then when code is uploaded, I put a blank chip in and press the button, correct?
RosscoS
 
Posts: 44
Joined: Wed May 09, 2012 1:41 pm

Re: AVR ISP Kit problem

Postby adafruit_support_bill » Sat Jul 21, 2012 5:23 am

That is the correct way to use it.
Looks like it writes the lock fuse OK but is failing on the low fuse. Do you get the same results every time? Or does it fail in different places?
User avatar
adafruit_support_bill
 
Posts: 15971
Joined: Sat Feb 07, 2009 9:11 am

Re: AVR ISP Kit problem

Postby RosscoS » Sat Jul 21, 2012 9:12 pm

Always fails exactly the same way.
RosscoS
 
Posts: 44
Joined: Wed May 09, 2012 1:41 pm

Re: AVR ISP Kit problem

Postby adafruit_support_rick » Sun Jul 22, 2012 9:04 am

Are you trying to set the low fuse to 0xFF? That specifies a reserved value of 11 for SUT, so that might be why it's failing.
User avatar
adafruit_support_rick
 
Posts: 2882
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: AVR ISP Kit problem

Postby RosscoS » Mon Jul 23, 2012 11:28 am

I am just trying to burn Duemilanove bootloaders. Following the tutorial, that's what I believe the sketch is supposed to be doing. Or is it?
RosscoS
 
Posts: 44
Joined: Wed May 09, 2012 1:41 pm

Re: AVR ISP Kit problem

Postby adafruit_support_rick » Mon Jul 23, 2012 1:01 pm

It looks to me like you're not writing to the chip. You are reading from it, because your output shows the correct signature bytes. It also shows that it read 0x3F from the lock bits, and 0x62 from the low fuse. That's important, because those are the DEFAULT values the chip ships with.

So:
1) you didn't really write the lock bits. Since the value you're writing is the same as the default, they verified correctly.
2) you didn't write the low fuse. The verify returned the default.

Conclusions:
1) power, ground, MISO, SCK connections are fine
2) check for continuity on MOSI - digital 11 to ZIF pin 17. It looks OK in the picture, but the bits must not getting through.
3) check for continuity on RESET - digital 10 to ZIF pin 1.
User avatar
adafruit_support_rick
 
Posts: 2882
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: AVR ISP Kit problem

Postby RosscoS » Mon Jul 23, 2012 3:14 pm

Both Digital 11 to Zif 17 & Digital 10 to Zif 1 have continuity. However to be extra sure I resoldered those pins.
Still getting the following error message
Code: Select all
AdaBootLoader Bootstrap programmer (originally OptiLoader Bill Westfield (WestfW))

Type 'G' or hit BUTTON for next chip
Starting Program Mode [OK]

Reading signature:950F
Searching for image...
  Found "adaboot_atmega328.hex" for atmega328

Setting fuses
  Set Lock Fuse to: 3F -> E000  Set Low Fuse to: FF -> A000  Set High Fuse to: DA -> A800  Set Ext Fuse to: 5 -> A400
Verifying fuses...
   Lock Fuse: 3F is 3F   Low Fuse: 0xFF is 0x62Failed to verify fuses


Is it perhaps an Arduino IDE version problem? I am using 1.0.1.
RosscoS
 
Posts: 44
Joined: Wed May 09, 2012 1:41 pm

Re: AVR ISP Kit problem

Postby adafruit_support_rick » Mon Jul 23, 2012 8:06 pm

Shouldn't be a problem with arduino 1.0.1.

I'll see if somebody else has any ideas...
User avatar
adafruit_support_rick
 
Posts: 2882
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: AVR ISP Kit problem

Postby adafruit » Mon Jul 23, 2012 8:23 pm

try an earlier IDE? dont know what it could be either
User avatar
adafruit
 
Posts: 10485
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: AVR ISP Kit problem

Postby RosscoS » Mon Jul 23, 2012 9:09 pm

Just tried Arduino 0022.
Serial output is as follows
Code: Select all
AdaBootLoader Bootstrap programmer (originally OptiLoader Bill Westfield (WestfW))

Type 'G' or hit BUTTON for next chip
Starting Program Mode [OK]

Reading signature:950F
Searching for image...
  Found "adaboot_atmega328.hex" for atmega328

Setting fuses
  Set Lock Fuse to: 3F -> E000  Set Low Fuse to: FF -> A000  Set High Fuse to: DA -> A800  Set Ext Fuse to: 5 -> A400
Verifying fuses...
   Lock Fuse: 3F is 3F   Low Fuse: 0xFF is 0xFF   High Fuse: 0xDA is 0xDA   Ext Fuse: 0x5 is 0x5
Flashing page 7800
  Commit Page: 0x3C00 -> 0x3C00
Flashing page 7880
  Commit Page: 0x3C40 -> 0x3C40
Flashing page 7900
  Commit Page: 0x3C80 -> 0x3C80
Flashing page 7980
  Commit Page: 0x3CC0 -> 0x3CC0
Flashing page 7A00
  Commit Page: 0x3D00 -> 0x3D00
Flashing page 7A80
  Commit Page: 0x3D40 -> 0x3D40
Flashing page 7B00
  Commit Page: 0x3D80 -> 0x3D80
Flashing page 7B80
  Commit Page: 0x3DC0 -> 0x3DC0
Flashing page 7C00
  Commit Page: 0x3E00 -> 0x3E00
Flashing page 7C80
  Commit Page: 0x3E40 -> 0x3E40
Flashing page 7D00
  Commit Page: 0x3E80 -> 0x3E80
Flashing page 7D80
  Commit Page: 0x3EC0 -> 0x3EC0
Flashing page 7E00
  Commit Page: 0x3F00 -> 0x3F00
Flashing page 7E80
  Commit Page: 0x3F40 -> 0x3F40
Flashing page 7F00
  Commit Page: 0x3F80 -> 0x3F80
Flashing page 7F80
  Commit Page: 0x3FC0 -> 0x3FC0

Setting fuses
  Set Lock Fuse to: F -> E000

Verifing flash...
   Flash verified correctly!
Verifying fuses...
   Lock Fuse: F is F
Fuses verified correctly!

Type 'G' or hit BUTTON for next chip


Seems to be working!
However does this mean that I will need to write all code in 0022 in order to upload to the chips that I burn the bootloader to with Arduino 0022?
RosscoS
 
Posts: 44
Joined: Wed May 09, 2012 1:41 pm

Re: AVR ISP Kit problem

Postby adafruit_support_rick » Mon Jul 23, 2012 10:08 pm

RosscoS wrote:Seems to be working!

Weird. I wonder what the difference is in the IDE?
RosscoS wrote:However does this mean that I will need to write all code in 0022 in order to upload to the chips that I burn the bootloader to with Arduino 0022?

No. You'll only need to run the AdaBootLoader sketch from 022. You can generate the loadable hex files from 101.
User avatar
adafruit_support_rick
 
Posts: 2882
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: AVR ISP Kit problem

Postby adafruit » Tue Jul 24, 2012 10:01 am

bizarre, but good to know. we'll put a note on the tutorial - try to fix it in the future as well of course
User avatar
adafruit
 
Posts: 10485
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: AVR ISP Kit problem

Postby Mr.MultiSite » Sat Jul 28, 2012 11:46 pm

I just had the same problem, using 1.0.1 of the IDE. Using 0023 to upload the sketch seems to have resolved my problem.
What differences between 0023 and 1.0.1 could be causing the problem?
Mr.MultiSite
 
Posts: 2
Joined: Fri Jul 27, 2012 3:39 pm

Re: AVR ISP Kit problem

Postby adafruit_support_bill » Sun Jul 29, 2012 5:01 am

What differences between 0023 and 1.0.1 could be causing the problem?

Not sure at this point. We are looking into it.
User avatar
adafruit_support_bill
 
Posts: 15971
Joined: Sat Feb 07, 2009 9:11 am

Previous

Return to Other Arduino products from Adafruit

Who is online

Users browsing this forum: No registered users and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [100]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]