Quality RTOS & Embedded Software

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


Loading

Cortex-M4 privileged mode

Posted by sterossi84 on July 11, 2014

Hi guys,

I'm going to develop an application running under Cortex-M4F processor (STM32F4xx) and FreeRTOS with - most likely - NO MPU support.

My question is the following: The application tasks that are created using FreeRTOS runs in Cortex-M4 privileged mode so they can access NVIC registers or not?

The application will run a time-critical ISR that will have a priority greater than configMAXSYSCALLINTERRUPTPRIORITY so it's not maskable by kernel. An application task is in charge to enable/disable/mask this ISR and my wish is to use NVICEnableIRQ - NVIC_DisableIRQ to manage these operations. To do so it's fundamental that software task run in privileged mode (nPRIV bit of CONTROL core register = 0) because in un-privileged mode task cannot access NVIC registers.

Thanks in advance for your support.


Cortex-M4 privileged mode

Posted by davedoors on July 11, 2014

Most FreeRTOS applications run without the MPU so tasks run will full privilege. You won't have a problem.


Cortex-M4 privileged mode

Posted by sterossi84 on July 11, 2014

Ok. Glad to know that things works in this way. Thanks a lot for your answer Mr Dave =)


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


Careers

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

Renesas

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