Quality RTOS & Embedded Software

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


separate interrupt stack on IAR MSP430X port?

Posted by gmenhennitt on February 5, 2014

Can somebody please tell me whether the IAR MSP430X port uses a separate stack for interrupts?

In http://sourceforge.net/p/freertos/discussion/382005/thread/e0f63bdf/?limit=25#bdcf, Richard said that "all the newer ports maintain a separate interrupt stack". Is the MSP430X such a newer one? I had a look at the port's code and I can't see any evidence of a separate stack. Also, setting a breakpoint in an interrupt routine looks like it's using the task stack.

Thanks, Graham

separate interrupt stack on IAR MSP430X port?

Posted by rtel on February 5, 2014

No it doesn't. Generally a separate interrupt stack is most useful when interrupt nesting is supported. When interrupt nesting can occur the stack can get quite big, and it is therefore wasteful to allocate enough stack to each task to contain a fully nested interrupt stack. The MPS430 port, being a small micro, does not include interrupt nesting support (from memory) so there would be little to be gained from adding the extra run time overhead of managing a separate stack for interrupts.


separate interrupt stack on IAR MSP430X port?

Posted by gmenhennitt on February 5, 2014

Thanks. Even though there aren't nested interrupts, there can be some stack used just for a single interrupt. I realise that doing too much in an ISR is bad practice, but I do call a few stack levels. It would have been nice - oh, well.

Thanks, Graham

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

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

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