Yahoo Groups archive

AVR-Chat

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

Thread

Re: [AVR-Chat] Re: Debugwire, stk-500 and M168

Re: [AVR-Chat] Re: Debugwire, stk-500 and M168

2008-01-24 by John Samperi

At 08:25 AM 25/01/2008, you wrote:
>In my case, I'm talking to an STK-500 board, with no other "stuff" on
>the chip, just the bare minimum.

Not even the additional (4K7-10K) pullup on the reset line
as suggested by a very wise, much loved and respected member
of this forum? LOL

When the Dragon first come out, someone did some signal quality
tests on the reset line. It is an open collector, bidirectional
data link. A significant improvement in rise time was shown
with the external pull up (with printed graphs IIRC).

If DW misses a bit in comms, it seems that it gets in all sorts
of problems.

>Chip is running on internal RC clock.

1 or 8MHz?

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: [AVR-Chat] Re: Debugwire, stk-500 and M168

2008-01-24 by David VanHorn

> Not even the additional (4K7-10K) pullup on the reset line
> as suggested by a very wise, much loved and respected member
> of this forum? LOL

I didn't catch that.. you mean in addition to what's on the STK-500 board?
I can throw one on easily enough.


> If DW misses a bit in comms, it seems that it gets in all sorts
> of problems.

Yeah, one would expect.

> >Chip is running on internal RC clock.
>
> 1 or 8MHz?

Good question. It should be 8, if I ever get it to work again in ISP
mode, I'll let you know.
That's what I was trying to set it to, last time it worked.

Re: [AVR-Chat] Re: Debugwire, stk-500 and M168

2008-01-24 by David VanHorn

On Jan 24, 2008 4:50 PM, David VanHorn <microbrix@gmail.com> wrote:
> > Not even the additional (4K7-10K) pullup on the reset line
> > as suggested by a very wise, much loved and respected member
> > of this forum? LOL
>
> I didn't catch that.. you mean in addition to what's on the STK-500 board?
> I can throw one on easily enough.
>

Ok, after adding a 10k between pins 2 and 5 of the SPROG2 connector,
and bringing everything up from scratch, I have this:

I ran the code step by step, and the only problem was that it was
executing over (through?) subroutines even though I've been pressing
F11, which should single step through the calls...  NOW it's stuck
here, in a loop. (!)

rcall	SPM_Ready	;
rcall	EE_Ready		;
in	TEMP2,SREG	;Save int enable state
cli		;No ints now

With the cursor on "in TEMP2,SREG", pressing F11 puts the cursor back
on "rcall SPM_Ready"

Once again, the list is right, it was a fresh build, no breakpoints set.

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.