# AVR32 example (GCC) does not build..

**URL:** <https://forums.freertos.org/t/avr32-example-gcc-does-not-build/3056>\
**Category:** Kernel\
**Created:** [December 3, 2008, 6:26pm UTC](https://forums.freertos.org/t/avr32-example-gcc-does-not-build/3056 "2008-12-03T18:26:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [December 3, 2008, 6:26pm UTC](https://forums.freertos.org/t/avr32-example-gcc-does-not-build/3056/1 "2008-12-03T18:26:54Z")

</div>

**[not\_used\_name](https://sourceforge.net/u/not_used_name/)** wrote on [Wednesday, December 03, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/861ddef8/#547c):

Downloaded FreeRTOS and the GCC just a couple of minutes ago so they should be "fresh"…

Looked at line 77 in led.c were the errors are reported. I never even seen code like that so that didn’t help me much.

Any ideas as to what goes wrong here?

C:\FreeRTOS\Demo\AVR32\_UC3\AT32UC3A\GCC\>make  
ECHO is off.  
ECHO is off.  
avr32-gcc (GCC) 4.2.2-atmel.1.0.8 (mingw32 special)  
Copyright (C) 2007 Free Software Foundation, Inc.  
This is free software; see the source for copying conditions.&nbsp; There is NO  
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiling \`…/…/BOARDS/EVK1100/led.c’ to \`…/…/BOARDS/EVK1100/led.o’.  
Warning: Deprecated arch `uc’ specified. Please use ‘-march=ucr1’ instead. Conve  
rting to arch ‘ucr1’  
…/…/BOARDS/EVK1100/led.c:77: error: ‘AVR32\_PWM\_PWM\_0\_FUNCTION’ undeclared here  
(not in a function)  
…/…/BOARDS/EVK1100/led.c:77: error: ‘AVR32\_PWM\_PWM\_1\_FUNCTION’ undeclared here  
(not in a function)  
…/…/BOARDS/EVK1100/led.c:77: error: ‘AVR32\_PWM\_PWM\_2\_FUNCTION’ undeclared here  
(not in a function)  
…/…/BOARDS/EVK1100/led.c:77: error: ‘AVR32\_PWM\_PWM\_3\_FUNCTION’ undeclared here  
(not in a function)  
make: \*\*\* […/…/BOARDS/EVK1100/led.o] Error 1

C:\FreeRTOS\Demo\AVR32\_UC3\AT32UC3A\GCC\>

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [December 4, 2008, 9:42am UTC](https://forums.freertos.org/t/avr32-example-gcc-does-not-build/3056/2 "2008-12-04T09:42:59Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, December 04, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/861ddef8/#547c/f703):

Take a look at this thread: [https://sourceforge.net/forum/forum.php?thread\_id=2636701&forum\_id=382005](https://sourceforge.net/forum/forum.php?thread_id=2636701&forum_id=382005) in particular the bit about the Atmel Software Framework.&nbsp; I need to contact Atmel about this, it seems they may have changed some register names in the header files.

Regards.
