Re: programming atmega48/168's



The difficulty was caused by the at48's load buffer size differing
from that of the at168, of which the programming software wasn't aware. Once
fixed, all worked well.
Thanks for the various suggestions.

Hul

dbr@xxxxxxxx wrote:
John - the differences in fuses shouldn't (...) make a difference. Only
the lo fuse is set and the others are left as they are.

But, the failure is apparent when trying to verify data written
to the flash and that might be indicative of serial programming not
being enabled, ie the hi fuse.

Anyone know what unenabled serial programming looks like?

Hul

John B <spamj_baraclough@xxxxxxxxxxxxxxxxxxx> wrote:
On 09/11/2007 Hul Tytus wrote:

comp.arch.embedded
programming atmega48/168's

I have been programming an atmega168 for the the last few weeks with
no trouble. Today an atmega48 was put in the 168's place, and the
programming failed. From a quick look, there appeared to be a timeout
when polling the flash af0ter a buffer had been written. That was a
quick look at the end of the day, though.
Has anyone here found differences in the programing of the two
versions that might explain this error?

Hul

Apart from the obvious differences of Flash and RAM size, what are your
fuse settings? The fuses in the mega48 behave differently from those in
the 88/168.

--
John B
.



Relevant Pages

  • Re: Reading a PAL fusemap with a microscope
    ... >I'm beginning to question the organization of the fuse map in a HAL. ... the chip layout should follow the diagrams in the data book. ... The chip layout is laid out to minimize area, ... of mask programming the devices for high volume cost reduction. ...
    (comp.arch.fpga)
  • Re: Reading a PAL fusemap with a microscope
    ... Gabor is correct. ... Programming is a relatively ... They are programmed with a mask (the final, ... > gap at the "blown fuse" is small, ...
    (comp.arch.fpga)
  • Re: AVRISP
    ... The suggestion that you accidentally ticked the external oscillator ... fuse was, in fact, what the problem was. ... I only update Flash in the programming window. ... > that you can not even reset the fuse bits anymore. ...
    (comp.arch.embedded)
  • Re: Changing clock source in AVR?
    ... used it just fine when it was running on the internal RC oscillator. ... to respond and change the fuse bits. ... High Voltage Parallel Programming with an STK500 always works. ...
    (comp.arch.embedded)
  • Re: EasyAVR problem
    ... You might want to check the settings of the fuse bits of your processor. ... separately from flash and eeprom, ... The fuse bits can usually be configured in your programming software, ... since its easy to disable serial programming mode or stop the internal ...
    (comp.arch.embedded)