Quality RTOS & Embedded Software

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


xSemaphoreTake failed.

Posted by zealhero on October 1, 2014

Hello. I'm using ARM cortex-R5(TI) CCS 6.0, FreeRTOS 8.1.2.

xSemaphoreTake(*pxSemaphore, 0) goes exception error in my project.

I tried configure options in FreeRTOSConfig.h for using sempahore.. but it still has an error.

Could you give me some tips to use semaphoretake func?

xSemaphoreTake failed.

Posted by davedoors on October 1, 2014

Did you create the semaphore first? Please post the code that creates then takes the semaphore.

xSemaphoreTake failed.

Posted by richard_damon on October 1, 2014

I am curious why you have the * in front of pxSemaphore? The FreeRTOS functions take handles (which are internally pointers), but you shouldn't be referencing them yourself.

xSemaphoreTake failed.

Posted by zealhero on October 2, 2014

Sorry, it was not error in xSemaphoreTake(). it works well now. Can I delete this post?

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

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.


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


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