| Author |
Message |
|
|
Posted: Jun 18, 2012 - 12:58 PM |
|

Joined: Jan 09, 2012
Posts: 6
|
|
Hello,
these are bugs in the gcc toolchain's include files.
I searched through all header files of Atmel Studio 6.0's 8 bit gcc include files, Version:
AVRGCC - 3.4.0.65
AVR Toolchain 8 Bit
Version: 3.4.0.663 - GCC 4.6.2
I used this RegEx (regular expression) pattern...
[\w]__[\w]
...to find all macro names that contain a double underscores (__) that are not at the beginning or end of a macro name.
I found there are many misspelled defines, this may eventually regard interrupt vectors only, that contain two underscores (__) in their name where just one (_) belongs.
For the MCUs I use, I created this nasty and of course very limited work-around that fixes the spelling for a few macro names:
Code:
/* Work-Around for a bug in the Atmel gcc toolchain
Installed Packages: AVRGCC - 3.4.0.65
AVR Toolchain 8 Bit
Version: 3.4.0.663 - GCC 4.6.2
ATMega164PA + ATMega324A + ATMega324P : several defines have a double underscore (__)
so these defines are just bugfixes:
*/
#if ( defined (__AVR_ATmega164PA__) || (__AVR_ATmega324A__) || defined (__AVR_ATmega324P__) )
#ifndef SPI_STC_vect
#define SPI_STC_vect SPI__STC_vect
#endif
#ifndef USART0_RX_vect
#define USART0_RX_vect USART0__RX_vect
#endif
#ifndef USART0_UDRE_vect
#define USART0_UDRE_vect USART0__UDRE_vect
#endif
#ifndef USART0_TX_vect
#define USART0_TX_vect USART0__TX_vect
#endif
#endif
This is the output from the RegEx search:
I assume Atmel has to fix at least one macro name in each of these files:
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\io90pwm161.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\ioa5790.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\ioa5795.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom1284.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom128a.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom164pa.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom165pa.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom168pa.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom324a.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom324p.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom3250pa.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom325pa.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom3290pa.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom329p.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom32a.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom48pa.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom64a.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iom8a.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iotn1634.h
AVRGCC\3.4.0.65\AVRToolchain\avr\include\avr\iotn828.h |
|
|
| |
|
|
|
|
|
Posted: Jun 18, 2012 - 02:10 PM |
|


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway
|
|
Previously reported in the internal tracker as issue DEVXML-306 - hopefully this will be fixed soon by the device header team.
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Jun 18, 2012 - 03:49 PM |
|


Joined: Mar 27, 2002
Posts: 18759
Location: Lund, Sweden
|
|
|
Quote:
by the device header team
You're giving away interesting tidbits of the Atmel Norway organization, Dean. A team for device headers?!?
What will be revealed next? A division for the RESET pin of the ATmega88?  |
|
|
| |
|
|
|
|
|
Posted: Jun 18, 2012 - 08:14 PM |
|


Joined: Jan 23, 2004
Posts: 9894
Location: Trondheim, Norway
|
|
For what it's worth, some teams are subsets of other teams, not dedicated employees. The header team is most likely a subset of the toolchain team, but I haven't looked into it.
I can't talk about the /RESET line team, that's a company secret.
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Jun 18, 2012 - 08:27 PM |
|


Joined: Dec 06, 2007
Posts: 2512
Location: Redmond, WA USA
|
|
|
abcminiuser wrote:
I can't talk about the /RESET line team, that's a company secret.
Probably Human Resources.  |
_________________ Larry
Those afraid to embrace the future will quickly fade into the past. - larryvc
|
| |
|
|
|
|
|
Posted: Jun 19, 2012 - 02:58 PM |
|


Joined: Nov 11, 2003
Posts: 4042
Location: Chicago Illinois USA
|
|
| Hmm. Given that I generally don't know what I'm doing anyhow, that would be really confusing! Glad I haven't tried to use one of those yet. |
_________________ Discursive design,
Torby
Some days, it's just not worth chewing through the restraints.
|
| |
|
|
|
|
|