FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [January 2015 Threads]
Hi!...I have problems when trying to compile at32uc3b demo project.
I have this screen:
[]
Warning: Deprecated arch `uc' specified. Please use '-march=ucr1' instead. Using arch 'ucr1'
../../BOARDS/EVK1101/led.c:46:22: error: avr32/io.h: No such file or directory
In file included from ../../BOARDS/EVK1101/led.c:50:
../../BOARDS/EVK1101/led.h:68: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDReadDisplay'
../../BOARDS/EVK1101/led.h:76: error: expected ')' before 'leds'
../../BOARDS/EVK1101/led.h:86: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDReadDisplayMask'
../../BOARDS/EVK1101/led.h:96: error: expected ')' before 'mask'
../../BOARDS/EVK1101/led.h:107: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDTest'
../../BOARDS/EVK1101/led.h:115: error: expected ')' before 'leds'
../../BOARDS/EVK1101/led.h:123: error: expected ')' before 'leds'
../../BOARDS/EVK1101/led.h:131: error: expected ')' before 'leds'
../../BOARDS/EVK1101/led.h:143: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDReadDisplayField'
../../BOARDS/EVK1101/led.h:153: error: expected ')' before 'field'
../../BOARDS/EVK1101/led.h:167: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDGetIntensity'
../../BOARDS/EVK1101/led.h:179: error: expected ')' before 'leds'
../../BOARDS/EVK1101/led.c:58: error: expected specifier-qualifier-list before 'U32'
../../BOARDS/EVK1101/led.c:63: error: expected specifier-qualifier-list before 'S32'
../../BOARDS/EVK1101/led.c:77: error: 'AVR32PINPA07' undeclared here (not in a function)
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[0].GPIO')
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[0].GPIO')
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[0].PWM')
../../BOARDS/EVK1101/led.c:77: error: 'AVR32PWMPWM00FUNCTION' undeclared here (not in a function)
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[0].PWM')
../../BOARDS/EVK1101/led.c:77: error: 'AVR32PINPA08' undeclared here (not in a function)
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[1].GPIO')
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[1].GPIO')
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[1].PWM')
../../BOARDS/EVK1101/led.c:77: error: 'AVR32PWMPWM10FUNCTION' undeclared here (not in a function)
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[1].PWM')
../../BOARDS/EVK1101/led.c:77: error: 'AVR32PINPA21' undeclared here (not in a function)
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[2].GPIO')
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[2].GPIO')
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[2].PWM')
../../BOARDS/EVK1101/led.c:77: error: 'AVR32PWMPWM20FUNCTION' undeclared here (not in a function)
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[2].PWM')
../../BOARDS/EVK1101/led.c:77: error: 'AVR32PINPA22' undeclared here (not in a function)
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[3].GPIO')
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[3].GPIO')
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[3].PWM')
../../BOARDS/EVK1101/led.c:77: error: 'AVR32PWMPWM60FUNCTION' undeclared here (not in a function)
../../BOARDS/EVK1101/led.c:77: warning: excess elements in struct initializer
../../BOARDS/EVK1101/led.c:77: warning: (near initialization for 'LEDDESCRIPTOR[3].PWM')
../../BOARDS/EVK1101/led.c:83: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDState'
../../BOARDS/EVK1101/led.c:86: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDReadDisplay'
../../BOARDS/EVK1101/led.c:92: error: expected ')' before 'leds'
../../BOARDS/EVK1101/led.c:119: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDReadDisplayMask'
../../BOARDS/EVK1101/led.c:125: error: expected ')' before 'mask'
../../BOARDS/EVK1101/led.c:155: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDTest'
../../BOARDS/EVK1101/led.c:161: error: expected ')' before 'leds'
../../BOARDS/EVK1101/led.c:182: error: expected ')' before 'leds'
../../BOARDS/EVK1101/led.c:203: error: expected ')' before 'leds'
../../BOARDS/EVK1101/led.c:224: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDReadDisplayField'
../../BOARDS/EVK1101/led.c:230: error: expected ')' before 'field'
../../BOARDS/EVK1101/led.c:236: error: expected '=', ',', ';', 'asm' or 'attribute' before 'LEDGet_Intensity'
../../BOARDS/EVK1101/led.c:251: error: expected ')' before 'leds'
Makefile:559: recipe for target '../../BOARDS/EVK1101/led.o' failed
make: *** [../../BOARDS/EVK1101/led.o] Error 1
I suspect most of your problems will relate the the first error:
"../../BOARDS/EVK1101/led.c:46:22: error: avr32/io.h: No such file or directory"
However, note the UC3 port is old, and only works on old revisions of UC3 chips. Your best bet is to take a demo from http://asf.atmel.com
Note the "legacy issues" section of this page: http://www.freertos.org/a00104.html
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.