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

Not able to use Timers Library for Texas's Tiva C series Processor

Posted by bkpatel on June 26, 2015

Hi,

I am using TI's EK-1294XL board for development and FreeRTOS. One of my requirement is to run some of tasks at every 10 seconds. To do this I am creating Timer task using xTimerCreate() but while trying to build it is saying that task is not available. I included the source file and also while writing code the function is accessible but while doing compilation it is giving error. Using Code Composure Studio for development and using CCS compiler for build. Not using GCC. Any solution for this?

Thanks, Bhavesh


Not able to use Timers Library for Texas's Tiva C series Processor

Posted by rtel on June 26, 2015

Set configUSE_TIMERS to 1 in FreeRTOSConfig.h.


Not able to use Timers Library for Texas's Tiva C series Processor

Posted by edwards3 on June 26, 2015

You can also use a task instead of a software timer with the vTaskDelay() or vTaskDelayUntil() function to create the 10 second delay.


Not able to use Timers Library for Texas's Tiva C series Processor

Posted by bkpatel on June 30, 2015

Hi, Got the issue resolved. Now able to build the project. Creating timer using follow: xTimerCreate("TimerHndl", (100), pdTRUE, (void *)1, UserTimerTask) Inside UserTimerTask() just have the Print statement. This functions should go to UserTimerTask() at every 100 ticks but its not running the callback even once. Other normal task created are working fine. Any reason for not going inside callback function?

Thanks, Bhavesh


Not able to use Timers Library for Texas's Tiva C series Processor

Posted by davedoors on June 30, 2015

Is the timer task being starved of CPU time? Try setting its priority higher.


Not able to use Timers Library for Texas's Tiva C series Processor

Posted by bkpatel on June 30, 2015

Hi, Problem was with stack size of Timer task. It was not sufficient which I allocated (32 word size was not enough, at least 128 word size is required for TI processor I am using). So timer was not able to run. Timer handler was not able to start but it was not creating any error so was not able to figure out issue. Thanks for your help.

  • Bhavesh

Not able to use Timers Library for Texas's Tiva C series Processor

Posted by rtel on June 30, 2015

FreeRTOS has features that allow you to trap such errors immediately, without any debugging or support effort required.

Look at using configASSERT(), malloc failed hooks and stack overflow hooks in your application. They will save/will have saved you hours of time.

Regards.


[ 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