Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
bluegoo
PostPosted: Jan 18, 2012 - 05:38 PM
Posting Freak


Joined: Aug 20, 2005
Posts: 1109
Location: Pool of Goo

so to be clear here..
To compile and/or modify the ATmel avr bootloaders as supplied in the ASF, one MUST install the IAR Kickstart edition on their pc and then use the IAR IDE/compiler?

If that is true... if AS5 is as the ATmel marketing/development team wants us to believe the "do all solution" for AVR's...one might ask why doesn't ATmel provide bootloader projects for the AVR chips to be compiled in AS5 error free and without the use of another compiler/ide?

missing something?
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jan 18, 2012 - 07:45 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62232
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

If that is true... if AS5 is as the ATmel marketing/development team wants us to believe the "do all solution" for AVR's...one might ask why doesn't ATmel provide bootloader projects for the AVR chips to be compiled in AS5 error free and without the use of another compiler/ide?

They used to be an IAR house and all their code was written in IAR. They have switched allegiance to GCC (because they are building it into AS5) but that doesn't suddenly translate all existing legacy code from IAR to GCC

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Jan 18, 2012 - 07:55 PM
Moderator


Joined: Jan 23, 2004
Posts: 9821
Location: Trondheim, Norway

Quote:

They used to be an IAR house and all their code was written in IAR. They have switched allegiance to GCC (because they are building it into AS5) but that doesn't suddenly translate all existing legacy code from IAR to GCC


The XMEGA bootloader is IAR for size reasons at this stage I believe, although I'm sure it'll be ported to GCC in the future. ASF code is supposed to be compiler agnostic, although I'm not sure what the requirements for the applications are.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
RainerB
PostPosted: Jan 19, 2012 - 07:15 AM
Rookie


Joined: Apr 05, 2007
Posts: 20
Location: Germany

Hi ganzziani,

i used "http://www.atmel.com/dyn/resources/prod_documents/AVR1916.zip" which doesn't contain any project information. So i created the project by myself.
Thanks for the hint with the asf.

Rainer
 
 View user's profile Send private message  
Reply with quote Back to top
RainerB
PostPosted: Jan 19, 2012 - 07:43 AM
Rookie


Joined: Apr 05, 2007
Posts: 20
Location: Germany

The current Kickstart version 6.11 has a problem with the project in asf 2.10 and asf 2.8.

It often fails with an "Tool Internal error" during compiling.

Rainer
 
 View user's profile Send private message  
Reply with quote Back to top
RainerB
PostPosted: Jan 19, 2012 - 11:08 AM
Rookie


Joined: Apr 05, 2007
Posts: 20
Location: Germany

After one succesfull build i was able to upload a non modified debug version of the bootloader (asf 2.10) to the controller for debugging with IAR and JTagICE3.

Now the device is allways recognized by Windows as Atmel USB Device Atxmega32A4U.

We get a small batch of 50 boards in about 2 week. I will do more test than.
Maybe we get a feedback from Atmel before.
 
 View user's profile Send private message  
Reply with quote Back to top
RainerB
PostPosted: Jan 31, 2012 - 08:21 AM
Rookie


Joined: Apr 05, 2007
Posts: 20
Location: Germany

We tested 10 further boards with bootloader 1.02.
2 boards are ok, 8 boards fails.
Our own USB application works on all 10 boards.

Is anybody else using this bootloader on the 32A4U device ?

Thanks and regards

Rainer
 
 View user's profile Send private message  
Reply with quote Back to top
RainerB
PostPosted: Feb 06, 2012 - 09:47 AM
Rookie


Joined: Apr 05, 2007
Posts: 20
Location: Germany

We have now tested 50 boards.
The bootloader (ASF 2.10) fails on 2 boards.

If we test them in a climate cabinet at temperatures above 40 degree both boards work fine.
Other boards, which are ok at 20 degree, fails at temperatures below 10 degree.

One board works ok at -10 and +60 degree.
(It's to much work to test all boards in this range)

The statment "fail" relate only to the function of the USB bootloader.
 
 View user's profile Send private message  
Reply with quote Back to top
steve17
PostPosted: Feb 06, 2012 - 11:42 AM
Raving lunatic


Joined: Sep 07, 2004
Posts: 2519
Location: New York State

It seems strange that the USB bootloader fails but the USB works okay otherwise. Any theories on how that could be?
 
 View user's profile Send private message  
Reply with quote Back to top
pixel2001n
PostPosted: Feb 06, 2012 - 12:17 PM
Hangaround


Joined: Sep 23, 2002
Posts: 276
Location: New Hampshire

Just a theory, but perhaps the bootloader isn't configuring the DFLL to sync the clock to the USB SOF? It's the temperature dependence that makes me think it could be this. I don't have access to the ASF on this computer, or I'd check.
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Feb 06, 2012 - 01:07 PM
Moderator


Joined: Jan 23, 2004
Posts: 9821
Location: Trondheim, Norway

Try changing sysclk_opt.c so that the DFLL calibration values are loaded from the signature row correctly - seems they use a hard-coded value which may be incorrect for some parts.

- Dean Twisted Evil

EDIT: Passed this on to the USB team, they agree this is probably the source of the problem.

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
ganzziani
PostPosted: Feb 06, 2012 - 06:18 PM
Resident


Joined: Jun 16, 2006
Posts: 616
Location: Sarasota, FL

I received a response to my Atmel support ticket, they received one of my boards with a defective bootloader and found out that the calibration values where not loaded. They will update the bootloader code soon.

_________________
www.gabotronics.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: Feb 06, 2012 - 06:34 PM
Moderator


Joined: Jan 23, 2004
Posts: 9821
Location: Trondheim, Norway

Hurrah, I'm useful!

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
ganzziani
PostPosted: Feb 06, 2012 - 06:47 PM
Resident


Joined: Jun 16, 2006
Posts: 616
Location: Sarasota, FL

me too!, how about Atmel gives a bonus for both of us?

_________________
www.gabotronics.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
RainerB
PostPosted: Mar 15, 2012 - 11:13 AM
Rookie


Joined: Apr 05, 2007
Posts: 20
Location: Germany

Has anyone get an update from Atmel regarding this topic ?
 
 View user's profile Send private message  
Reply with quote Back to top
ganzziani
PostPosted: Mar 15, 2012 - 01:26 PM
Resident


Joined: Jun 16, 2006
Posts: 616
Location: Sarasota, FL

Yes, it is fixed. Although I got the source code files directly from support. They told me that the fix will be available on the next ASF release. PM me if you want me to send you the files I have.

_________________
www.gabotronics.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
RainerB
PostPosted: Mar 16, 2012 - 11:38 AM
Rookie


Joined: Apr 05, 2007
Posts: 20
Location: Germany

Hi ganzziani,

thanks for the information. I have send you a pm.
 
 View user's profile Send private message  
Reply with quote Back to top
RainerB
PostPosted: Mar 20, 2012 - 08:28 AM
Rookie


Joined: Apr 05, 2007
Posts: 20
Location: Germany

Thanks for the code. I have tested it with 2 "faulty" boards and now they are ok.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits