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


Limitation using task??

Posted by noobdeluxe2000 on April 26, 2014

I am using freeRtos to handle some task.. I've added 4 task where one of the isn't running. (used for debug purpose, but it should be runnning)

when I add another task to my scheduler, crashes freeRtos, and nothing run.. Have i reach some kind of limit or how come doesn't freeRtos run any task on my ┬Ác???

Limitation using task??

Posted by edwards3 on April 26, 2014

There are lots of possible reasons including a mistake in your code, a linker script error, a configuration error, and so on.

Do you have a debugger attached? If so look at the return values when you call xTaskCreate(), and where the program counter is when it crashes (maybe its just in an assert() call?). Do you have a malloc failed hook defined [http://www.freertos.org/a00016.html]? Do you have a stack overflow hook defined [http://www.freertos.org/Stacks-and-stack-overflow-checking.html]?

Limitation using task??

Posted by noobdeluxe2000 on April 26, 2014

Does shared FreeRtos queues need mutex lock or are the included in the queue??? Cause..it doesn't crash when I remove one of the task that shares a queue with,

Limitation using task??

Posted by rtel on April 26, 2014

Queues are part of FreeRTOS, and as such are thread safe, so you do not need to use your own mutex lock.

Maybe if you posted the code we could see what was wrong.


[ 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