Problem programming XMega128A1U

Alvin
Neuling
Avatar
Gender: n/a
Age: 53
Posts: 1
Registered: 02 / 2024
Subject:

Problem programming XMega128A1U

 · 
Posted: 12.02.2024 - 14:28  ·  #1
I have a project designed to use the XMega128A1U. The program size is 95kB and the internal EEPROM used is 1982 bytes. When i use the programming software, it programs FLASH, programs EEPROM, then crashes out with a popup box saying error. I am using v6.00.04 AVRCo. If I revert back to v5.11.15 version, the project programs with no problems. I am now currently using v5.11 to develop my project.

Why does the programming fail with an error when I use v6.00?

Thanks
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1374
Registered: 03 / 2005
Subject:

Re: Problem programming XMega128A1U

 · 
Posted: 12.02.2024 - 16:01  ·  #2
Hello Alvin.

Please send me your project via pm and I will investigate.
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1374
Registered: 03 / 2005
Subject:

Re: Problem programming XMega128A1U

 · 
Posted: 14.02.2024 - 13:37  ·  #3
Sorry Alvin, I misunderstood your problem.

The issue is that v5.11.15 writes eep files in a non-standard format that only E-Lab programmers understand, and for a period ELab programmers were unavailable. That made in necessary to correct this issue. There is a firmware update available that allows ELab programmers to program industry format eep files.

However you should be able force the program to generate the non-standard format by using the switch

{$ZEROEEPFILE -}

Regards

Merlin.
miparo
Administrator
Avatar
Gender:
Location: Germany
Age: 58
Posts: 959
Registered: 09 / 2007
Subject:

Re: Problem programming XMega128A1U

 · 
Posted: 14.02.2024 - 15:50  ·  #4
Hi Merlin,
I think you're wrong there.
AVR STudio *.eep files also start at offset 0.
The real address is specified by the programmer or the *.dsc file.

Then the programmers wouldn't work for customers for 20 years because most of them use other compilers.

Attached is an AVR Studio *.eep(hex) file.
Attachments
Filename: ISP3X.zip
Filesize: 147 Byte
Title:
Download counter: 30
Problem programming XMega128A1U
Filename: eep.png
Filesize: 96.48 KB
Title:
Download counter: 102
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1374
Registered: 03 / 2005
Subject:

Re: Problem programming XMega128A1U

 · 
Posted: 14.02.2024 - 16:15  ·  #5
I think that you misunderstood waht I was saying, Miparo. I am saying that the EEP file is now guaranteed to start at zero where it was not before. Nevertheless, you have a point. The EEPROM for xmega128A1U starts at zero, so the EEP files should be the same for both versions of compiler. I will take another look.
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1374
Registered: 03 / 2005
Subject:

Re: Problem programming XMega128A1U

 · 
Posted: 16.02.2024 - 22:09  ·  #6
For information, Alvin has resolved his issue. I passed on programmer software from Miparo, who assures me that any changes are only cosmetic. Alvin resolved the issue by changing the UPDI speed from high to low.
miparo
Administrator
Avatar
Gender:
Location: Germany
Age: 58
Posts: 959
Registered: 09 / 2007
Subject:

Re: Problem programming XMega128A1U

 · 
Posted: 17.02.2024 - 00:38  ·  #7
Hi,
the PDI port is usually wired incorrectly if it only works at low speed. I use the Xmega128A1 myself every day to test the programmer.
Whereby the Xmega128A1 is a crutch.

miparo
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: 16 · Cache Hits: 15   121   136 · Page-Gen-Time: 0.028985s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI