Re: Argh. ATmega128 users, please help?
- From: "larwe" <zwsdotcom@xxxxxxxxx>
- Date: 16 Apr 2006 16:40:00 -0700
linnix wrote:
worked 100% fine after I tied VREF to +5V; apparently the JTAG
interface isn't happy unless VREF is present.
I wish Atmel would document this, Vref is supposed to be analog related
I'm glad someone else found this problem. I thought I was going mad.
You know, I'm not even sure how I came to the discovery any more. Maybe
I dropped solder on the circuit accidentally ;)
My main question is: do you normally see this micro stop when you
attempt to probe the xtal lines with a scope?
That I would not try to do. Crystal circuits are very sensitive. I
would just verify it indirectly, through internal counters/dividers.
Erk. But I wanted to check the amplitude of the xtal drive. It hasn't
been a problem on other AVR ckts (or other micros) I've built. I was
wondering if there is something magical about the m128.
capacitance on these lines? (I've got about 15pF on both sides of the
15pF to 20pF sounds right. Any other signals/traces near the clock
circuit?
The xtal is <5mm from the IC. Traces run directly from the IC to the
xtal pins, and thence to the caps. Nothing runs under the xtal on the
component side of the board. There is groundplane on the solder side of
the board.
There are some signals running to adjacent pins on the micro, but
there's nothing I can do about that (and they were the same signals on
the previous spin of the board).
- Difficulty programming. Fuses are supposed to be 0x997f 0xff but most
Same here. Programming sometimes work and sometimes don't.
Why, why, why?? I have other h/w on the SPI interface otherwise I would
try ISP instead of JTAG. And why does it work OK on my older boards
(all that I built)? The only difference I can see is that the protos
were built with older chips (date code 0447I) and the finals were built
with date code 0609.
Was I supposed to put my own pullups/pulldowns/whatever on the JTAG
lines?
- Code that works 100% fine on the old board misbehaves on the new
board - specifically I've got some I2C stuff that works OK if I inline
Could be a software and/or compiler problem.
I believe there is some compiler issue - not sure what it is though -
but for this particular case... it's the same HEX file. Works OK on
board A. Fails on board B. What gives?!!
.
- Follow-Ups:
- Re: Argh. ATmega128 users, please help?
- From: Steve at fivetrees
- Re: Argh. ATmega128 users, please help?
- From: Jim Granville
- Re: Argh. ATmega128 users, please help?
- From: linnix
- Re: Argh. ATmega128 users, please help?
- References:
- Argh. ATmega128 users, please help?
- From: larwe
- Re: Argh. ATmega128 users, please help?
- From: linnix
- Argh. ATmega128 users, please help?
- Prev by Date: Re: Argh. ATmega128 users, please help?
- Next by Date: Re: which 32bit mcu for automotive application?
- Previous by thread: Re: Argh. ATmega128 users, please help?
- Next by thread: Re: Argh. ATmega128 users, please help?
- Index(es):
Relevant Pages
|