Quality RTOS & Embedded Software

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


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