Xmega definitions changed?

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

It's been around 6 months or so since I worked with an Xmega, in that time have all the definitions that become accessible through io.h been changed? I have some code which no longer works as AS7 no longer recognizes any of the bm, bp, gc etc definitions. For example for timers, I was using TC_OVFINTLVL_MED_gc, however it seems now rather than just TC, I have to use either TC0 or TC1, and I can't find any group configurations what so ever. Any ideas? I can't see the point in changing from TC_... to TC0_... & TC1_..., it worked before, if it ain't broke...

 

Edit: typos

Last Edited: Fri. Nov 18, 2016 - 05:12 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel have recently changed their XML data formats and XML->h tools so a few of these have come out of the woodwork. If someone from Atmel doesn't spot this thread soon you should raise a support case to get any of these differences fixed (they should at least dual-define things for backward compatibility).

 

OTOH it may just be easier to make a one time change to the new naming as it probably won't change again.

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

Ah I see, okay well Morten and alohre sorted me out pretty swiftly with an EDBG firmware bug yesterday, hopefully someone gets on the case with this too. If not yes, I'll raise a support case.

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

Which device?

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

ATxmega128A1U

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

Some of the E5 stuff changed as well. I had to edit the code when copying it from an AS6 to an AS7 project.

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

Some of the E5 stuff changed as well.

surprise just the names I hope and existing code will still work!

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:

surprise just the names I hope and existing code will still work!

 

Compiled code will work of course, but you will need to edit the source a little to make it compile in AS7. I compared the old and new E5 includes and found:

 

LOCKBITS -> LOCK_BITS

PROD_SIGNATURES_SIZE changed from 52 to 54

 

I could swear some of the TC control bit names changed too, but I can't find them now. It was something like TC45_ changed to TC_ IIRC.