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

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