Quality RTOS & Embedded Software

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




Loading

Task Notify from ISR not working

Posted by gunslnger on September 7, 2017

I'm using a Microsemi SmartFusion2 and I'm trying to send a notification from the timer interrupt to a task. I'm following Example 2 from http://www.freertos.org/RTOSTaskNotificationAsCountingSemaphore.html but my task never receives the notification. I've verified with the debugger that the timer is running and hitting the interrupt. I set the NVIC priority for the interrupt to configLIBRARYMAXSYSCALLINTERRUPT_PRIORITY + 1. All I ever get is the ulTaskNotifyTake() timing out and returning 0. The timeout time is set to 500ms and the timer is set to expire every 100ms. I'm using version 9.0.0.


Task Notify from ISR not working

Posted by richard_damon on September 8, 2017

Perhaps you could show the code you are using. Do you know the timer interrupt is being fired? (Set up properly).


Task Notify from ISR not working

Posted by gunslnger on September 13, 2017

My code is identical to the code in Example 2. I did verify that the timer interrupt is getting triggered; it hits a breakpoint in the ISR.


Task Notify from ISR not working

Posted by rtel on September 13, 2017

Try stepping into the function that gives the notification inside the interrupt to check the task handle you are sending to is valid, and the task you think it is. Once inside the function, in the tasks.c file, you will be able to look at the handle of the target task in the debugger to check its name, etc.


Task Notify from ISR not working

Posted by heinbali01 on September 13, 2017

My code is identical to the code in Example 2

Note that the example is not complete, for instance it does not show how xHandlingTask is initialised. So it could still be useful if you show the code that you are using.


[ 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