Yahoo Groups archive

AVR-Chat

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

Message

RE: [AVR-Chat] ATMega16 remains "FF" after programming via AVR Studio & JTAG Ice-Cube

2010-09-07 by Chuck Hackett

> From: Chuck Hackett
> 
> When I select "Build and Run" from the "Build" menu the build is successful
> and the
> progress bar shows "loading program memory…" (and red led on Ice-Cube is
> flashing as
> normal) then "loading event memory…" with no errors.  Message panel shows
> "Loaded
> objectfile: …. RSS.elf" and no errors but, when I display "program memory"
> from
> within AVR Studio all memory remains erased ("FF").
> ....
> In all cases, the device resets but, when it runs the user LED on the board
> does not
> light as it does with the other processors when my program runs.  This would
> seem to
> confirm that memory is all "FF"s and the "view program memory" dialog is
> showing
> correct data - i.e.: the ATMega16 did not program.
> ....

I found the problem: When I programmed the fuses for internal clock, all was well.
Upon doing more investigation I found that the crystal must not have been making
good contact in its socket because after I re-seated it and retested with the
original fuse settings and all is well again ... mumble, mumble ...

So, Why can't AVR Studio/JTAG Ice-Cube tell that there is no clock and say
something?  It could have said something when I went to display memory instead of
telling me that memory was all 0xFF's ...

> (BTW:  In the past I thought that I had seen the AVR Studio "progress bar" go
> through a "verifying program memory..." after the "loading program memory…"
> but I
> don't see it this time.  Is there a setting somewhere to cause AVR Studio to
> verify
> after programming?  (I see a verify option under the "auto" tab on the
> "Connect"
> dialog but this is apparently only in effect when you are using the "Connect"
> dialog
> to program the device.)
 
I still have not figured out how to get it to verify when it programs via the "Build
and Run" command - or maybe it is and the compare was ok (I didn't see any messages
saying "verifying" ...

BTW: From this experience - I guess the ATMega16 can be programmed via JTAG even
when there is no clock present?

If so, why can't AVR Studio display memory correctly without a valid clock present?
 
Cheers,

Chuck Hackett
"Good judgment comes from experience, experience comes from bad judgment"
7.5" gauge Union Pacific Northern (4-8-4) 844 http://www.whitetrout.net/Chuck

Attachments

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.