Quality RTOS & Embedded Software

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


Loading

Timers: I cant create :(

Posted by ulmus on January 19, 2012
There is no info in API documentation but i found in customisation that i have to add in FreeRTOSConfig.h:

#define configUSE_TIMERS 1
#define configTIMER_TASK_PRIORITY 1
#define configTIMER_QUEUE_LENGTH 10
#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE

I added those, i have added
#include "timers.h"
in icon.c file where i am using timers, but compiling project i have still errors:

compiling\tasks.o: In function `vTaskStartScheduler':
C:\Users\......................FreeRTOS/Source/tasks.c:1064: undefined reference to `xTimerCreateTimerTask'
compiling\icon.o: In function `Icon_Init':
C:\Users\...................../source/icon.c:39: undefined reference to `xTimerCreate'
collect2: ld returned 1 exit status

I was changing order of #includes header files but nothing.
I dont know about somethig?

RE: Timers: I cant create :(

Posted by ulmus on January 19, 2012
P.S.
icon.c start like that:


#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "timers.h"
#include "lcd.h"
#include "icon.h"
....

RE: Timers: I cant create :(

Posted by Richard on January 19, 2012
“There is no info in API documentation but i found in customisation that i have to add in FreeRTOSConfig.h:

#define configUSE_TIMERS 1
#define configTIMER_TASK_PRIORITY 1
#define configTIMER_QUEUE_LENGTH 10
#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE”


These are documented here http://www.freertos.org/RTOS-software-timer.html

“C:\Users\......................FreeRTOS/Source/tasks.c:1064: undefined reference to `xTimerCreateTimerTask'
compiling\icon.o: In function `Icon_Init':
C:\Users\...................../source/icon.c:39: undefined reference to `xTimerCreate'
collect2: ld returned 1 exit status


Have you added FreeRTOS/source/timers.c to you build?

Regards.

RE: Timers: I cant create :(

Posted by ulmus on January 19, 2012
How Stupid I am! God bless You!
:) I havent added timers.c to the project!
Now all is working like a charm :)


[ 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