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

Building ATmega323/WinAVR port troubles

Posted by Aaron Crandall on May 22, 2008
I am attempting to build the ATmega323 port in WinAVR (gcc version 4.3.0 (WinAVR 20080512)) from the 4.8.0 release of FreeRTOS.

I have applied the fix listed from the forum to fix the signed-ness interface definitions:
https://sourceforge.net/forum/message.php?msg_id=4877178

After I rebuild I get this output (and the same kinds of errors for a number of files):
Compiling: main.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I../../Source/include -I../Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=main.lst -std=gnu99 main.c -o main.o
main.c: In function 'main':
main.c:193: warning: pointer targets in passing argument 2 of 'xTaskCreate' differ in signedness
main.c: At top level:
../../Source/include/task.h:973: warning: inline function 'vTaskSwitchContext' declared but never defined
../../Source/include/task.h:910: warning: inline function 'vTaskIncrementTick' declared but never defined
../../Source/include/task.h:973: warning: inline function 'vTaskSwitchContext' declared but never defined
../../Source/include/task.h:910: warning: inline function 'vTaskIncrementTick' declared but never defined

-------------------

Having searched through a good portion of the sources and ports, it looks like vTaskSwitchContext and vTaskIncrementTick are to be implemented by the port, but I'm having trouble tracking down where it should be.

Has anyone seen this before?

Thank you for your time.

RE: Building ATmega323/WinAVR port troubles

Posted by woops_ on May 22, 2008
Look at the bottom of the page http://www.freertos.org/a00104.html under known issues. Did you take that into account.

RE: Building ATmega323/WinAVR *Resolved*

Posted by Aaron Crandall on May 22, 2008
This is what I love about OSS. When I'm being boneheaded, someone quickly calls my attention to it!

Thank you for the quick and accurate response, woops_. I should have caught that in my digging.

Adding the "#define inline" statement to the config file did the trick.

Problem resolved.

RE: Building ATmega323/WinAVR port troubles

Posted by JMR on May 22, 2008
Hi,
the warning about signedness of argument 2 can be resolved with an explicit type cast such as:
xTaskCreate( vMyTask, ( signed portCHAR * )"MyTask", mytaskSTACK_SIZE, NULL, mytask_TASK_PRIORITY, NULL );

As for the inline statements just follow instructions on the web http://www.freertos.org/a00104.html



[ 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