Quality RTOS & Embedded Software

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


Loading

FreeRTOS MPU

Posted by owaisfazal on March 4, 2014

Hello,

A general question regarding FreeRTOS MPU for Cortex M microcontrollers. I understand that using FreeRTOSMPU a task can be created in restricted mode which restricts the stack to the memory area defined for that particular task. What I would like to ask is that when and if any task tries to access outside of the defined task or when some memory violation happens how can it be detected? Is there a macro defined for this scenario where the user may generate some trigger like setting an output or something to get a notification?

Regards, Owais.


FreeRTOS MPU

Posted by rtel on March 4, 2014

if any task tries to access outside of the defined task or when some memory violation happens how can it be detected?

A memory fault occurs, which causes the Cortex-M core to execute the MemManage fault handler.

The MemManage fault handler is installed in the interrupt vector table (exception type 4 which is at offset 0x10) and should be provided by the application. The FreeRTOS-MPU demos provide a very simple implementation that just unwinds the stack to find the instruction that generated the fault.

Regards.


FreeRTOS MPU

Posted by owaisfazal on March 4, 2014

Thank you very much.


[ 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