ATMEGA1284P Strange EEPROM contents after erase

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All,

 

I tried to program an Atmega1284P and writing fuses, chip erase and writing the program worked fine.   But programming the EEPROM lead to a fault in the first byte.   All bytes read 0xfd after erasing and they cannot be programmed (did not try programming to 0x00 though).   Did anybody ever had an IC like that?

 

Regards,

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What is the VCC voltage on the chip during erase?  Also check that the EESAVE fuse is not set. 

If the above are ok, then you may have a bad chip.

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

VCC is 4.98V.

The EESAVE is set but that should still allow programming through the Jtag, shouldn't it?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Without EESAVE the same thing.

Programming to 0x00 doesn't work either.

ki0bk wrote:
If the above are ok, then you may have a bad chip.

I would have thought Atmel tests those before shipping wink

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hugo_habicht wrote:
I would have thought Atmel tests those before shipping

C'mon.  We have no idea on how you are getting your results, nor what you might have subjected the chip to.

 

We have shipped well into six figures, if not seven figures, of AVR8s over the past 15+ years.  Except for "solved" overstress e.g. in a proto rig, all of our board builders report >>no<< AVR "infant mortality".

 

So do tell more.  If you hook up the chip to a known-good ISP rig, change the fuses to a usable value with no EESAVE, and do an erase--what does the EEPROM read?  How are you determining that?

 

 

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

Last Edited: Thu. Nov 17, 2016 - 04:44 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wasn't soldered in a production environment.   Ok, I admit it.  I probably killed it with a 15kV human body ESD discharge and overheating to 400C when soldering it into the board.   And I am killing processors all the time for the past 36 years...

 

In post $4 I had written already that clearing the EESAVE fuse doesn't change anything.   0xfd on all bytes always.   Read using avrdude 6.3 and an AtmelICE (fresh out of the box, but I probably killed that too).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What's the clock source and speed, default RC @ 1MHz?

Also what is the ISP speed you are using?  <250KHz?

 

 

 

Edit: asked ISP speed

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

Last Edited: Thu. Nov 17, 2016 - 05:16 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi ki0bk,

 

clock is external crystal oscillator 8MHz, no divide.

ISP speed is avrdude default, not sure how high

As I said in post #1 everything else works fine, so it's unlikely that it is the programmer.

 

Soldered in another processor, this works as expected.

 

I think this thread can be closed.

 

Regards,

Last Edited: Thu. Nov 17, 2016 - 05:24 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hugo_habicht wrote:
In post $4 I had written already that clearing the EESAVE fuse doesn't change anything. 0xfd on all bytes always. Read using avrdude 6.3 and an AtmelICE (fresh out of the box, but I probably killed that too).

And I asked what the results are with ISP.

hugo_habicht wrote:
And I am killing processors all the time for the past 36 years...

I'm too old to try to win a p___ing contest.  But you started it:

 

hugo_habicht wrote:
I would have thought Atmel tests those before shipping

And I responded with my direct experience.

 

hugo_habicht wrote:
Wasn't soldered in a production environment.

If you do not have ISP capabilities, send the chip to me.  PM for address.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you can program the flash, why not write a simple program to write/read some of the eeprom and see if it is functional at that level?

David (aka frog_jr)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

frog_jr wrote:

If you can program the flash, why not write a simple program to write/read some of the eeprom and see if it is functional at that level?

Good idea.   Might do that when I have some spare time.   My suspicion is I will get the same results as with the programmer.