Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

FreeRTOS and AVR32-AP7000 (NGW100)

Posted by Bonanza35 on November 3, 2008

Today I downloaded version 5.1.0 of FreeRTOS, installed it on Fedora 8, and tried to compile one of the AVR32 demos (so far no joy but I did find some earlier versions that build OK).

My main objective right now, though, is to get FreeRTOS working on the AVR32-AP7000, specifically on the Atmel NGW100 board.

This is my first shot at working with FreeRTOS.

I know that there is a FreeRTOS-AP7000 project here on sourceforge (https://sourceforge.net/projects/ap7x-freertos/), but it doesn't appear that much activity has taken place there since mid-2006, and the forums don't have any messages in them except for "welcome" messages dated in June of 2006.

I tried searching this forum for things like "AP7000" and "NGW100" but didn't get any hits, so I assume that it's not that the AP7X effort was just consolidated into this one.

I went to https://sourceforge.net/projects/ap7x-freertos and downloaded the latest available AP7000 port, version 0.2 (the project web page said version 0.3 was available but I couldn't find it). I unarchived that in ./avr32freertos-0.2 on fedora 8, then went to ./avr32freertos-0.2/Demo/AVR32_AP7000_GCC/Demo/WebServer and said "make".

It didn't get far.

avr32-gcc -c -Wall -D RUN_FROM_RAM -D TASK_SWITCH_USE_INT0 -DGCC_AVR32_AP7000 -DEMAC_INT=EX_INT0 -I. -I../.. -I../../../../Demo/AVR32_AP7000_GCC/support -I../../../../Source/portable/GCC/AVR32_AP7000//include -I../../../../Demo/Common/include -g -DNEWCODE -DNO_RETURN_STACK -mcpu=ap7000 -T../../../../Demo/AVR32_AP7000_GCC/Demo/Minimal/freertos_flash_at32ap7000.lds -Wcast-align -O2 -std=gnu99 -DUSE_PLL0 -DLED_ON_PORTB -I../../../../Demo/AVR32_AP7000_GCC/lwip-1.1.1/src/include -I../../../../Demo/AVR32_AP7000_GCC/lwip-1.1.1/src/include/ipv4 -I../../../../Demo/AVR32_AP7000_GCC/lwip-port/AVR32AP700x/ -I../../../../Demo/AVR32_AP7000_GCC/lwip-port/AVR32AP700x/arch -I../../../../Demo/AVR32_AP7000_GCC/EMAC -I../../../../Demo/AVR32_AP7000_GCC/BasicWEB -I../../../../Source/include -I../../../../Source/portable/GCC/AVR32_AP7000 main.c -o main.o
In file included from main.c:44:
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:1: warning: type defaults to 'int' in declaration of 'avr32_sm_t'
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:1: error: expected ';', ',' or ')' before '*' token
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:6: warning: type defaults to 'int' in declaration of 'avr32_sm_t'
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:6: error: expected ';', ',' or ')' before '*' token
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:7: warning: type defaults to 'int' in declaration of 'avr32_sm_t'
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:7: error: expected ';', ',' or ')' before '*' token
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:8: warning: type defaults to 'int' in declaration of 'avr32_sm_t'
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:8: error: expected ';', ',' or ')' before '*' token
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:12: warning: type defaults to 'int' in declaration of 'avr32_sm_t'
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:12: error: expected ';', ',' or ')' before '*' token
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:13: warning: type defaults to 'int' in declaration of 'avr32_sm_t'
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:13: error: expected ';', ',' or ')' before '*' token
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:14: warning: type defaults to 'int' in declaration of 'avr32_sm_t'
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:14: error: expected ';', ',' or ')' before '*' token
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:24: warning: type defaults to 'int' in declaration of 'avr32_sm_t'
../../../../Demo/AVR32_AP7000_GCC/support/avr32_sm.h:24: error: expected ';', ',' or ')' before '*' token
main.c: In function 'init_sdram_startup':
main.c:150: error: 'AVR32_HEBI_DATA_16_PIN' undeclared (first use in this function)
main.c:150: error: (Each undeclared identifier is reported only once
main.c:150: error: for each function it appears in.)
main.c:150: error: 'AVR32_HEBI_DATA_16_FUNCTION' undeclared (first use in this function)
main.c:151: error: 'AVR32_HEBI_DATA_17_PIN' undeclared (first use in this function)
main.c:151: error: 'AVR32_HEBI_DATA_17_FUNCTION' undeclared (first use in this function)
main.c:152: error: 'AVR32_HEBI_DATA_18_PIN' undeclared (first use in this function)
main.c:152: error: 'AVR32_HEBI_DATA_18_FUNCTION' undeclared (first use in this function)
main.c:153: error: 'AVR32_HEBI_DATA_19_PIN' undeclared (first use in this function)
main.c:153: error: 'AVR32_HEBI_DATA_19_FUNCTION' undeclared (first use in this function)
main.c:154: error: 'AVR32_HEBI_DATA_20_PIN' undeclared (first use in this function)
main.c:154: error: 'AVR32_HEBI_DATA_20_FUNCTION' undeclared (first use in this function)
main.c:155: error: 'AVR32_HEBI_DATA_21_PIN' undeclared (first use in this function)
main.c:155: error: 'AVR32_HEBI_DATA_21_FUNCTION' undeclared (first use in this function)
main.c:156: error: 'AVR32_HEBI_DATA_22_PIN' undeclared (first use in this function)
main.c:156: error: 'AVR32_HEBI_DATA_22_FUNCTION' undeclared (first use in this function)
main.c:157: error: 'AVR32_HEBI_DATA_23_PIN' undeclared (first use in this function)
main.c:157: error: 'AVR32_HEBI_DATA_23_FUNCTION' undeclared (first use in this function)
main.c:158: error: 'AVR32_HEBI_DATA_24_PIN' undeclared (first use in this function)
main.c:158: error: 'AVR32_HEBI_DATA_24_FUNCTION' undeclared (first use in this function)
main.c:159: error: 'AVR32_HEBI_DATA_25_PIN' undeclared (first use in this function)
main.c:159: error: 'AVR32_HEBI_DATA_25_FUNCTION' undeclared (first use in this function)
main.c:160: error: 'AVR32_HEBI_DATA_26_PIN' undeclared (first use in this function)
main.c:160: error: 'AVR32_HEBI_DATA_26_FUNCTION' undeclared (first use in this function)
main.c:161: error: 'AVR32_HEBI_DATA_27_PIN' undeclared (first use in this function)
main.c:161: error: 'AVR32_HEBI_DATA_27_FUNCTION' undeclared (first use in this function)
main.c:162: error: 'AVR32_HEBI_DATA_28_PIN' undeclared (first use in this function)
main.c:162: error: 'AVR32_HEBI_DATA_28_FUNCTION' undeclared (first use in this function)
main.c:163: error: 'AVR32_HEBI_DATA_29_PIN' undeclared (first use in this function)
main.c:163: error: 'AVR32_HEBI_DATA_29_FUNCTION' undeclared (first use in this function)
main.c:164: error: 'AVR32_HEBI_DATA_30_PIN' undeclared (first use in this function)
main.c:164: error: 'AVR32_HEBI_DATA_30_FUNCTION' undeclared (first use in this function)
main.c:165: error: 'AVR32_HEBI_DATA_31_PIN' undeclared (first use in this function)
main.c:165: error: 'AVR32_HEBI_DATA_31_FUNCTION' undeclared (first use in this function)
main.c:129: warning: unused variable 'sdram'
main.c:128: warning: unused variable 'noErrors'
main.c:127: warning: unused variable 'i'
main.c:127: warning: unused variable 'tmp'
main.c: At top level:
main.c:270: warning: type defaults to 'int' in declaration of 'check_startup_wait_debugger'
main.c:271: warning: return type defaults to 'int'
main.c: In function 'check_startup':
main.c:272: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
main.c:272: error: 'sm' undeclared (first use in this function)
main.c:272: error: 'AVR32_SM' undeclared (first use in this function)
main.c: In function 'main':
main.c:298: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
main.c:298: error: 'sm' undeclared (first use in this function)
main.c:298: error: 'AVR32_SM' undeclared (first use in this function)
main.c:300: warning: implicit declaration of function 'sm_enable_pll0'
main.c:301: warning: implicit declaration of function 'sm_wait_for_lockbit0'
main.c:303: warning: implicit declaration of function 'sm_set_main_clocks'
main.c:315: warning: implicit declaration of function 'sm_switch_to_clock'
main.c:372: warning: implicit declaration of function 'sys_thread_new'
main.c:373: warning: comparison between pointer and integer
main.c:322: warning: unused variable 'TaskTestLed'
make: *** [main.o] Error 1

= = = = = = = = = =

I'm about to start at the top and see if I can find the problems, but meanwhile, has anyone else here gone through this and found the problems?

Thanks...

RE: FreeRTOS and AVR32-AP7000 (NGW100)

Posted by Bonanza35 on November 3, 2008

I patched up main.c to eliminate the compile errors (put in dummy values for the undefined values) and then tried to continue the build.

During the compile of port.c, I got the following list of errors (trimmed a bit to remove things like "Each undeclared identifier is reported only once..." etc.):

../../../../Source/portable/GCC/AVR32_AP7000/port.c:248: error: 'AVR32_TIMER0_IRQ0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:284: error: 'avr32_intc_t' has no member named 'intpr'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:291: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../../Source/portable/GCC/AVR32_AP7000/port.c:291: error: 'timer0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:291: error: 'AVR32_TIMER0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:297: error: expected specifier-qualifier-list before 'avr32_timer_cmr_t'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:302: error: expected specifier-qualifier-list before 'avr32_timer_ccr_t'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:305: error: 'union <anonymous>' has no member named 'CMR'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:306: error: 'union <anonymous>' has no member named 'CMR'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:307: error: 'union <anonymous>' has no member named 'CMR'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:318: error: expected specifier-qualifier-list before 'avr32_timer_ier_t'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:322: error: 'union <anonymous>' has no member named 'IER'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:326: error: 'union <anonymous>' has no member named 'CCR'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:327: error: 'union <anonymous>' has no member named 'CCR'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:337: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../../Source/portable/GCC/AVR32_AP7000/port.c:337: error: 'timer0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:337: error: 'AVR32_TIMER0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:345: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../../Source/portable/GCC/AVR32_AP7000/port.c:345: error: 'timer0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:345: error: 'AVR32_TIMER0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:349: error: expected specifier-qualifier-list before 'avr32_timer_ier_t'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:353: error: 'union <anonymous>' has no member named 'IER'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:358: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../../Source/portable/GCC/AVR32_AP7000/port.c:358: error: 'timer0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:358: error: 'AVR32_TIMER0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:361: error: expected specifier-qualifier-list before 'avr32_timer_idr_t'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:365: error: 'union <anonymous>' has no member named 'IDR'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:371: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../../Source/portable/GCC/AVR32_AP7000/port.c:371: error: 'timer0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:371: error: 'AVR32_TIMER0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:377: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../../Source/portable/GCC/AVR32_AP7000/port.c:377: error: 'timer0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:377: error: 'AVR32_TIMER0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:380: error: expected specifier-qualifier-list before 'avr32_timer_ccr_t'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:384: error: 'union <anonymous>' has no member named 'CCR'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:391: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../../Source/portable/GCC/AVR32_AP7000/port.c:391: error: 'timer0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:391: error: 'AVR32_TIMER0' undeclared (first use in this function)
../../../../Source/portable/GCC/AVR32_AP7000/port.c:395: error: expected specifier-qualifier-list before 'avr32_timer_ccr_t'
../../../../Source/portable/GCC/AVR32_AP7000/port.c:399: error: 'union <anonymous>' has no member named 'CCR'

I checked some of the undefined identifiers and didn't find them anywhere.

I'm beginning to think I'm missing some files.

Has anyone successfully built version 0.2?

Are there files where things like AVR32_HEBI_DATA_16_PIN and AVR32_TIMER0_IRQ0 and AVR32_TIMER0 are defined, that are missing from the archive I downloaded?

If not I can probably research them and make up some header files over time, but if someone has already done that I'd rather concentrate on something else that needs doing...


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists