Quality RTOS & Embedded Software

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


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

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists