| Author |
Message |
|
|
Posted: Jan 18, 2012 - 05:38 PM |
|

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? |
|
|
| |
|
|
|
|
|
Posted: Jan 18, 2012 - 07:45 PM |
|


Joined: Jul 18, 2005
Posts: 62245
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 |
_________________
|
| |
|
|
|
|
|
Posted: Jan 18, 2012 - 07:55 PM |
|


Joined: Jan 23, 2004
Posts: 9822
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  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Jan 19, 2012 - 07:15 AM |
|

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 |
|
|
| |
|
|
|
|
|
Posted: Jan 19, 2012 - 07:43 AM |
|

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 |
|
|
| |
|
|
|
|
|
Posted: Jan 19, 2012 - 11:08 AM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Jan 31, 2012 - 08:21 AM |
|

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 |
|
|
| |
|
|
|
|
|
Posted: Feb 06, 2012 - 09:47 AM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Feb 06, 2012 - 11:42 AM |
|

Joined: Sep 07, 2004
Posts: 2521
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? |
|
|
| |
|
|
|
|
|
Posted: Feb 06, 2012 - 12:17 PM |
|


Joined: Sep 23, 2002
Posts: 277
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. |
|
|
| |
|
|
|
|
|
Posted: Feb 06, 2012 - 01:07 PM |
|


Joined: Jan 23, 2004
Posts: 9822
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
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.
|
| |
|
|
|
|
|
Posted: Feb 06, 2012 - 06:18 PM |
|


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
|
| |
|
|
|
|
|
Posted: Feb 06, 2012 - 06:34 PM |
|


Joined: Jan 23, 2004
Posts: 9822
Location: Trondheim, Norway
|
|
|
|
|
|
|
Posted: Feb 06, 2012 - 06:47 PM |
|


Joined: Jun 16, 2006
Posts: 616
Location: Sarasota, FL
|
|
|
|
|
|
|
Posted: Mar 15, 2012 - 11:13 AM |
|

Joined: Apr 05, 2007
Posts: 20
Location: Germany
|
|
| Has anyone get an update from Atmel regarding this topic ? |
|
|
| |
|
|
|
|
|
Posted: Mar 15, 2012 - 01:26 PM |
|


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
|
| |
|
|
|
|
|
Posted: Mar 16, 2012 - 11:38 AM |
|

Joined: Apr 05, 2007
Posts: 20
Location: Germany
|
|
Hi ganzziani,
thanks for the information. I have send you a pm. |
|
|
| |
|
|
|
|
|
Posted: Mar 20, 2012 - 08:28 AM |
|

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. |
|
|
| |
|
|
|
|
|