Impossible to write EEPROM on XMEGA32E

  • 1
  • 2
  • Page 1 of 2
Vincent31
Benutzer
Avatar
Gender: n/a
Posts: 30
Registered: 07 / 2008
Subject:

Impossible to write EEPROM on XMEGA32E

 · 
Posted: 11.10.2014 - 15:05  ·  #1
Hello to all,

I cannot write EEPROM with program under, my array fin[x] declared in {$EEPROM} works like in RAM with nothing memorised, I used in the past the same process with ATMEGA but it not works with XMEGA32E, why ?
Thans for help !

Device = xmega32E5, VCC=3.3;
{ $BOOTRST $04000} {Reset Jump to $04000}

{$EEPROM}
var
fin: array[0..87] of byte;

{ Var Declarations }
{$IDATA}
var
rep,dep,s1,s2,derposi,sens: array[0..87] of byte;
posi,a,b,note,dist,v,vmid,idc: byte;

{--------------------------------------------------------------}
{--------------------------------------------------------------}
{ Main Program }
{$IDATA}

begin
for a:=0 to 87 do fin[a]:=200;endfor;

loop

endloop;

end Proxi.
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Posted: 12.10.2014 - 22:14  ·  #2
Hello,
we are working on it.
We found there is an EEprom bug in the E5 series.
Atmel's ASF has an internal workaround for this.
But nothing about it in the datasheets.

Again, the E5 series leave the common drivers within all other XMegas...

rolf
Vincent31
Benutzer
Avatar
Gender: n/a
Posts: 30
Registered: 07 / 2008
Subject:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Posted: 13.10.2014 - 08:47  ·  #3
Hello Rolf,

So thanks to solve soon !
Anyway, Eeprom external programming with E-lab programmer and PDI works fine, the problem is only with internal software writting...
I didn't try to write eeprom using directly NVM registers, did you try already ? does it works ok ?

Vincent
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Posted: 13.10.2014 - 12:57  ·  #4
Hello Vincent,

yes, external EEprom programming with a programmer always works.
Internal EEprom programming using the NVM controller doesn't work
as expected in XMegaE5. A big bug in these chips. The Atmel ASF has
some work-around (switches).

I never tested the EEprom with the E5 because I didn't expect such a behaviour.

rolf
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Posted: 13.10.2014 - 19:37  ·  #5
@all,

problem fixed now.
There is an unexpected hardware bug in the XMegaE5 series.
Fixed now by a workaround.

Update available this evening.

rolf
Vincent31
Benutzer
Avatar
Gender: n/a
Posts: 30
Registered: 07 / 2008
Subject:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Posted: 13.10.2014 - 22:38  ·  #6
Gongratulations Rolf !
I'll test update soon...

Vincent
Vincent31
Benutzer
Avatar
Gender: n/a
Posts: 30
Registered: 07 / 2008
Subject:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Posted: 14.10.2014 - 11:27  ·  #7
Tested update this morning, but unfortunately Eeprom is always impossible to write from program.
Really I don't understand this bug from Atmel, I cannot believe that Atmel company sells this XMEGA32E with Eeprom writting impossible without any test before to put it on the market !
Very strange in my mind !

Vincent
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Posted: 14.10.2014 - 12:51  ·  #8
Hello Vincent,

WIN8/64 sometimes doesn´t replace old exe files with new ones.
I´m afraid this is the case for you. I will send you a separate AVRco exe.

Concerning the XMegaE5 there are many known/unknown hardware bugs
in these devices. Most of them are not published in the datasheets. Some of
them have a switch/workaround in Atmel´s ASF libraries. Others are
completely hidden. Take a look into Atmel´s AVRfreaks forum. In the XMega
section you can find a bunch of threads talking about these problems.
I hope Atmel will provide new chips in the near future.

rolf
  • 1
  • 2
  • Page 1 of 2
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   141   155 · Page-Gen-Time: 0.02936s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI