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




Loading

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:
http://www.freertos.org/FAQ-how-to-use-the-FreeRTOS-support-forum.html
first.

Regards.

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