Quality RTOS & Embedded Software

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


taskYIELD not working

Posted by Paul Coleman on September 21, 2011
I've got an ISR which may unblock another task, so I added a call to taskYIELD() as the very last thing in my ISR which gets called if a higher priority task has been woken. However, when I run my program it crashes on the call to taskYIELD().
I'm not completely sure why this is even needed as the RTOS should be able to cope with a context switch to a higher task anyway shouldn't it?
Thanks, aul.

RE: taskYIELD not working

Posted by Richard on September 21, 2011
I have no means of assisting you as you have not provided enough information. On some ports what you are doing will work, on others it won't and a special call is needed. Please read the documentation page for the port you are using, and look at the examples provided for your port - both of which will demonstrate how to do what you are wanting to do.

If you need further assistance here, then please read:


RE: taskYIELD not working

Posted by Paul Coleman on September 21, 2011
Okay, thanks.
I've found the relevant info for the AVR32 and I've included the necessary entry and exit functions for my ISR. I've declared the ISR using the naked attribute but I'm not sure whether to also use the interrupt attribute as well. Any ideas?
Thanks, Paul.

[ 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