Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner