Quality RTOS & Embedded Software

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




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