Quality RTOS & Embedded Software

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




Loading

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.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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