Quality RTOS & Embedded Software

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


Loading

FreeRTOS MPU reading control register

Posted by E Brenner on December 10, 2012
Can you give me any insight into the control register saves I see in the Cortex M3 MPU port(s) of FreeRTOS? The control register does not appear to be readable on the processors I have experimented with, yet I don't see any discussion of this in the forums. Perhaps folks that are using the MPU ports are not actually running unprivileged tasks?

I have stepped through code on both Energy Micro and ST Cortex M3 based chips, and in both cases "mrs r1, control" seems to always return zero.

Thanks.

RE: FreeRTOS MPU reading control register

Posted by Richard on December 10, 2012
“The control register does not appear to be readable on the processors I have experimented with”


Which processor are you actually using? The original STM32 chips don't have an MPU. Not sure about Energy Micro, but I wouldn't be surprised if they didn't either as it would consume some power.

The control register is used to raise the privilege and test the current privilaged, and that part of the code is working, so reading it must also be working to some extent. Which function are you having a problem with?

Regards.


[ 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