Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: [AVR-Chat] programmer troubles

Re: [AVR-Chat] programmer troubles

2007-11-13 by Jim Wagner

is there a running processor clock (internal or external)?

Jim


On Tue, 13 Nov 2007 23:24:35 -0000
 "dpalu2" <dpalu2@unl.edu> wrote:
> Hello all,
> 
> I am having some problems with building a replacement for
> an AVRISP. 
> The schematic is in the files section (AVRISP.DXF). I get
> errors when 
> I try to program the AtTiny2313 with AVR Studio 4. 
> 
> Setting mode and device parameters.. OK!
> Entering programming mode.. FAILED!
> Leaving programming mode.. OK!
> 
> The 2313 does have external power and the jumper on the
> reset line is 
> on. I did check to make sure the reset line is being
> pulled low. Is 
> there anything obvious that I am missing? Here is the
> reference 
> design I was trying to copy.
> 
>
http://home.austin.rr.com/perks/micros/Projects/AVR%20ISP/AVR%20ISP%
> 20Programmer.htm
> 
> The only reason I am trying to copy this is because we
> are still 
> using the AtMega103 and need a programmer. The MKII does
> not support 
> the 103.
> 
> thanks,
> Draper
> 
> 
> 

---------------------------------------------------------------
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---------------------------------------------------------------

programmer troubles

2007-11-13 by dpalu2

Hello all,

I am having some problems with building a replacement for an AVRISP. 
The schematic is in the files section (AVRISP.DXF). I get errors when 
I try to program the AtTiny2313 with AVR Studio 4. 

Setting mode and device parameters.. OK!
Entering programming mode.. FAILED!
Leaving programming mode.. OK!

The 2313 does have external power and the jumper on the reset line is 
on. I did check to make sure the reset line is being pulled low. Is 
there anything obvious that I am missing? Here is the reference 
design I was trying to copy.

http://home.austin.rr.com/perks/micros/Projects/AVR%20ISP/AVR%20ISP%
20Programmer.htm

The only reason I am trying to copy this is because we are still 
using the AtMega103 and need a programmer. The MKII does not support 
the 103.

thanks,
Draper

Re: [AVR-Chat] programmer troubles

2007-11-14 by John Samperi

At 10:24 AM 14/11/2007, you wrote:
>I try to program the AtTiny2313 with AVR Studio 4.
>
>Setting mode and device parameters.. OK!

But looks like you are trying to use it as a STK500 which it is NOT.
Try and use AVRProg instead.

>The MKII does not support
>the 103.

Unless you tell it too. I can't remember where but it is just a matter
of adding some text to say that the m103 is supported and it should work.

May want to do a search on AVRfreaks where it has been mentioned before.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: programmer troubles

2007-11-14 by Mike Perks

Draper,

> Setting mode and device parameters.. OK!
> Entering programming mode.. FAILED!
> Leaving programming mode.. OK!
As another poster (Jim) remarked this looks most like a problem with
the clock or your connections to the programmer. If you are not using
the internal clock and are using the external 7.3728 Mhz crystal, then
you may have botched the fuses. Luckily you have a STK500 and might be
able to use the XT1 to rescue the tiny2313.

The fuses for the tiny2313 AVR910-based programmer are:
EFUSE 0xff
HFUSE 0xdf
LFUSE 0xed

> The 2313 does have external power and the jumper on the reset line
> is on. I did check to make sure the reset line is being pulled low.
That sounds all ok. Double-check all SPI, power and crystal
connections to the tiny2313. 

> there anything obvious that I am missing? Here is the reference 
> design I was trying to copy.
> 
> http://home.austin.rr.com/perks/micros/Projects/AVR%20ISP/AVR%20ISP%
> 20Programmer.htm 
This is from my hobby project website. It is an AVR910-based
programmer. When you read the article you will notice that I also give
credit to Klaus Leidinger (and team) who originated the design and
software. I just made a few simple updates and showed how it could be
made on inexpensive stripboard. In my latest version I replaced the 6
pin SIL socket with a regular 10-pin AVR. Total cost is still less
than $9 if you build it yourself.

If you are still having trouble, contact me offline (mikep at
oakmicros dot com) and I can sell you an already programmed tiny2313
from my Oak Micros website. The cost would be less than $3 not
including first class postage. If there is sufficient interest I can
make more available or even a kit of parts.

You may also be interested in browsing some of the other AVR-based
devices I have for sale.

Mike
http://oakmicros.com

Re: programmer troubles

2007-11-14 by dpalu2

--- In AVR-Chat@yahoogroups.com, John Samperi <samperi@...> wrote:
>
> At 10:24 AM 14/11/2007, you wrote:
> >I try to program the AtTiny2313 with AVR Studio 4.
> >
> >Setting mode and device parameters.. OK!
> 
> But looks like you are trying to use it as a STK500 which it is NOT.
> Try and use AVRProg instead.
> 
> >The MKII does not support
> >the 103.
> 

This would be the easiest solution. I checked out avrfreaks.net and 
couldnt find anything. Is it just a matter of finding the *.c or 
*.asm and adding the device code?

Thanks
> Unless you tell it too. I can't remember where but it is just a 
matter
> of adding some text to say that the m103 is supported and it should 
work.
> 
> May want to do a search on AVRfreaks where it has been mentioned 
before.
Show quoted textHide quoted text
> 
> Regards
> 
> John Samperi
> 
> ********************************************************
> Ampertronics Pty. Ltd.
> 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
> Tel. (02) 9674-6495       Fax (02) 9674-8745
> Email: john@...
> Website  http://www.ampertronics.com.au
> *Electronic Design * Custom Products * Contract Assembly
> ********************************************************
>

Re: programmer troubles

2007-11-14 by dpalu2

--- In AVR-Chat@yahoogroups.com, "Jim Wagner" <jim_d_wagner@...> 
wrote:

The external clock is running like it should. Not sure about the 
internal clock. I assume it is running at its default setting.
Show quoted textHide quoted text
>
> is there a running processor clock (internal or external)?
> 
> Jim
> 
> 
> On Tue, 13 Nov 2007 23:24:35 -0000
>  "dpalu2" <dpalu2@...> wrote:
> > Hello all,
> > 
> > I am having some problems with building a replacement for
> > an AVRISP. 
> > The schematic is in the files section (AVRISP.DXF). I get
> > errors when 
> > I try to program the AtTiny2313 with AVR Studio 4. 
> > 
> > Setting mode and device parameters.. OK!
> > Entering programming mode.. FAILED!
> > Leaving programming mode.. OK!
> > 
> > The 2313 does have external power and the jumper on the
> > reset line is 
> > on. I did check to make sure the reset line is being
> > pulled low. Is 
> > there anything obvious that I am missing? Here is the
> > reference 
> > design I was trying to copy.
> > 
> >
> http://home.austin.rr.com/perks/micros/Projects/AVR%20ISP/AVR%20ISP%
> > 20Programmer.htm
> > 
> > The only reason I am trying to copy this is because we
> > are still 
> > using the AtMega103 and need a programmer. The MKII does
> > not support 
> > the 103.
> > 
> > thanks,
> > Draper
> > 
> > 
> > 
> 
> ---------------------------------------------------------------
> The Think Different Store
> http://www.thinkdifferentstore.com/
> For All Your Mac Gear
> ---------------------------------------------------------------
>

Re: [AVR-Chat] Re: programmer troubles

2007-11-15 by John Samperi

At 01:34 AM 15/11/2007, you wrote:

>This would be the easiest solution. I checked out avrfreaks.net and
>couldnt find anything. Is it just a matter of finding the *.c or
>*.asm and adding the device code?

This thread may help.
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=51689&highlight=avrisp+xml



Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: programmer troubles

2007-11-17 by dpalu2

--- In AVR-Chat@yahoogroups.com, John Samperi <samperi@...> wrote:
>
> At 01:34 AM 15/11/2007, you wrote:
> 
> >This would be the easiest solution. I checked out avrfreaks.net and
> >couldnt find anything. Is it just a matter of finding the *.c or
> >*.asm and adding the device code?
> 
> This thread may help.
> http://www.avrfreaks.net/index.php?
name=PNphpBB2&file=viewtopic&t=51689&highlight=avrisp+xml
> 

Thanks a bunch. I dont have my MkII with me but I am going to modify 
the XML first thing Monday and test it out on some of our ATmega103 
devices.
Show quoted textHide quoted text
> 
> 
> Regards
> 
> John Samperi
> 
> ********************************************************
> Ampertronics Pty. Ltd.
> 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
> Tel. (02) 9674-6495       Fax (02) 9674-8745
> Email: john@...
> Website  http://www.ampertronics.com.au
> *Electronic Design * Custom Products * Contract Assembly
> ********************************************************
>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.