Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

FreeRTOS + GCC and ATmega32 problem

Posted by Hiren Shah on May 14, 2010
Dear Friends.

I am new to AVR controller. I am trying to make a simple code using its demo version. But I am not able to buils it successfully.

I got this error. Even I have tried to port it on Eclipse platform but not getting success.

Please help me out.

-------- begin --------
avr-gcc (GCC) 4.3.3
Copyright (C) 2008 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.


Linking: rtosdemo.elf
avr-gcc -mmcu=atmega32 -I. -D GCC_MEGA_AVR -I. -I../../Source/include -I../Common/include -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=main.o -std=gnu99 main.o ParTest/ParTest.o serial/serial.o ../../Source/tasks.o ../../Source/queue.o ../../Source/list.o ../../Source/portable/MemMang/heap_1.o ../../Source/portable/GCC/ATMega323/port.o ../Common/Minimal/flash.o ../Common/Minimal/integer.o ../Common/Minimal/PollQ.o ../Common/Minimal/comtest.o --output rtosdemo.elf -Wl,-Map=rtosdemo.map,--cref -lm
../../Source/portable/GCC/ATMega323/port.o: In function `vPortYieldFromTick':
/home/student/Download/FreeRTOS/Demo/AVR_ATMega323_WinAVR/../../Source/portable/GCC/ATMega323/port.c:358: undefined reference to `vTaskIncrementTick'
/home/student/Download/FreeRTOS/Demo/AVR_ATMega323_WinAVR/../../Source/portable/GCC/ATMega323/port.c:359: undefined reference to `vTaskSwitchContext'
../../Source/portable/GCC/ATMega323/port.o: In function `vPortYield':
/home/student/Download/FreeRTOS/Demo/AVR_ATMega323_WinAVR/../../Source/portable/GCC/ATMega323/port.c:341: undefined reference to `vTaskSwitchContext'
make: *** [rtosdemo.elf] Error 1

RE: FreeRTOS + GCC and ATmega32 problem

Posted by woops_ on May 14, 2010
can you build the demo makefile unmodified?
Have you got tasks.c in your makefile?


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




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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

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

OpenRTOS and SafeRTOS