Impossible to write EEPROM on XMEGA32E

  • 1
  • 2
  • Seite 1 von 2
Vincent31
Benutzer
Avatar
Geschlecht: keine Angabe
Beiträge: 30
Dabei seit: 07 / 2008
Betreff:

Impossible to write EEPROM on XMEGA32E

 · 
Gepostet: 11.10.2014 - 15:05 Uhr  ·  #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
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Gepostet: 12.10.2014 - 22:14 Uhr  ·  #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
Geschlecht: keine Angabe
Beiträge: 30
Dabei seit: 07 / 2008
Betreff:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Gepostet: 13.10.2014 - 08:47 Uhr  ·  #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
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Gepostet: 13.10.2014 - 12:57 Uhr  ·  #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
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Gepostet: 13.10.2014 - 19:37 Uhr  ·  #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
Geschlecht: keine Angabe
Beiträge: 30
Dabei seit: 07 / 2008
Betreff:

Re: Impossible to write EEPROM on XMEGA32E

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

Vincent
Vincent31
Benutzer
Avatar
Geschlecht: keine Angabe
Beiträge: 30
Dabei seit: 07 / 2008
Betreff:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Gepostet: 14.10.2014 - 11:27 Uhr  ·  #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
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

Re: Impossible to write EEPROM on XMEGA32E

 · 
Gepostet: 14.10.2014 - 12:51 Uhr  ·  #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
  • Seite 1 von 2
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 15 · Cache Hits: 14   141   155 · Page-Gen-Time: 0.057243s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI