Quality RTOS & Embedded Software

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


Software Interrupt within a Task

Posted by despr on May 18, 2016

Hello, I've been working on a project with SAMD21 and FreeRTOS.

I want to add in my code software interrupts. The tasks I have created are blocked and unblocked with Notifications. If the software interrupt I want to create, occur in the middle of a Task, how can I handle it? Can I use the fromISR functions since it's about a software interrupt and not a hardware one?

How can I make sure that the code execution will return to the same point after the software interrupt?

Thank you in advance. Regards

Software Interrupt within a Task

Posted by rtel on May 18, 2016

When you say software interrupt, do you mean an SVC call, or an interrupt generated by setting a bit in a SetPending register?

If you are setting a pending bit then the resultant interrupt will occur, and should be handled, in exactly the same way as a hardware generated interrupt.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS v10.2.1 is available for immediate download. MIT licensed, includes 64-bit RISC-V, NXP Cortex-M33 demo & Nuvoton Cortex-M23 demo.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

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

Cadence Tensilica Cortes

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