AVR32 example (GCC) does not build..

not_used_name wrote on Wednesday, December 03, 2008:

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

rtel wrote on Thursday, December 04, 2008:

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

Regards.