Quality RTOS & Embedded Software

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


Dealing with MPU faults

Posted by Tamir Michael on June 25, 2012

I am using a LPC1788 with FreeRTOS MPU. In case of a memory protection fault, is there a valid and solid way to resume program operation? I intend to develop the system with the MPU enabled, but if a fielded system encounters a memory issue I do not necessarily with the have it watchdog reset and report a failure - some violations are survivable, or maybe this is compromises the entire purpose of an MPU...? I would appreciate any opinion.

RE: Dealing with MPU faults

Posted by Richard on June 25, 2012
MPU faults allow you to detect access violations before they occur. That means the system state is know because nothing bad has actually happened yet, so you can then take evasive action as is appropriate to your application. This is different to detecting something like a stack overflow after it has happened, because after it has happened all you know is it has happened, and that is it, so there is nothing you can do to correct the situation with confidence that you have corrected everything.

Only the application itself can know what to do when a fault occurs. The application knows the software components, which are critical, which not, which can be restarted, which it would not be safe to restart, etc.


RE: Dealing with MPU faults

Posted by Tamir Michael on June 26, 2012
Thank you.

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

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